This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-18
Channels
- # announcements (2)
- # babashka (65)
- # beginners (104)
- # boot (8)
- # calva (23)
- # circleci (3)
- # clj-commons (1)
- # clj-on-windows (3)
- # clojure (43)
- # clojure-europe (45)
- # clojure-france (2)
- # clojure-italy (3)
- # clojure-nl (3)
- # clojure-norway (13)
- # clojure-uk (4)
- # clojurescript (5)
- # core-typed (2)
- # cursive (5)
- # data-science (2)
- # datalevin (10)
- # emacs (38)
- # events (2)
- # fulcro (11)
- # graphql (6)
- # gratitude (2)
- # helix (11)
- # hugsql (3)
- # jobs (2)
- # lsp (17)
- # luminus (1)
- # malli (15)
- # missionary (3)
- # nrepl (6)
- # off-topic (6)
- # pedestal (2)
- # portal (16)
- # reagent (33)
- # reitit (4)
- # releases (12)
- # ring (2)
- # sci (3)
- # shadow-cljs (21)
- # spacemacs (7)
- # sql (5)
- # tools-build (36)
- # web-security (2)
I’ve started seeing a strange error from Calva (or something related) recently, and I’m not sure what changed nor where to go to start hunting it down. I’m getting this output in the Clojure Language Client output window whenever any Clojure/ClojureScript file is edited, including Calva’s output / REPL buffer
[Error - 1:47:46 PM] Request textDocument/linkedEditingRange failed.
Message: No symbol found
Code: -32602
Do you know what this could be about, @UKFSJSM38?
It's this issue: https://github.com/BetterThanTomorrow/calva/issues/1374 IMO, a bug on vscode, not on clojure-lsp
🙂 Thanks for the fast response! I’m glad it is a known issue. From the ticket, it seems the workaround is to downgrade Calva to an earlier version? If that’s the case, is there a simple way to do so? Or perhaps to turn off the toast and stop the Output window from popping up constantly? It seems to be benign, but the visual distractions are… distracting 🙂
I think there is a quickfix here of force disabling linkedEdittingRange on calva side c/c @U9A1RLFNV Maybe forcing to not send that capability when initializing server
I’ll try to look into this soon, though I’m pretty busy lately. If anyone else wants to though, much of the clojure-lsp code is here: https://github.com/BetterThanTomorrow/calva/blob/published/src/lsp/main.ts.
I made an attempt https://github.com/BetterThanTomorrow/calva/pull/1389, not sure it fixes all issues, It'd be good to generate the vsix and ask for people with that issue to test
Thanks! The CI for PRs builds the vsix, just FYI. I’m not certain that anyone can access them, though. Here’s the link for the vsix from that PR: https://16086-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.226-pull-1389-ae48b63f.vsix @U02MRUJUREH If you could try that vsix and let us know if it fixes the issue for you, that would be great!
https://github.com/BetterThanTomorrow/calva/wiki/Testing-VSIX-Packages#installing-a-vsix-package <- Here are instructions, in case you aren’t familiar with the process.
Sweet, thanks! I can take a look to see if that fixes things on Monday. Interestingly enough, my machine crashed and after rebooting the problem seems to have gone away. Not sure if something updated behind the scenes or it is due to a race condition, but I’m no longer experiencing the buggy behavior I was before.
Indentation doesn't seem to work as expected when I hit enter. Have to explicitly tab. I remember seeing something here about a workaround but can't find it now.
yes set calva.fmt.formatAsYouType
to true and toggled editor.formatOnType
between true and false.