Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Missing -version flag #196

Open
Open
Labels
topic: codeRelated to content of the project itself type: imperfectionPerceived defect in any part of project
@danialnia02

Description

Describe the problem

I am trying to set up my LSP using lsp-config, I downloaded the LSP via mason. On opening up a arduino file, running the LspInfo command, it shows this error

 version: `Usage of C:\Users\dania\AppData\Local\nvim-data\mason\packages\arduino-language...` (Failed to get version) Tried:
 `C:\Users\dania\AppData\Local\nvim-data\mason\bin\arduino-language-server.CMD --version`
 `C:\Users\dania\AppData\Local\nvim-data\mason\bin\arduino-language-server.CMD -v`
 `C:\Users\dania\AppData\Local\nvim-data\mason\bin\arduino-language-server.CMD version`
 `C:\Users\dania\AppData\Local\nvim-data\mason\bin\arduino-language-server.CMD --help`
 `C:\Users\dania\AppData\Local\nvim-data\mason\bin\arduino-language-server.CMD -h`

While running any of the commands locally on my system, it says that the -version flag is not defined.

I tried running -version against any other LSP that I have such as clangd, marksman and python-lsp-server and all of them returns a version.

I think this is the reason I cant get the Arduino LSP to work.

Is there anyway to suppress it to get or the LSP to show a version?

To reproduce

this is my lsp config.

lspconfig.arduino_language_server.setup {
 cmd = {
 "arduino-language-server",
 "-cli-config", "C:/Users/dania/.arduinoIDE/arduino-cli.yaml",
 "-fqbn", TinyCircuits:samd:tinyscreen",
 "-cli", C:/Users/dania/AppData/Local/arduino-cli_1.0.4/arduino-cli",
 "-clangd", clangd",
 },
}

Expected behavior

I expect the LSP to work as per normal.

Arduino Language Server version

0.7.6

Arduino CLI version

1.0.4

Operating system

Windows

Operating system version

Windows 11

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itself type: 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

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /