-
Notifications
You must be signed in to change notification settings - Fork 380
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
All files show "File is not included in module tree, …" #4302
Comments
Rolling back to "CLion 2019.2", having the same Rust plugin version, seems to fix the issue. |
I had the same problem after updating the plugin. I invalidated caches and the problem went away. |
@ctron Very weird stuff. Could you please try to invoke ctrl+shift+A "invalidate caches"? |
So I re-upgraded to "2019.2.1" and the problem was no longer present. I still "invalidated caches" … which fixed a few "missing references" I had after starting. |
I have the same issue and it is always reproducible on the Mac and Linux versions of currently newest CLion + Rust plugin: CLion 2019.2.5 Reproducible scenario:
Expected result: I get autocompletion and suggestions for structures in the async-std crate Actual result: the IDE behaves as if async-std is not added to cargo.toml When I manually navigate to the file/module I see the following message: I've experienced the issue only with the async-std crate. I've tried to "restart & invalidate caches" but it did not help |
@SvetlinZarev it seems different issues |
I have encountered the problem with @SvetlinZarev today.
|
@JamesWone All these steps are not relevant to your problem because the initial issue and your one differ. At this moment, there is no workaround to fix it |
I think this problem is related to accidental deletion of the Edit: Simply deleting the .idea folder in your project will fix this issue; at least it did so for me. Second edit: This fixed the issue for me at home but I still unfortunately have this problem at work. Deleting the .idea folder does not help. |
@stianeklund 2nded: deleting |
Happening for me as well. The project it's happening to me with is async-std. Deleting the |
I'm not sure this will help anyone but it appears that in my case, I was seeing this due to misunderstanding how CLion parses the packages. If you are seeing this problem with nested crates, you need to include your nested crates in the top level lib.rs/main.rs. CLion I guess only analyzes crates that are included and ignores the nested crates so you have to include them. |
@adamnemecek but it's not true
|
Ok sure but things seem to work when I do. Like this is probably a better solution anyway since it's version controlled and such. |
Edit: Disregard this. I'm fairly new to rust and simply forgot to add the file as a module x) |
@JohnnyJayJay please be so kind and explain how you added the file to module x I am still struggling with this. And am not sure what I forgot. |
@166MMX You need to add a |
@JohnnyJayJay Thanks a ton! It solved it for me. Though after so adding the I guess I was holding it wrong too, oops. |
Same issue when I open Rust exercises downloaded from exercism e.g. the Prime Factors exercise. |
If someone runs into this nowadays, please, file a new separate issue. |
Make sure you have used one of the functions declared in that file, the error will go away magically. |
Make sure there is no space in project path. |
Environment
Problem description
Since upgrading to CLion 2019.2.1, which probably upgraded the Rust plugin as well, all files show a bar, exception the
main.rs
show a bar "File is not included in the module tree, analysis is not available".This worked perfectly in the version before.
Steps to reproduce
The text was updated successfully, but these errors were encountered: