-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Module declaration missing warning in IntelliJ #1825
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
Comments
Did you run |
I just tried that and re-enabled the inspection, and the warning returned. |
Right, then I think that's just going to be something that the editor will keep complaining about, I'm afraid. It's good that there's a way to disable the warning, at least. |
I just noticed something else, which I think is related. I can't navigate to rustlings code in the same file. In structs3.rs when I go to So the package indexing is definitely A Thing in the exercise sources, I just can't figure out how to resolve it. |
Closing because this should be fixed in #1935 Also this might be outdated anyway since there is RustRover now. |
First up, I'm loving rustlings. It's addictive!
In IntelliJ 2023.3.2 with the JetBrains Rust plugin (233.23135.116) I get a warning whenever I open a module, that says Module declaration missing. This may impact smart editing features and auto-completion. (See image below.)
I think it is because all the exercises are technically detached modules; they aren't referenced in a
lib.rs
ormain.rs
elsewhere.I can suppress this warning by disabling the
Detached file
inspection in the project settings (Editor -> Inspections -> Rust -> Detached file).The Rust plugin seems to be working ok, with completions, etc., and the rustlings watch process is working fine too, so I'm posting this issue mostly for awareness.
ObSetup:
1.75.0 (82e1608df 2023-12-21)
5.6.1
The text was updated successfully, but these errors were encountered: