This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
arg! I accidentally answered the initial startup clojure-lsp question about my root directory wrongly - now it always scans my home directory. Where does the project root get stored so that I can clear it? THANKS!
In a emacs cache folder, lsp-mode manages it, you can fix it with lsp-workspace-folders-remove
and then lsp
HORRAY! Thanks (again) I seem to do this about once every 6 months. I will write it down this time.
and the side effect, "emacs hangs for like 30 seconds" while it parses thousand and thousands of files under my home directory is so disheartening....
if this said also said: "to change see lsp-workspace-folders-remove" - that would be helpful.
Yeah, I'll check why we can't ask a second question when the hoot is the home folder, to confirm it
Yea, the scenarios is; I create a file in my home dir; like "scrap.clj" then I edit it with emacs. often I want to evaluate something quickly - and I am thinking of the problem I want to solve and I skip over that initial question (as I most often want to just use the current directory) - then I get stuck my home directory always being scanned. Even when I create a new project directory and move my scrap.clj into it. So once I get into this situation I am quite baffled about how to get out.
By the way, clojure-lsp is so wonderful! It really is fabulous. I sometimes find myself developing for quite a while before I realize I'm not jacked in yet. MUCH THANKS!
Awesome! I remember the first time I realized I was not using a repl after some time coding in the project :)
Yeah, not sure there is a better way if you really created the file on the home folder
Yea, I can tape "lsp-workspace-folders-remove" to my screen - but I'm just thinking about someone else can get out of that situation. Of course, updating the troubleshooting is a great idea. I did pop around into the lsp-log buffer and look for clues there. Perhaps if starting up takes longer than 4 seconds, it should log a message in the lsp-log buffer... saying like "clojure-lsp initialization took 33 seconds - is your project root correct? it can altered with lsp-workspace-folders-remove" . or something like that...
you mean this? This is very helpful (it warns you about why things are not right) but this message seems to show up after the scan has taken place - and it doesnt help me figure out how to change the directory.
FYI: $ clojure-lsp --version clojure-lsp 2022.03.31-20.00.20 clj-kondo 2022.03.10-SNAPSHOT