-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust: Upgrade to rust-analyzer 0.0.301 #20408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6e07d4b
to
4e1c4a9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades rust-analyzer dependencies from version 0.0.300 to 0.0.301, updating the core Rust extractor components and related dependencies. The update appears to have gone smoothly, with the note that Ruby extractor changes were reverted due to compatibility issues.
Key changes:
- Updates all
ra_ap_*
(rust-analyzer API) dependencies from 0.0.300 to 0.0.301 - Updates various Rust ecosystem dependencies (proc-macro2, syn, chrono, etc.)
- Updates Bazel build files to reflect new dependency versions
Reviewed Changes
Copilot reviewed 162 out of 163 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
shared/typeinference/codeql/typeinference/internal/TypeScraps.md |
Added new code snippets for type inference signature modules |
shared/tree-sitter-extractor/Cargo.toml |
Updated dependency versions for tracing-subscriber, rayon, regex, and chrono |
rust/extractor/macros/Cargo.toml |
Updated syn dependency from 2.0.104 to 2.0.106 |
rust/extractor/Cargo.toml |
Updated clap and all rust-analyzer dependencies to 0.0.301, plus other minor version bumps |
rust/ast-generator/Cargo.toml |
Updated proc-macro2 and ra_ap_stdx to latest versions |
misc/bazel/3rdparty/tree_sitter_extractors_deps/defs.bzl |
Comprehensive update of Bazel dependency definitions with new version labels |
Multiple BUILD files | Updated version numbers and dependency references throughout Bazel build configuration |
That's because database caching was enabled; I have started a new run with caching disabled. |
Oh, I see. Thanks! The second DCA run seems good as well. |
Looks like this has a positive impact on extraction time: https://github.com/github/codeql-dca-main/blob/data/hvitved/pr-20408-4e1c4a__nightly__nightly/reports/summaries/time.theme.md#database-build-time-per-source |
ruby/extractor/Cargo.toml
Outdated
@@ -8,15 +8,15 @@ edition = "2024" | |||
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh` | |||
[dependencies] | |||
tree-sitter = ">= 0.23.0" | |||
tree-sitter-embedded-template = "0.25.0" | |||
tree-sitter-embedded-template = "0.23.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paldepind I guess upgrading tree-sitter-embedded-template
caused problem in the ruby extractor. Perhaps we can bump the versions of the other dependencies and only revert the upgrade of tree-sitter-embedded-template
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in 0.25 don't look to exciting, but I guess the update of the underlying tree-sitter library may cause problems. Having multiple versions of tree-sitter in the dependency hierarchy can lead to annoying clashes and error messages like type Language does not match type Language
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll try that 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just make an issue for the Ruby team to have a look into updating tree-sitter-embedded-template
and tree-sitter
.
@@ -0,0 +1,134 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change does not seem related to regenerating bazel files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Good you spotted this.
4e1c4a9
to
19c529e
Compare
This seems to have gone pretty smoothly.
I had to revert the changes to the Ruby extractor's Cargo file as updating those caused problems.
DCA is uneventful.