Fork me on GitHub
#calva
<
2021-09-17
>
damien18:09:00

Hi all, I appear to be having some classpath issues using calva/clojure-lsp and a new fulcro project. Does anyone have any experience with fixing classpath issues for deps.edn + shadow-cljs full-stack projects like this (mix of cljs/cljc/clj)?

ericdallo18:09:54

First check the clojure-lsp server log, it will say what command tried to run

ericdallo18:09:00

then you can debug that command on your terminal

damien18:09:44

Hmm, so doing that, the classpaths look normal for both outputs of clojure -Spath and npx shadow-cljs classpath . There are no errors thrown by the lsp.

ericdallo18:09:15

so what made you think that calva/clojure-lsp was having issues with the classpath?

damien18:09:25

clj-kondo reports hundreds of unresolved and unused symbols on lint

damien18:09:37

Is there any way to configure that part of the integration?

ericdallo18:09:28

oh right, that is not related with the classpath scan, but with false-positives/clj-kondo configuration indeed :)

damien18:09:09

Ah perfect, thanks!

damien18:09:22

I can dig around in the fulcro config from https://github.com/clj-kondo/config

ericdallo18:09:58

@U1EPFAJ1J probably a lot of problems will be solved if you try to add this to your clj-kondo config:

:configs-paths ["com.fulcrologic/fulcro"]
ref: https://github.com/fulcrologic/fulcro/tree/develop/src/clj-kondo/clj-kondo.exports/com.fulcrologic/fulcro

👍 2
ericdallo21:09:03

Suggestion: add issue templates for the Calva repo :)

ericdallo21:09:41

maybe it should help with different issues like repl or static analysis or just route to the slack for ask questions

bringe19:09:31

Yeah, this might save us some back-and-forth conversation with regards to asking people for more information/clarification.

pez07:09:34

It also risks raising a barrier. I generally think that the issues posted are good and actionable. Also enjoy the conversations more than I think they are a bother. That said, we can probably populate the templates in a way that doesn't feel so much like hitting a brick wall. And encouraging using this channel to investigate a bit is a nice idea!

ericdallo13:09:01

Yes, its just a suggestion that could help filtering or requiring more input from users or just redirecting to the channel for questions, it works for most of projects I work, it may or not work for Calva :)