Skip to content
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

IDE finds no issues with variables1 #1323

Closed
Konglomneshued opened this issue Jan 5, 2023 · 10 comments
Closed

IDE finds no issues with variables1 #1323

Konglomneshued opened this issue Jan 5, 2023 · 10 comments

Comments

@Konglomneshued
Copy link

I have syntax hightlighting on normal Rust project.

But when I open the rustlings project I have none.

Fleet:
WebStorm:
VS Code:
@shadows-withal
Copy link
Member

That's probably because you don't have rust-analyzer support enabled – run rustlings lsp once to get that set up. See: https://github.com/rust-lang/rustlings#enabling-rust-analyzer

@Konglomneshued
Copy link
Author

That's probably because you don't have rust-analyzer support enabled – run rustlings lsp once to get that set up. See: https://github.com/rust-lang/rustlings#enabling-rust-analyzer

No, I had already enabled it. Besides, WebStorm does not use rust-analyzer.

@shadows-withal
Copy link
Member

Not sure then, I've heard from people that JetBrains IDEs should just work. Are you using the latest version or are you on main?

@orblazer
Copy link

orblazer commented May 8, 2023

Hello, i have exactly same issue.
First i have try to downgrade rust-analyzer to v0.3.1451, try to set root_module to absolute paths (like i could found on #1462), but even with that that still doesn't work...

The only solution i have found is to delete rust-project.json and using the code i have could found here #1421 (comment) for generate mod.rs and now work for most of exercises, but i still have no error on some exercises.

@shadows-withal
Copy link
Member

This may be related to the same issue that the people in #1462 were having, @orblazer, by chance, are you using Windows?

@orblazer
Copy link

@shadows-withal no i use Manjaro with 6.1.26-1-MANJARO kernel version.

@shadows-withal
Copy link
Member

Hm, actually not related to that other issue, it seems.

@mo8it
Copy link
Contributor

mo8it commented Mar 30, 2024

This should be resolved when #1935 is closed.

@mo8it mo8it closed this as completed Mar 30, 2024
@jsejcksn
Copy link
Contributor

This should be resolved when #1935 is closed.

@mo8it I just tested the v6 branch (specifically 8c8f30d) and see the same behavior as OP with rust-analyzer in VS Code.

Version data:

% rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)

% rustlings --version
rustlings 6.0.0

% code --version
1.88.1
e170252f762678dec6ca2cc69aba1570769a5d39
arm64

% code --list-extensions --show-versions | grep 'rust-analyzer'
[email protected]

@mo8it
Copy link
Contributor

mo8it commented Apr 11, 2024

I am sorry for the confusion, but the v6 branch is not really functional yet 😅

As I mentioned in #1919 (comment), I am still working on the code for the next couple of days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants