calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
bringe 2021-02-25T00:09:10.083500Z

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
seancorfield 2021-02-25T01:02:06.084600Z

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.

pez 2021-02-25T06:32:49.086300Z

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

1
seancorfield 2021-02-25T06:33:29.086600Z

Masochist!

ingesol 2021-02-25T08:54:58.088800Z

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?

pez 2021-02-25T08:58:37.089600Z

See if using v2.0.173 makes a difference.

ingesol 2021-02-25T09:15:30.091Z

@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

ingesol 2021-02-25T09:24:45.091600Z

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

pez 2021-02-25T10:03:17.092300Z

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

pez 2021-02-25T10:04:13.093200Z

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

pez 2021-02-25T10:06:55.095600Z

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
borkdude 2021-02-25T11:10:38.097300Z

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

borkdude 2021-02-25T11:11:12.098Z

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

borkdude 2021-02-25T11:11:38.098500Z

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)

ingesol 2021-02-25T11:24:51.098600Z

Thanks, but no luck on that so far.

ingesol 2021-02-25T11:33:24.099600Z

@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

borkdude 2021-02-25T11:34:16.099800Z

:)

pez 2021-02-25T11:51:19.100700Z

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/

ericdallo 2021-02-25T12:19:40.101900Z

@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

borkdude 2021-02-25T12:21:25.102900Z

@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

borkdude 2021-02-25T12:21:58.103300Z

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

ericdallo 2021-02-25T12:40:24.104300Z

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?

borkdude 2021-02-25T12:41:38.104700Z

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

ericdallo 2021-02-25T12:42:45.105800Z

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 🙂

borkdude 2021-02-25T12:43:50.106100Z

Makes sense :)

👍 1
ericdallo 2021-02-25T16:05:38.111100Z

Working 🙂

borkdude 2021-02-25T16:06:33.111500Z

:)

ingesol 2021-02-25T16:42:27.113100Z

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

❤️ 6
😂 1
borkdude 2021-02-25T16:43:33.113600Z

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

6
2
pez 2021-02-25T16:55:23.114700Z

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

4