Skip to content

Size hints don't appear if you have multiple rust workspaces open (VSCode or zed) #19831

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

Open
AlexEne opened this issue May 20, 2025 · 1 comment
Labels
A-project-model project model and workspace related issues C-bug Category: bug

Comments

@AlexEne
Copy link
Member

AlexEne commented May 20, 2025

rust-analyzer version: 0.4.2465 (any really)
rustc version: (eg. output of rustc -V) 1.87 (any version)

editor or extension: tried both VSCode and Zed

relevant settings: I have more than one workspace folder open in VSCode (or zed).

If I have more than one rust workspace open in vscode or zed, the size hint you get when you hover a struct doesn't appear. Let's say I have both WorkspaceA and WorkspaceB opened in VSCode (or zed). Hovering an enum definition from workspace A doesn't show the size info.
If I open only one workspace folder (WorkspaceA), size hints for that exact enum appear as expected.

Issue is visible with enum or data structure.

@AlexEne AlexEne added the C-bug Category: bug label May 20, 2025
@lnicola lnicola added the A-project-model project model and workspace related issues label May 21, 2025
@shrimpwtf
Copy link

I'm getting a similar bug but in workspaces errors aren't showing, showing in wrong and unrelated places, fix the error and still underlined it's absolutely bugged out tried many different versions of rust-analyzer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-project-model project model and workspace related issues C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

3 participants