Stream: t-compiler/rust-analyzer

Topic: file not included in module tree


Jake Goulding (Mar 19 2021 at 20:55, on Zulip):

I'm getting this error, but I don't really know why and I'm not sure what it's talking about.

Lukas Wirth (Mar 19 2021 at 21:18, on Zulip):

That just means that the file you are viewing isn't mod declared in the workspace and therefor not in the module tree. We emit this warning for files as we do not analyze those.

Jonas Schievink [he/him] (Mar 19 2021 at 22:02, on Zulip):

any way we could improve the wording here?

Jake Goulding (Mar 20 2021 at 11:55, on Zulip):

Sorry, I should have mentioned that this is for my lib.rs.

Jake Goulding (Mar 20 2021 at 12:34, on Zulip):

image.png

Jake Goulding (Mar 20 2021 at 17:14, on Zulip):

Ah. The problem was that I imported one project/directory into emacs (foo) then moved another project inside of it (foo/bar). Thus emacs / LSP-mode was running rust-analyzer rooted up one directory.

Jake Goulding (Mar 20 2021 at 17:15, on Zulip):

The fix was to manually say that this directory was it's own thing (lsp-workspace-folders-add)

Last update: Jul 27 2021 at 22:30UTC