Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completion not working #97

Open
HendrikMennen opened this issue Jan 4, 2022 · 6 comments
Open

Completion not working #97

HendrikMennen opened this issue Jan 4, 2022 · 6 comments
Assignees
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@HendrikMennen
Copy link

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
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jan 4, 2022
@listout
Copy link

listout commented Feb 3, 2022

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

@drank40
Copy link

drank40 commented Mar 13, 2022

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

@HendrikMennen HendrikMennen changed the title Completion not working? Completion not working Mar 13, 2022
@HendrikMennen
Copy link
Author

Any updates on this?

@metalinspired
Copy link

almost two years later... nothing new?

@listout
Copy link

listout commented Apr 28, 2024 via email

@metalinspired
Copy link

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: @.>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

6 participants