Fork me on GitHub
#calva
<
2023-02-27
>
seancorfield23:02:15

As of today, with the latest Calva, I'm seeing this error a lot while editing:

[Error - 3:02:14 PM] Request textDocument/documentSymbol failed.
  Message: Internal error
  Code: -32603 
[object Object]

seancorfield23:02:23

Seems to happen on almost every keystroke.

skylize02:02:59

When I see things like this, I save the file and start deleting things. Start with deleting all the forms below the current one, then all the ones above. Assuming I get it down to the one form, I start stripping things out of the form, trying to keep everything valid (even if it wouldn't pass linting) until reducing it to the absolute minimum characters that break LSP.

seancorfield02:02:35

It didn't seem to affect any functionality so I ignored it -- and at some point in the last few hours it seems to have stopped doing it. Weird. And it was happening in every file -- in perfectly valid code that LSP was happy with on Thursday.

skylize02:02:49

Weird. Maybe an invalid cache that eventually got overwritten with a valid update? Glad you aren't suffering. 😁

seancorfield02:02:18

🤷:skin-tone-2: Dunno. I figured I'd post just in case others were seeing some weirdness -- in case it was "just me"...

skylize02:02:19

textDocument/documentSymbol points to the API for "Go To Symbol". Super-strange that you would be getting errors about it on random keystrokes.

seancorfield02:02:32

Yeah, even when typing characters inside a string it was happening... that was what seemed so bizarre about it.