Closed GammaAJ closed 2 months ago
Turns out it's because of the -fqbn
argument. In the above code I used arduino:mbed_nano
from arduino-cli, but arduino-language-server doesn't recognize it. I changed the value to arduino:avr:nano
, and also installed the arduino ide (it initialized a couple of things, don't know if that helped) and changed the order of arguments (put - clangd
before -cli
, don't know if that helped either), and the problem is gone. Sorry for any inconvenience caused by this issue. I'm closing it now.
Describe the problem
I'm suffering from this weird problem that I can't find any relevant information on the internet. It looks like the issue in #152, but the corresponding solution does not work. When I open an Arduino project, I get this information:
Client 5 quit with exit code 2 and signal 0
I don't know what exit code 2 means and I can't find any piece of information about exit code of lsp's. The log is as below:The project structure is as below:
The .ino file has the same name as the root directory, and the lsp has no problem detecting the root directory.
My lsp config is as below:
Version of arduino-cli:
clangd version:
clang version:
arduino-language-server version:
0.7.6
OS version:macOS Ventura 13.6.6
Any clue on how and why this had happened will be highly appreciated.To reproduce
Use the configuration above and open an Arduino project properly generated by the arduino-cli.
Expected behavior
Client 5 quit with exit code 2 and signal 0
Arduino Language Server version
0.7.6
Arduino CLI version
0.35.3
Operating system
macOS
Operating system version
13.6.6
Additional context
No response
Issue checklist