RP2040 VS Code Language Server Crashed

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ajwentzel
 
Posts: 2
Joined: Mon Mar 15, 2021 11:18 pm

RP2040 VS Code Language Server Crashed

Post by ajwentzel »

I recently purchased a RP2040 Feather and followed the guide (https://learn.adafruit.com/adafruit-fea ... -ide-setup) for flashing some code using the Arduino software. However, when I try to use VS Code, I get a bunch of messages about the C++ language server crashing on launch. What's odd is that it seems the code still successfully compiles. If I switch back to a different feather, e.g. the Feather M0 and restart VS Code, the crash doesn't happen. Does anyone have experience with using VS Code and the RP2040?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: RP2040 VS Code Language Server Crashed

Post by mikeysklar »

There are a couple of different github issues that seem to address VScode crash on startup with the RP2040. Make sure you are running v1.65.0-insider or newer.

https://github.com/microsoft/vscode/issues/142574

https://github.com/microsoft/vscode/issues/110186
(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Crash on Ubuntu 18.04.3 (#89370)
code crashes when workspace has multiple root directories (#89828)
Remote display X11 not working after update (#110119)

User avatar
ajwentzel
 
Posts: 2
Joined: Mon Mar 15, 2021 11:18 pm

Re: RP2040 VS Code Language Server Crashed

Post by ajwentzel »

Those all seem to deal with VS code itself crashing (they also don't mention the RP2040). This is just the 'language server'. I've attached a screenshot. Edit: I'm also running version 1.75.1
Screenshot 2023-02-23 105737.png
Screenshot 2023-02-23 105737.png (44.87 KiB) Viewed 386 times

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: RP2040 VS Code Language Server Crashed

Post by mikeysklar »

Looks like another re-install the plugin fixed it here:

# The language server crashed 5 times in the last 3 minutes. It will not be restarted. #6856
https://github.com/microsoft/vscode-cpp ... ssues/6856

This repo has a lot of open issues, but if it continues for you this would be a place to log your bug.

https://github.com/microsoft/vscode-cpptools/issues

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”