Stream: t-compiler/wg-rls-2.0

Topic: Emacs: directory watch goes one level up?


apiraino (Aug 05 2020 at 14:36, on Zulip):

Hi, I don't understand the behaviour of lsp-rust when scanning directories for watch. Seems that sometimes it suggests watching one level up to the current directory. In the following cast I am in ~/tmp/test-ra and it suggest watching ~/tmp`.

apiraino (Aug 05 2020 at 14:36, on Zulip):

demo-ra.gif

apiraino (Aug 05 2020 at 14:37, on Zulip):

I've tried looking at the Lisp code but couldn't figure out the behaviour :thinking:

Florian Diebold (Aug 05 2020 at 14:39, on Zulip):

lsp-mode uses projectile to determine the project root, and should then ask you on first open whether you want to use the proposed directory or choose another

Florian Diebold (Aug 05 2020 at 14:39, on Zulip):

to get it to ask again for everything, you could delete ~/.emacs.d/.lsp-session-v1, I think

Florian Diebold (Aug 05 2020 at 14:40, on Zulip):

but for further information, you should ask in the emacs-lsp repository, there isn't really anything specific to rust-analyzer or even rust here as far as I know

Florian Diebold (Aug 05 2020 at 14:41, on Zulip):

my guess is that you initialized a session in ~/tmp at some point though, so now it just uses that for any subfolder of that directory

apiraino (Aug 05 2020 at 14:42, on Zulip):

Florian Diebold said:

my guess is that you initialized a session in ~/tmp at some point though, so now it just uses that for any subfolder of that directory

definitively. I didn't know that file existed, discovered a lot of junk there :-) that I will delete

apiraino (Aug 05 2020 at 14:42, on Zulip):

thank you so much for the hint and sorry for the out-of-scope question: sometimes I fail to figure out which Emacs component does what :-/

Last update: Sep 27 2020 at 13:30UTC