Fork me on GitHub
#lsp
<
2022-10-19
>
Noah Bogart13:10:53

two questions: 1. is it possible to use a different version of clj-kondo than the built-in one with clojure-lsp? 2. any suggestions on how to use clojure-lsp in gitlab for CI?

ericdallo13:10:00

1. ATM no, it's a hardcoded deps on lib/deps.edn 2. I never tried but already used on GithubActions, it should be pretty similar

Noah Bogart13:10:20

Okay, I'll start poking at this then

ericdallo13:10:51

I have no experience with gitlab CI, but if you manage to install clojure-lsp sucessfully there using any install method from https://clojure-lsp.io/installation/ it should be good

šŸ‘ 1
ericdallo13:10:37

not sure if Gitlab has a GithubActions projects concept, if so, it'd be nice to create as we created https://github.com/clojure-lsp/setup-clojure-lsp

borkdude13:10:05

It is possible to use a different version of clj-kondo, I'm doing this myself all the time

ericdallo13:10:59

not via clojure-lsp, you disable diagnostics and use from your flycheck-clj-kondo right? this makes clojure-lsp don't report unused-public-var for example

šŸ‘ 1
borkdude13:10:32

What you have to do to use clj-kondo separately from clojure-lsp: Emacs: ā€¢ disable lsp-mode diagnostics ā€¢ use clj-kondo via flycheck-clj-kondo VSCode: ā€¢ Disable linting in clojure-lsp in ~/.lsp/config.edn (or similar) ā€¢ Install the clj-kondo extension

šŸ‘ 1
borkdude13:10:09

I have unused-public-var disabled, so for me it's no difference

Noah Bogart13:10:42

cool, thanks friends

Drew Verlee20:10:59

lsp find definition just takes me to the require of the namespace i'm already in. Any idea what i can do to fix this?

Drew Verlee20:10:52

LSP :: lsp-mode <tel:202210191010|20221019.1010>, Emacs 28.2, gnu/linux

Drew Verlee20:10:06

does that include the server information?

Drew Verlee20:10:40

which clojure-lsp /usr/local/bin/clojure-lsp

ericdallo20:10:03

nope, could you lsp-clojure-server-info

ericdallo20:10:13

or clojure-lsp --version if installed on your machine not via lsp-mode

ericdallo20:10:29

oh, ā˜ļø will work for you

Drew Verlee20:10:49

clojure-lsp --version clojure-lsp 2022.10.05-16.39.51 clj-kondo 2022.10.05

Drew Verlee20:10:48

using the gui "go to defination" it works. let me make sure im htting the right keys or not misunderstanding the command im issuing

Drew Verlee20:10:14

carry on eric, i'm just a big dummy

Drew Verlee20:10:49

i was doing "find declaration" instead of "find defination"

Drew Verlee20:10:12

i never even considered wanting to find the "declaration" so i just thought it was another way to say definationh.

ericdallo20:10:21

yep, that makes sense

šŸ‘ 1
ericdallo20:10:42

we added some months ago the possibility to go to the declaration going to the ns

Drew Verlee20:10:23

yeah, it's a nice addition šŸ™‚