This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-18
Channels
- # announcements (8)
- # aws (5)
- # babashka (69)
- # beginners (37)
- # calva (222)
- # cider (10)
- # clj-commons (8)
- # clj-kondo (69)
- # cljdoc (5)
- # clojure (62)
- # clojure-dev (23)
- # clojure-europe (37)
- # clojure-italy (2)
- # clojure-nl (6)
- # clojure-sg (6)
- # clojure-uk (5)
- # clojurescript (25)
- # clojureverse-ops (12)
- # conjure (1)
- # cursive (1)
- # fulcro (9)
- # gorilla (1)
- # graalvm (6)
- # graphql (1)
- # gratitude (1)
- # honeysql (7)
- # introduce-yourself (4)
- # jobs (1)
- # kaocha (9)
- # keyboards (4)
- # leiningen (8)
- # lsp (21)
- # malli (9)
- # music (3)
- # nextjournal (17)
- # nrepl (6)
- # off-topic (10)
- # pathom (12)
- # portal (25)
- # reagent (8)
- # releases (1)
- # specter (1)
- # xtdb (1)
in the last few weeks I noticed a very annoying behaviour, sometimes opening a file takes a very long time with lsp enabled
I think it's related to the fact that even if all the files I open are inside git projects, sometimes it asks me if I want to index the whole $HOME
Do you have a $HOME/.git directory? Perhaps what ever detects the root of the project is seeing that as the top level of the project
mm no I don't
it just happened again
can't really find a pattern yet
which is quite weird, any idea what could confuse LSP to try to index things outside of the projects I open?
ah I just did some profiling in Emacs actually and I think it was actually global-linum-mode
to lock forever 😮
it didn't use to do that though, weird
You could replace linum with the built-in, unless you are using linum because you're stuck on an old emacs
ah yeah coudl do that, but tbh I probably don't even need it
with Clojure is not like files are that long anyway
@andrea.crotti also make sure lsp-mode is using the correct project root of your project and not your home. M-x
lsp-workspace-folders-remove
and remove home if exists and your project then M-x
lsp
and import the correct project root
thanks!
Where do i go to set the variables lsp-enable-file-watchers' and
lsp-file-watch-threshold' ? From this warning:
Watching all the files in /home/drewverlee/archmedx/kyber would require adding watches to 2254 directories, so watching the repo may slow Emacs down.
Do you want to watch all files in /home/drewverlee/archmedx/kyber? (y or n) y
LSP :: You can configure this warning with the `lsp-enable-file-watchers' and `lsp-file-watch-threshold' variables
unrelated question, the instructions here for installing a a cljs debugger seem to assume your using VS code for some reason? https://emacs-lsp.github.io/lsp-mode/tutorials/debugging-clojure-script/#debugging