-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
rust-analyzer.files.excludeDirs is (still) not working #14734
Comments
same here. I have a tests/ directory with a lot of small, non-rust files, that stops rust-analyzer from being able to resolve symbols (no idea why). If I move the directory out of the way, RA works. But no form of excludeDirs I've found has any effect. I'm using vim-lsp, e.g.
with no effect. |
I have the same issue with non-rust files I use rust syntax highlighting for. They aren't in src/ and don't initially get checked but as soon as I open one in the editor rust-analyzer generates lot's of syntax errors. excludeDirs does not seem to have any effect at all. |
I am having the same issue. |
This sort of works for me:
This does seem to ignore tests/ dir (which happens to basically completely break rust-analyzer, and has no rust sources in it), but rust-analyzer still looks at vendor - presumably because it's referenced from src/ |
I also have this problem. It would be nice if rust-analyzer can also just use entries from the |
I'm having the same problem. It would be nice if files are also supported |
same problem. Do you have any suggestions for this? |
Same problem here. |
Any workaround for this? |
Does anyone have a good workaround for this? I'm using a Nix Flake to define my development environment, and although I have added |
Take a look at the approach I am using to make this work. See my comments here #3113 (comment) |
I saw this yes, I have added the folders to the excludeDirs. I'm using neovim, so this is slightly different, but the expected effect is the same.
|
Before you open the editor, try running 'cargo clean'. |
I have also tried doing this and it doesn't seem to change the situation. However I noticed that after cleaning, the progress indicator displayed by rust-analyzer does not reset. For the specific project I am testing with it displays |
This bug is preventing working around another bug: In my case, flatpak creates temporary folders containing symbolic links which then breaks RA but can't be excluded. Does it also mean RA is wandering around horrendous folders like node_modules? |
rust-analyzer.files.excludeDirs
does not appear to be working. Issue #7755 discussed this awhile ago and was closed, but the feature is still not working for me. I am using rust-analyzer 0.4.1501-standalone with rustc 1.68.2 in VSCode.It could be that I misunderstand how to specify directories. My project layout is
and my rust analyzer setting is
I tried also setting
files.watcherExclude
, as suggested in the documentation, but no luck.The text was updated successfully, but these errors were encountered: