arduino-language-server icon indicating copy to clipboard operation
arduino-language-server copied to clipboard

Completion not working

Open HendrikMennen opened this issue 3 years ago • 6 comments

Bug Report

I am not sure if this happens with Arduino IDE too, but for me Completion does not work at all in the latest build.

It shows that completion is requested, but I never get a response. Clangd alone works fine with my IDE.

[00:03:10] Arduino LS: 2022/01/04 14:35:54 ←[92m                 textDocument/didChange: ←[93mwrite-unlocked←[0m←[0m
[00:03:10] Arduino LS: 2022/01/04 14:35:54 ←[92mIDE --> LS REQU textDocument/completion 3←[0m
[00:03:10] Arduino LS: 2022/01/04 14:35:54 ←[91mIDE     LS <-- Clangd NOTIF textDocument/publishDiagnostics←[0m

HendrikMennen avatar Jan 04 '22 13:01 HendrikMennen

Having the same issue. The server is not sending any response.

listout avatar Feb 03 '22 18:02 listout

I have the same issue while using the language server with neovim. I think this is more than a mere imperfection and a pretty serious issue, especially if it also affects the official IDE. Its been over 2 months and i still get this error with the git version of the language server. See the issue mentioned above

drank40 avatar Mar 13 '22 17:03 drank40

Any updates on this?

HendrikMennen avatar Sep 07 '22 17:09 HendrikMennen

almost two years later... nothing new?

metalinspired avatar Apr 28 '24 17:04 metalinspired

I have not tested it yet but nvim-lspconfig seems to have a decent tutorial on using the Arduino language sever. You can refer https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#arduino_language_server

On Sun, Apr 28, 2024, 10:39 PM Milan Divkovic @.***> wrote:

almost two years later... nothing new?

— Reply to this email directly, view it on GitHub https://github.com/arduino/arduino-language-server/issues/97#issuecomment-2081558381, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP4726SVZUSC53HGO4LJVS3Y7UUMTAVCNFSM5LHPHLM2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBYGE2TKOBTHAYQ . You are receiving this because you commented.Message ID: @.***>

listout avatar Apr 28 '24 18:04 listout

My set up is just fine since I have a dozen of other LSPs running :) The issue is that Arduino Language Server simply does not reply while initializing.

Here is a error from LSP log: [ERROR][2024-04-29 07:14:22] .../vim/lsp/rpc.lua:770 "rpc" "/home/foo/.arduino-language-server/arduino-language-server" "stderr" "07:14:21.817051 \27[97mLS: : Initial board configuration: \27[0m\n07:14:21.817088 \27[97mLS: : arduino-language-server Version: 0.0.0-git Commit: Date: \27[0m\n07:14:21.817097 \27[97mLS: : Language server temp directory: /tmp/arduino-language-server1081938582\27[0m\n07:14:21.817099 \27[97mLS: : Language server build path: /tmp/arduino-language-server1081938582/build\27[0m\n07:14:21.817101 \27[97mLS: : Language server build sketch root: /tmp/arduino-language-server1081938582/build/sketch\27[0m\n07:14:21.817105 \27[97mLS: : Language server FULL build path: /tmp/arduino-language-server1081938582/fullbuild\27[0m\n07:14:21.818941 IN Elapsed: 1.775891ms\n07:14:21.819698 \27[92mIDE --> LS REQU initialize 1\27[0m\n"

My Go skills are way too rusty otherwise I would try to fix it my self.

I have not tested it yet but nvim-lspconfig seems to have a decent tutorial on using the Arduino language sever. You can refer https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#arduino_language_server On Sun, Apr 28, 2024, 10:39 PM Milan Divkovic @.> wrote: almost two years later... nothing new? — Reply to this email directly, view it on GitHub <#97 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP4726SVZUSC53HGO4LJVS3Y7UUMTAVCNFSM5LHPHLM2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBYGE2TKOBTHAYQ . You are receiving this because you commented.Message ID: @.>

metalinspired avatar Apr 29 '24 05:04 metalinspired