Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 1, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
annotate-snippets workspace.dependencies minor 0.9.2 -> 0.11.0

Release Notes

rust-lang/annotate-snippets-rs (annotate-snippets)

v0.11.1

Compare Source

Fixes
  • Switch fold to use rustc's logic: always show first and last line of folded section and detect if its worth folding
  • When folding the start of a source, don't show anything, like we do for the end of the source
  • Render an underline for an empty span on Annotations

v0.11.0

Compare Source

Breaking Changes
  • Switched from char spans to byte spans #​90
  • Renamed AnnotationType to Level #​94
  • Renamed SourceAnnotation to Annotation #​94
  • Renamed Snippet to Message #​94
  • Renamed Slice to Snippet #​94
  • Message, Snippet, Annotation and Level can only be built with a builder pattern #​91 and #​94
  • Annotation labels are now optional #​94
  • Annotation now takes in Range<usize> instead of (usize, usize) #​90
  • Margin is now an internal detail, only term_width is exposed #​105
  • footer was generalized to be a Message #​98
Added
  • term_width was added to Renderer to control the rendering width #​105
    • defaults to 140 when not set
Fixed
  • Margins are now calculated per Snippet, rather than for the entire Message #​105
  • Annotations can be created without labels
Features
  • footer was expanded to allow annotating sources by accepting Message #​98

v0.10.2

Compare Source

Added
  • Added testing-colors feature to remove platform-specific colors when testing
    #​82

v0.10.1

Compare Source

Fixed
  • Match rustc's colors #​73
  • Allow highlighting one past the end of source #​74
Compatibility
  • Set the minimum supported Rust version to 1.73.0 #​71

v0.10.0

Compare Source

Added
  • Renderer is now used for displaying a Snippet #​67
    • Renderer also controls the color scheme and formatting of the snippet
Changed
  • Moved everything in the snippet to be in the crate root #​67
Breaking Changes
  • Renderer now controls the color scheme and formatting of Snippets #​67
  • Removed the Style and Stylesheet traits, as color is controlled by Renderer #​67
  • Replaced yansi-term with anstyle #​67
    • anstyle is designed primarily to exist in public APIs for interoperability
    • anstyle is re-exported under annotate_snippets::renderer
  • Removed the color feature in favor of Renderer::plain() #​67
  • Moved Margin to renderer module #​67
  • Made the display_list module private #​67
Compatibility
  • Changed the edition to 2021 #​61
  • Set the minimum supported Rust version to 1.70.0 #​61

Configuration

📅 Schedule: Branch creation - "on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the internal An internal refactor or improvement label Apr 1, 2024
@renovate
Copy link
Contributor Author

renovate bot commented Apr 1, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for `annotate-snippets`.
    ... required by package `ruff_linter v0.3.4 (/tmp/renovate/repos/github/astral-sh/ruff/crates/ruff_linter)`
    ... which satisfies path dependency `ruff_linter` (locked to 0.3.4) of package `ruff_benchmark v0.0.0 (/tmp/renovate/repos/github/astral-sh/ruff/crates/ruff_benchmark)`
versions that meet the requirements `^0.11.0` are: 0.11.1, 0.11.0

the package `ruff_linter` depends on `annotate-snippets`, with features: `color` but `annotate-snippets` does not have these features.


failed to select a version for `annotate-snippets` which could resolve this conflict

@renovate renovate bot force-pushed the renovate/annotate-snippets-0.x branch from 35d849f to d249097 Compare April 1, 2024 12:27
@charliermarsh charliermarsh self-assigned this Apr 1, 2024
@charliermarsh
Copy link
Member

I'll take a look at this.

@charliermarsh
Copy link
Member

Non-trivial upgrade. A lot changed in the last two minors.

@charliermarsh
Copy link
Member

I may do this even if low-priority since we want to change the output format to show fixes and this might end up blocking that work.

@charliermarsh
Copy link
Member

Actually, nevermind, let's just make this part of that project (we may remove the dependency entirely).

@MichaReiser
Copy link
Member

Switched from char spans to byte spans #90

These are good changes :)

@MichaReiser MichaReiser closed this Apr 8, 2024
@renovate
Copy link
Contributor Author

renovate bot commented Apr 8, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (0.11.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/annotate-snippets-0.x branch April 8, 2024 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal An internal refactor or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants