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

Missing -version flag #196

Open
3 tasks done
danialnia02 opened this issue Oct 23, 2024 · 0 comments · May be fixed by #198
Open
3 tasks done

Missing -version flag #196

danialnia02 opened this issue Oct 23, 2024 · 0 comments · May be fixed by #198
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@danialnia02
Copy link

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
@danialnia02 danialnia02 added the type: imperfection Perceived defect in any part of project label Oct 23, 2024
@per1234 per1234 assigned per1234 and unassigned per1234 Oct 23, 2024
@per1234 per1234 changed the title Cant seem to get Arduino-Language-Server to work Missing -version flag Oct 23, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Oct 23, 2024
@per1234 per1234 linked a pull request Oct 31, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants