This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-11
Channels
- # architecture (1)
- # babashka (61)
- # babashka-sci-dev (1)
- # beginners (85)
- # calva (112)
- # clj-kondo (279)
- # cljdoc (16)
- # cljs-dev (15)
- # cljsrn (7)
- # clojure (168)
- # clojure-europe (36)
- # clojure-nl (10)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojured (1)
- # clojurescript (20)
- # core-async (16)
- # crypto (2)
- # cursive (13)
- # datomic (25)
- # events (7)
- # fulcro (21)
- # google-cloud (3)
- # graalvm (2)
- # graalvm-mobile (2)
- # gratitude (3)
- # helix (20)
- # honeysql (4)
- # hugsql (15)
- # introduce-yourself (15)
- # leiningen (2)
- # lsp (24)
- # luminus (22)
- # malli (21)
- # meander (11)
- # midje (1)
- # other-languages (1)
- # pathom (8)
- # re-frame (5)
- # reagent (5)
- # releases (2)
- # reveal (1)
- # shadow-cljs (18)
- # spacemacs (17)
- # sql (9)
- # tools-build (12)
- # tools-deps (4)
- # vim (12)
The clj-kondo integration with lsp on emacs was working fine, but now it's unable to access the clj-kondo jar file. From the stderr:
Error: Unable to access jarfile ~/clj-kondo-lsp-server-2022.02.09-standalone.jar
Process clojure-lsp stderr finished
I've verified that the jar exists and has the necessary permissions. What could have caused this?oh, that looks odd, I suppose you are not using clojure-lsp at all and using clj-kondo via emacs?
if so, maybe this is more a question for #clj-kondo as is not related with LSP, unless I didn't understand correctly your issue 😅
I see, I think it's okay to discuss it here if it's a LSP as well 😅 but probably @U04V15CAJ will know better about that clj-kondo server
you can download the lsp server jar from here: https://github.com/clj-kondo/clj-kondo/releases/download/v2022.02.09/clj-kondo-lsp-server-2022.02.09-standalone.jar should work :)
found an odd case of divergence between my LSP and actual compilation. I've got a spec that wants to match a deftype
in a different namespace. I used #(instance? other.ns.TheType %)
. that works when I compile the namespace, but LSP highlights that as an error
unresolved symbol "other"
. The namespace is required.
meanwhile a reference like other.ns/TheType
makes LSP happy but dies on real compilation, No such var: other.ns/TheType
should I be importing these like Java classes, maybe?
maybe @U04V15CAJ can help here, if that is expected from kondo side
it's a fully qualified class name, so probably?
you can do the same with java.time.Instant
or similar; if you import and just say Instant
, it works; but the fully qualified name is an error.
huh, I can't repro either in a separate ns.
weird. I'm not sure what's wrong with this namespace. it's just a load of specs, mostly simple ones.
oh! I think I see it. it's a .cljc
file but my test one was .clj
naturally it's not going to be cross-platform. I habitually made this specs file .cljc
but it's shot through with java.time
things, so I'll just make it .clj
.
calling it cljc
was a silly fiction, the real one imports four things that are .clj
and touch things like ByteBuffer
. this was never going to be cross-platform 🙂
ah, that seems to be the Right Solution.