Fork me on GitHub
#calva
<
2021-02-25
>
bringe00:02:10

Well... had to revert that release for now 😅. v2.0.176 has the reversion. There's an issue in the released version of the code with the interop between cljs and js that I need to figure out: https://github.com/BetterThanTomorrow/calva/issues/1044

😔 1
seancorfield01:02:06

Just noticed I have Auto Close Tag extension installed but can't remember why/when -- thoughts? Keep it, nix it? Looks like it is only relevant to HTML/XML so that's probably why I added it and I guess without it you have to close tags manually, so I guess I'll keep it.

pez06:02:49

One day, when I find a huge bag of time, I'll make paredit work with HTML/XML.

1
ingesol08:02:58

Hi! I used Calva for about. week now. Worked fine with refactorings, references search and other Clojure features for somedays, but last few days the message “Initializing clojure language features via clojure-lsp” is spinning in the bottom bar, and things like references search don’t work. I’ve tried restarting VS code and my mac. Any ideas?

pez08:02:37

See if using v2.0.173 makes a difference.

ingesol09:02:30

@pez Didn’t touch the extension config system yet, that was a pleasant experience. Unfortunately no luck, tried 2.0.172 and 2.0.173. I have a pretty new mac, how long does it normally take to initialize? 5 minutes now on 172

ingesol09:02:45

I should mention that I’m not using a REPL connection. But worked without it earlier.

pez10:02:17

It should be a matter of seconds, certainly below a minute.

pez10:02:13

And it is designed to be able to use w/o a REPL connection.

pez10:02:55

I think it might be a question where you can get help in the #lsp channel. I’ll be following the discussion and try to be of help if I can.

💯 1
borkdude11:02:38

@ingesol You can try removing the .lsp/sqlite.db file and re-open your project. Sometimes helps

ingesol11:02:51

Thanks, but no luck on that so far.

borkdude11:02:12

It would be nice if clojure-lsp the binary had some --doctor option which you could execute from the command line to see what it's doing exactly and what the status of things is. @ericdallo

borkdude11:02:38

That would be quite convenient for situations like this, to see if it's in LSP or if it's in the client side (Calva or lsp-mode)

ingesol11:02:24

@pez @borkdude Thanks for helping out! It turned out to be a StupidUserException after all, I suddenly remembered that I never actually got my custom clj-kondo hook to work, and it crashed the whole thing silently

pez11:02:19

Ah, yes. I had also forgotten about that you were experimenting with kondo hooks. We should probably add a troubleshooting section here: https://calva.io/clojure-lsp/

ericdallo12:02:40

@borkdude it'd be a good feature, but not sure what to check, most things LSP has that could be checked are received when server is initializing

borkdude12:02:25

@pez Right, in the troubleshooting section you could put:

rm -rf .lsp/sqlite.db
rm -rf .clj-kondo/.cache
mv .clj-kondo/config.edn .clj-kondo/config.backup.edn

borkdude12:02:58

The last line will disable the existing clj-kondo config (and thus all hooks as well), which sometimes can contain mistakes as well

ericdallo12:02:24

I think clj-kondo prints an error if could not parse the config.edn correctly (hooks errors also?), if we bind the *out* we could probably log that to clojure-lsp log @borkdude?

borkdude12:02:38

yes, it prints it to *err* though, like all tools should do

ericdallo12:02:45

Right, so that's probably not being caught as clojure-lsp is a process running in background, that's why we log to a custom file, I'll check if we can catch the *err* and log to the file instead 🙂

borkdude12:02:50

Makes sense :)

👍 1
ericdallo16:02:38

Working 🙂

ingesol16:02:27

I’m happy and proud to be contributing to open source by providing examples of bad input 🙂 @borkdude @pez @ericdallo

😂 1
❤️ 6
borkdude16:02:33

We're all just one big neural network helping each other out

clojure-spin 6
truestory 2
pez16:02:23

> one big happy neural network There, fixed it fer’ya. 😃

simple_smile 4