lsp

erwinrooijakkers 2025-02-10T14:40:18.202959Z

I am happy to see clojure-lsp is much faster now

๐Ÿš€ 1
erwinrooijakkers 2025-02-10T14:41:26.497329Z

I was wondering, do I need to configure anything to find references? I have a namespace with a function that is referenced in another namespace. lsp, however, mentions 0 references. if the usage is in the same namespace it does work.

borkdude 2025-02-10T14:42:20.003989Z

are both namespaces on your classpath?

๐Ÿ™ 1
erwinrooijakkers 2025-02-10T14:44:43.801889Z

ah after loading the core.cljs into lsp it does find the reference

erwinrooijakkers 2025-02-10T14:53:18.216989Z

not sure how I can add it to my classpath when opening the project? itโ€™s a leiningen + shadow-cljs project

borkdude 2025-02-10T14:54:15.993809Z

https://clojure-lsp.io/settings/#classpath-scan

โ˜๏ธ 1
borkdude 2025-02-10T14:54:31.627149Z

> If a shadow-cljs.edn is found at the project root, clojure-lsp will run npx shadow-cljs classpath

erwinrooijakkers 2025-02-10T15:04:02.799699Z

thank you

erwinrooijakkers 2025-02-10T16:27:36.345759Z

another reference thatโ€™s not found, comes from the integration test

borkdude 2025-02-10T16:27:55.262899Z

same issue

erwinrooijakkers 2025-02-10T16:28:02.694169Z

hmm

borkdude 2025-02-10T16:28:11.002729Z

you need to configure lsp such that your integration tests are on the classpath

borkdude 2025-02-10T16:28:31.680069Z

that lsp is going to analyze

erwinrooijakkers 2025-02-10T16:31:43.844679Z

this seems to work for lsp as well

borkdude 2025-02-10T16:32:31.990059Z

you need to do this in the lsp config file, not in clj-kondo's

erwinrooijakkers 2025-02-10T16:32:56.676439Z

ah ok interesting

borkdude 2025-02-10T16:33:24.787979Z

perhaps it works because it merges stuff, but you can't count on this

๐Ÿ‘ 1
erwinrooijakkers 2025-02-10T16:59:27.349119Z

is there a way to prevent the โ€œ1 referenceโ€ to go underneath the function name? so that it always appears on the right?

erwinrooijakkers 2025-02-20T10:12:57.834309Z

What does LSP actually still do after disabling all these features? ๐Ÿ™‚

erwinrooijakkers 2025-02-20T10:13:33.419359Z

The only thing I notice is that I am missing aggressive-indent-mode

erwinrooijakkers 2025-02-20T10:14:33.602669Z

or you have to specifically look for the features?

erwinrooijakkers 2025-02-20T10:14:44.381439Z

i do notice the new keybindings

ericdallo 2025-02-20T10:49:58.388369Z

you can check all features https://clojure-lsp.io/features/

๐Ÿ‘ 1
erwinrooijakkers 2025-02-11T16:43:06.201609Z

great thank you I have taken them over as well ๐Ÿ™‚

ericdallo 2025-02-10T17:09:20.852659Z

What editor/plugin are you using?

erwinrooijakkers 2025-02-10T17:09:33.800209Z

emacs/spacemacs

ericdallo 2025-02-10T17:10:05.569889Z

if using lsp-mode, there is the lsp-lens-place-position variable, but the default is already end-of-line

erwinrooijakkers 2025-02-10T17:10:13.342399Z

great

erwinrooijakkers 2025-02-10T17:13:29.823289Z

warnings appear on the right and seemingly push the reference down

ericdallo 2025-02-10T17:20:28.489189Z

yeah, sounds like a problem with the warnings ui, I don't have lsp-ui sideline enabled for this and other reasons

erwinrooijakkers 2025-02-10T17:20:59.859069Z

ah let me disable it too

erwinrooijakkers 2025-02-10T17:21:36.584909Z

good to know thatโ€™s where it comes from

ericdallo 2025-02-10T17:25:06.298649Z

https://github.com/ericdallo/dotfiles/blob/master/.config/doom/config.el, but I use doom-emacs, so some things may be different

practicalli-johnny 2025-02-10T20:34:16.020229Z

FYI: I set options in the https://github.com/practicalli/spacemacs-config/blob/main/init.el#L119 for a minimal set of UI elements (config includes basic descriptions of options)