-
-
Notifications
You must be signed in to change notification settings - Fork 71
Language server not started #393
Comments
@peter76, how did you start debugging? Debugging should be disabled from the toolbar when you select the Nano board. It works with boards that support debugging: Zero, MKR1000. Did you start debugging manually from the Debug view? |
@kittaakos , I just checked, but I didn't start debuggging. When I now start Arduino-pro-ide I get an empty sketch, with no board selected and debugging greyed out in the toolbar, like in your screesnshot. Regards, Peter |
👍
OK. I need to set up a Linux VM and try it out. Thank you for your persistence on this bug and convincing me it's not a debugger issue. |
Ok, thanks, let me know if I can do anything on my side |
In case it is of any help I'm also running into this with 0.1.3 on Ubuntu 20.04, but it appears to be only in the cases where the sketches include libraries. Let me know if i can be of any help. |
That's strange... I just created a new user account and downloaded 0.1.3 and ran the ide in this new account, |
@kittaakos, I unpacked the ide with Fedoras standard unarchiver. If I run your command above I get:
So that seems to be ok. I also checked if the symbolic links are in place from the other bug you mention, here is the out put: lrwxrwxrwx. 1 peter peter 14 11 dec 20:44 libc++abi.so -> libc++abi.so.1 I have Visual Studio Code installed system wide, could there be a conflict with that? |
@kittaakos , I just redownloaded the ide and unpacked it through the command-line with |
OK, thanks for checking. We found a Linux machine that fails with the same issue; we're on it. |
OK, it seems there is an issue if you have
|
Does that mean that the ide should prefer it's bundled clang version instead of the system wide installed version? Regards, Peter |
I unpacked through drag and drop, the output of your command is the same as peter's with:
Unpacking through unzip still gives the same issue. Output of
|
I could reproduce the issue by installing clangd 11.x into my macOS (
Yes. The IDE is configured to use it's embedded Thank you all for the help 🙏 , I am trying to come up with a fix today and roll-out a new version. |
Good luck and thanks for looking into it! Will keep track of this. |
I have fixed the issue and re-published the artifacts, could you please pull one of the nightlies and try it again. If it still does not work, I will reopen the issue. Please note, the fix does not fix all the issues we have general with the Arduino language, but the underlying |
@kittaakos Works here! FYI I unzipped it with fedora's unarchiver, so that doesn't seem to give problems on Fedora. Thanks and keep up the good work and happy holidays! |
Same here, back to tinkering on the board, and thanks for the hard work! |
Describe the bug
When I start Arduino pro ide 0.1.3 and select nano as board I get the following error:
"Couldn't start client arduino language server"
This is some relevant output in the terminal when this happens:
root INFO Board config changed: root INFO Starting language server: arduino:avr:nano root ERROR [hosted-plugin: 6465] Promise rejection not handled in one second: Error: json: cannot unmarshal bool into Go struct field ServerCapabilities.capabilities.textDocumentSync of type lsp.SaveOptions , reason: Error: json: cannot unmarshal bool into Go struct field ServerCapabilities.capabilities.textDocumentSync of type lsp.SaveOptions root ERROR [hosted-plugin: 6465] With stack trace: Error: json: cannot unmarshal bool into Go struct field ServerCapabilities.capabilities.textDocumentSync of type lsp.SaveOptions at handleResponse (/home/peter/Apps/arduino-pro-ide_0.1.3_Linux_64bit/resources/app/plugins/vscode-arduino-language-server/extension/dist/bundle.js:4725:48) at processMessageQueue (/home/peter/Apps/arduino-pro-ide_0.1.3_Linux_64bit/resources/app/plugins/vscode-arduino-language-server/extension/dist/bundle.js:4552:17) at Immediate.<anonymous> (/home/peter/Apps/arduino-pro-ide_0.1.3_Linux_64bit/resources/app/plugins/vscode-arduino-language-server/extension/dist/bundle.js:4536:13) at processImmediate (internal/timers.js:439:21)
Let me know if you need more info.
Desktop (please complete the following information):
Regards, Peter
The text was updated successfully, but these errors were encountered: