Description
rust-analyzer version: 0.4.2042 (and all above this version)
rustc version: rustc 1.82.0-nightly (92c6c0380 2024-07-21)
editor or extension: vscode, rust-analyzer version: 0.4.2044-standalone
relevant settings: my .vscode/settings.json uses the following options: rust-analyzer.linkedProjects, rust-analyzer.checkOnSave.allTargets, rust-analyzer.cargo.noDefaultFeatures, rust-analyzer.check.command
Basically, every version after 0.4.2040 doesn't work, at all. There are no relevant logs to it, nothing. Rust analyzer still shows warnings at the problems tab, but nothing in the editor itself shows up, no tips, no "go to declaration" buttons are working.
I tried cargo cleaning all directories of all project, purging ~/.rustc and ~/.cargo, nothing. The only difference in the working rust analyzer version is that the ram usage is a bit higher, around a GB
Activity
[-]No version of rust-analyzer works after 0.4.2040[/-][+]rust-analyzer ignores linkedProjects after version 0.4.2040[/+]Szybet commentedon Jul 22, 2024
Someone suggested me that it simply ignores the setting rust-analyzer.linkedProjects because it creates the target directory only in the root directory, which may be the true cause of all of it, so I changed the tittle of the issue
Veykril commentedon Jul 22, 2024
@davidbarsky
fw-cc commentedon Jul 22, 2024
I am experiencing similar with this new version, code generated and included in the project is not being indexed in this recent update where it was before, I have reverted to 0.3.2037 and rust-analyzer now functions as expected.
When viewing generated files I am also not being warned that the project is unindexed (unsure whether this behavior is intended).
I have written an example (possibly overkill) of how this manifests with files generated by the rust-protobuf crate.
rust-analyzer version: 0.3.2045
rustc version: rustc 1.79.0 (129f3b996 2024-06-10)
editor or extension: vscode, rust-analyzer version: 0.3.2045
relevant settings: "rust-analyzer.notifications.unindexedProject": true
davidbarsky commentedon Jul 22, 2024
I'm really sorry about the workflow disruption: I know how annoying it is. I'll work on fixing this regression today.
davidbarsky commentedon Jul 22, 2024
Right, okay:
include!
#17650 is the cause, not feature: teach rust-analyzer to discoverlinked_projects
#17246. I'll work on fixing that, as simply readding the previous match guard breaks the newly added test.fw-cc
: you also don't need to enable"rust-analyzer.notifications.unindexedProject": true
; that has been superseded by #17246 and will be removed by chore: removeUnindexinedProject
notification #17395 later today.rust-analyzer.linkedProjects
to different Cargo.toml's in a Cargo workspace—I am seeing IDE functionality continue to work. Can you try providing a minimal reproduction of the behavior you're seeing?fw-cc commentedon Jul 22, 2024
Ah apologies for reporting it here and thank you very much for your work on these issues, glad the reproduction helped!
ObsidianMinor commentedon Jul 22, 2024
@davidbarsky #17660 fixed the regression reported by @fw-cc.

davidbarsky commentedon Jul 22, 2024
I missed that PR, my bad! It seems like it landed just after the weekly release was cut.
alex-haven commentedon Jul 22, 2024
Hello 👋
For @Szybet's issue, we faced the same thing this morning, and fixed it by updating our paths from relative to absolute using the
${workspaceFolder}
variable:EDIT: This is on Windows 10 22H2 (19045.4651)
matthew-levan commentedon Jul 23, 2024
Unfortunately using
${workspaceFolder}
to declare absolute paths did not work for me onmacos-aarch64
withv0.144.4
.I'm using a
.zed/settings.json
file in the root of my repository with the following contents:andrewkmin commentedon Jul 23, 2024
Like @matthew-levan, I'm also running
macos-aarch64
. In my.vscode/settings.json
, I tried to use both my standard linked projects path as well as the${workspaceFolder}
fix, but to no avail. Using rust 1.71. Rolling back to0.4.2037
restores functionality.Appreciate the work y'all are doing and let me know if there's any more information I could provide.
18 remaining items