This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-15
Channels
- # announcements (2)
- # beginners (24)
- # calva (22)
- # cider (4)
- # clara (15)
- # clojure (24)
- # clojure-europe (24)
- # clojure-korea (16)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (8)
- # clojurescript (30)
- # conjure (1)
- # datahike (1)
- # datomic (7)
- # emacs (10)
- # events (1)
- # fulcro (22)
- # graalvm (18)
- # graphql (6)
- # jobs (1)
- # jobs-discuss (71)
- # lsp (22)
- # malli (27)
- # missionary (31)
- # polylith (7)
- # portal (6)
- # releases (1)
- # remote-jobs (3)
- # ring (9)
- # shadow-cljs (16)
- # squint (1)
- # tools-deps (9)
- # vim (9)
- # xtdb (15)
does anyone else have the issues with too many open files
on mac, which is possibly caused also by LSP (opening big projects)? M-x file-notify-rm-all-watches
solves it for a bit but then it happens a gain, would like a more permanent solution ideally
I have this in my .el stuff:
lsp-enable-file-watchers nil
lsp-file-watch-threshold 10000
ah right so you just disabled it then though
I guess I can do the same
not entirely sure what does that affect
lsp watches all files by default. if you have a js portion of your project, this means it will watch a ton of temporary files and compiled output. Currently there’s no way to specify the folders you want it to watch, you have to enumerate the ones you want it to not watch
It's been years since I used a Mac but I used to run into the default file open limit on all sorts of things so I used to set ulimit
to unlimited. I don't remember the command or config for that any more but if you search for too many open files ulimit
I expect you can find it...
Since you use emacs, you might be interested in https://emacs-lsp.github.io/lsp-mode/page/faq/#how-do-i-force-lsp-mode-to-forget-the-workspace-folders-for-multi-root-servers-so-the-workspace-folders-are-added-on-demand (to make lsp lazily load workspaces and hence file-watches). Adding ignores to compiled output also helps (I have it set for .projen
, cdk.out
, .next
, .husky
, etc)
Does clojure-lsp
support find references http://et.al. when you refer to a var with a quoted qualified symbol?
https://github.com/clojure-lsp/clojure-lsp/commit/65f06f218a72bd2d19ce881d33e4f1fc09f62b59 seems to say "yes"
but when I try something like
(def foo "hello")
(def bar 'the.current.namespace/foo)
I can a) navigate from the symbol to foo
but b) lens reports "0 references"right, ok. I can make a ticket if it helps 🙂
motivation: we have a bunch of datastructures with symbols (e.g. (def operations {"some name" 'some.namespace/a-function ...})
+ requiring-resolve
) and unfortunately clojure-lsp
flags the referred vars with "unused public var", which is sometimes unfortunate as you might accidentally think it's safe to remove such var.
Is this sufficient? https://github.com/clojure-lsp/clojure-lsp/issues/1804