Skip to content

arduino-language-server exited with status 2: how to debug? #341

@ubaldot

Description

@ubaldot

I have installed this LSP:

https://github.com/arduino/arduino-language-server

and I tested it from command line with:

./arduino-language-server -cli-config /Users/ubaldot/Library/Arduino15/arduino-cli.yaml -cli /opt/homebrew/bin/arduino-cli -fqbn arduino:avr:uno

and the LSP appear to work.
However, when I try to use it in Vim I got a arduino-language-server exited with status 2 and I don't know how to debug it.
This is what I how I registered it:

    {
        name: 'arduino-language-server',
        filetype: ['arduino'],
        path: $HOME .. '/Documents/arduino-language-server/arduino-language-server',
        args: ['-clangd /usr/bin/clangd',
                '-cli-config /Users/ubaldot/Library/Arduino15/arduino-cli.yaml',
                '-cli /opt/homebrew/bin/arduino-cli',
                '-fqbn arduino:avr:uno']
    }

ft 'arduino' is defined through this plugin that I have installed: https://github.com/stevearc/vim-arduino.
:LspServer show status say that the LSP is running.

Any hints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions