Fork me on GitHub
#lsp
<
2022-05-18
>
Michaël Salihi13:05:34

Hi, I experience this following error after update some packages on Spacemacs:

Warning (lsp-mode): Failed to parse the following chunk:
''’
Content-Length: 37

{"jsonrpc":"2.0","id":10,"result":{}}
''’
with message (void-function json-parse-buffer)
Already tried to delete .lsp/.cache folder. Are you aware of this issue ? Any suggestions?

ericdallo13:05:34

sounds like badcompiled issue on lsp-mode

ericdallo13:05:47

also, check lsp-doctor

Michaël Salihi13:05:20

Ok thanks, I check. 👍

Michaël Salihi13:05:30

lsp-doctor output:

Checking for Native JSON support: OK
Check emacs supports `read-process-output-max': OK
Check `read-process-output-max' default has been changed from 4k: OK
Byte compiled against Native JSON (recompile lsp-mode if failing when Native JSON available): OK
`gc-cons-threshold' increased?: OK
Using `plist' for deserialized objects? (refer to ): OPTIONAL
Using emacs 28+ with native compilation?: OPTIONAL

Michaël Salihi13:05:46

Seems OK, right?

Michaël Salihi13:05:14

Trying to reinstall lsp-mode

ericdallo13:05:52

yep, looks correct

ericdallo13:05:08

not finding json-parse-buffer looks really bad compilation

ericdallo13:05:16

it's a native function from emacs 27+

Michaël Salihi13:05:01

Currently forcing a complete pkgs recompilation...W&S

Michaël Salihi13:05:21

Nope, same error. So rolling back package update now.

ericdallo13:05:25

does M-x describe-function json-parse-buffer find anything?

Michaël Salihi13:05:41

No. json-parse-buffer definitly missing. I'm on Emacs 27.1

ericdallo14:05:56

hum, interesting

Michaël Salihi14:05:47

I'm currently upgrading Emacs 28.1 from source. 🤞

👍 1
Michaël Salihi15:05:05

FYI since upgrading, it works again. 🎉 However, describe-function still doesn't find json-parse-buffer...interresting :thinking_face:

Michaël Salihi18:05:19

Anyway, thank you very much for your help. gratitude

👍 1