Skip to content

Completion not working #97

Open
Open
@hendrikmennen

Description

@hendrikmennen

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

Activity

added
topic: codeRelated to content of the project itself
type: imperfectionPerceived defect in any part of project
on Jan 4, 2022
listout

listout commented on Feb 3, 2022

@listout

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

drank40

drank40 commented on Mar 13, 2022

@drank40

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

changed the title [-]Completion not working?[/-] [+]Completion not working[/+] on Mar 13, 2022
hendrikmennen

hendrikmennen commented on Sep 7, 2022

@hendrikmennen
Author

Any updates on this?

metalinspired

metalinspired commented on Apr 28, 2024

@metalinspired

almost two years later... nothing new?

listout

listout commented on Apr 28, 2024

@listout
metalinspired

metalinspired commented on Apr 29, 2024

@metalinspired

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

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @cmaglie@per1234@metalinspired@hendrikmennen@drank40

      Issue actions

        Completion not working · Issue #97 · arduino/arduino-language-server