You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The client message to initialize the language server is not sent because an error occurs during serialization: LSP :: Sending to process failed with the following error: Wrong type argument: json-value-p, set-from-style
From what I could see, this happens when lsp-mode tries to initialize.
The variable lsp-java-format-tab-size uses 'c-basic-offset that has 'set-from-style as default value.
Setting 'c-basic-offset to a number prevents the serialization error.
I am getting this error in my linux machine only, with latest emacs from git. GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-05-23
Note: I don't remember getting the same error in emacs 28 so I suspect it might be specific to emacs 30.
To Reproduce
Try to connect any java buffer to the language server.
Server process starts, but never receives the initialize request.
Expected behavior
The language server is initialized.
Logs
LSP :: Restarting LSP in buffer App.java
using config for config_linux
LSP :: Sending to process failed with the following error: Wrong type argument: json-value-p, set-from-style
LSP :: Connected to [jdtls:899939/starting /home/i2n/code/test].
The text was updated successfully, but these errors were encountered:
Describe the bug
The client message to initialize the language server is not sent because an error occurs during serialization:
LSP :: Sending to process failed with the following error: Wrong type argument: json-value-p, set-from-style
From what I could see, this happens when lsp-mode tries to initialize.
The variable
lsp-java-format-tab-size
uses'c-basic-offset
that has'set-from-style
as default value.Setting
'c-basic-offset
to a number prevents the serialization error.I am getting this error in my linux machine only, with latest emacs from git.
GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-05-23
Note: I don't remember getting the same error in emacs 28 so I suspect it might be specific to emacs 30.
lsp-java version:
Version: 20230507.517
Commit: 961f1a1
To Reproduce
Try to connect any java buffer to the language server.
Server process starts, but never receives the
initialize
request.Expected behavior
The language server is initialized.
Logs
The text was updated successfully, but these errors were encountered: