-
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
Hang on "roots scanned" on projects with flatpak-builder folders due to FS walk over a symlink #8161
Comments
I think it would be wise to ignore folders in .gitignore which will likely solve the issue here |
I'm using the Anyways, for the relm4-template or gtk-rust-template, you can use this in your project's local {
"rust-analyzer.check.command": "clippy",
"rust-analyzer.files.excludeDirs": [
".flatpak-builder",
"build-aux",
"build",
"flatpak_app"
]
} The |
@onkoe What if we are using any other Text editor other than VSCode? Any ideas? |
@adhadse It should be as simple as configuring these options of r-a for your editor! I'd really like to get an editor-independent configuration file as discussed on the forums. It's also mentioned in #13529 |
Somewhere over the last few updates, rust-analyzer started hanging on "roots scanned" on some of my projects, notably gtk-rs applications. I dumped its stack and found out it's recursively walking build folders from Flatpak which contains a symlink to
/run
which contains, among other things, all files ever opened in Flatpak apps via the xdg-document-portal. Here's an example rust-analyzer backtrace during the issue:rust-analyzer in VSCode version v0.2.529, Fedora 33
The text was updated successfully, but these errors were encountered: