-
-
Notifications
You must be signed in to change notification settings - Fork 17
Nothing happens after I run this command ./arduino-language-server -cli-config <path-to-cli-config> #84
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
Comments
Commit 08181a1 Issue: Input:
|
I have the same issue. I left it for as long as 4hrs and still no response. |
@per1234 is there any workaround to this? |
It's normal that you don't see any output because the language server is waiting for the The Arduino language server is an implementation of the LSP (Language Server Protocol) specification: https://microsoft.github.io/language-server-protocol/specifications/specification-current/. The purpose of this program is to provide language-related functionality to the IDEs so, in general, it's the IDE that talks to the language server via stdin/stdout using the slightly modified JSONRPC protocol defined in the LSP specification. Hope this helps, we should probably explain this better in the README, so I'll keep this issue open until then. |
Is there any guide on how to make the arduino-language-server to work on nvim lsp? It seems that cli-config has to be included/declared somehow. How does one go about this? |
Nope, sorry, we are developing mainly for the Arduino IDE, I've no idea how to configure nvim... Anyway, if you want to give it a try yourself, you need to put together three pieces of the puzzle:
The Arduino language server uses clangd under the hood, that's the reason why it is required.
On the Arduino IDE the command line we use to start the language server is something like:
you must configure nvim to do something similar when starting the language server. If everything goes right you should be able to edit .ino files and ask for completions, get errors/warnings in real time, etc. etc. BTW keep in mind that the language server is not 100% accurate, it's really tricky, and we are getting a lot of bug reports. If you want to see some logging you can add the flags:
this will make the language server output a lot of logging data in the specified folder. |
Sorry for my late response I already fixed this. So it seems that we do not need to run this on the terminal
|
Bug Report
Nothings happens when I set the path to ArduinoCLI config
Current behavior
I didn't get any response after I run this command
./arduino-language-server -cli-config $HOME/.arduino15/arduino-cli.yaml
so I just always hit ^C then the terminal always says this:
Expected behavior
I don't really know what must happen after I run
./arduino-language-server -cli-config <path-to-cli-config>
because there is no example on the documentationEnvironment
arduino-cli version
):arduino-cli alpha Version: 0.19.0 Commit: 56419ecd Date: 2021-09-02T14:47:35ZThe text was updated successfully, but these errors were encountered: