0

I'm trying to use arduino-language-server in order in my neovim configuration.

I'm using NVIM v0.11.0-dev-164+g3a1515bfe (latest nightly version), and use nvim-lspconfig, and mason to set up my lsp.

The lsp seems to work, but it is never attached to a buffer.

In the doc, it is said that you have to have arduino-cli installed (which I have), from the log, it also says it needs to be configured with a file at ~/.arduino15/arduino-cli.yaml (which I have). And in order for the LSP to work on a project, the project root must have a sketch.yaml file (which I have too).

Any idea why the lsp isn't attaching to the buffer? did I miss something?

Files
Files organization for sample project

sketch.yaml file

default_fqbn: arduino:avr:uno
default_port: /dev/cu.usbmodem1101

:LspInfo (see arduino_language_server not attached to buffer)
LspInfo command output

4
  • Could you tell us what is the current working directory (:pwd)? What is the result after changing the working directory to the folder containing the sketch.yaml (:cd %:h)? Commented Jun 6 at 18:18
  • 1
    Yep, current wd: /private/tmp/test, changing the wd does not change anything
    – Curs3W4ll
    Commented Jun 6 at 19:32
  • Did you find a solution for this? Having the same issue.
    – Matt Tew
    Commented Jul 5 at 10:02
  • @MattTew Nop, I will post here if I find anything
    – Curs3W4ll
    Commented Jul 6 at 1:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.