-
-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
conclusion: invalidIssue/PR not validIssue/PR not validtype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
Describe the problem
Trying to get the arduino-language-server to work in emacs, but there is no LSP functionality available. Also hitting RET at anytime will cause emacs to hang, because its waiting for the LSP server to respond.
Are there any logs for arduino-language-server that i can check?
eglot is configured the following way:
(with-eval-after-load 'eglot
(add-to-list 'eglot-server-programs
'(arduino-mode . ("arduino-language-server"
"-clangd" "/usr/bin/clangd"
"-cli" "/home/jonas/bin/arduino-cli"
"-cli-config" "~/home/jonas/.arduino15/arduino-cli.yaml"
"-fqbn" "esp32:esp32:esp32"))))
The server starts and connects, but then exits with:
[jsonrpc] Server exited with status 2
[eglot] (warning) Reconnecting after unexpected server exit.
[eglot] Connected! Server `arduino-language-server' now managing `(arduino-mode)' buffers in project `client'.
[eglot] Reconnected!
Quit
[jsonrpc] Server exited with status 2
[eglot] (warning) Reconnecting after unexpected server exit.
[eglot] Connected! Server `arduino-language-server' now managing `(arduino-mode)' buffers in project `client'.
[eglot] Reconnected!
[jsonrpc] Server exited with status 2
[eglot] (warning) Reconnecting after unexpected server exit.
[eglot] Connected! Server `arduino-language-server' now managing `(arduino-mode)' buffers in project `client'.
[eglot] Reconnected!
jsonrpc-request: jsonrpc-error: "request id=5 failed:", (jsonrpc-error-message . "Timed out")
[jsonrpc] Server exited with status 2
[eglot] (warning) Reconnecting after unexpected server exit.
[eglot] Connected! Server `arduino-language-server' now managing `(arduino-mode)' buffers in project `client'.
I also saw the "exited with Status 9" Error.
To reproduce
Configure eglot like above.
Expected behavior
Serve to Eglot.
Arduino Language Server version
0.7.6
Arduino CLI version
1.0.3
Operating system
Linux
Operating system version
Debian Stable
Additional context
No response
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest version
- My report contains all necessary details
Metadata
Metadata
Assignees
Labels
conclusion: invalidIssue/PR not validIssue/PR not validtype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project