raspberrypi / pico-setup

92 stars 42 forks source link

C/C++ Extension #2

Closed aallan closed 3 years ago

aallan commented 3 years ago

@liamfraser Looks like MS has ported (finally!) the C/C++ extension to armhf, so we should probably auto-install this as well using the script?

JamesH65 commented 3 years ago

The C/C++ extension started working when MS released the official ARM port a few weeks back. I updated the instructions at the time to use MS instead of headmelted, not sure if I added anything about C/C++ though.

liamfraser commented 3 years ago

Do you know what extension you are referring to specifically? I already do code --install-extension ms-vscode.cpptools

aallan commented 3 years ago

Yeah, don't know. I'll try and figure it out. I get prompted to install a C/C++ extension when I load a project.

lurch commented 3 years ago

It looks like somehow the extensions that pico_setup.sh attempts to install, don't get installed properly? As I mentioned in Google Chat, I did run the setup script successfully, but I still got prompted to install the C/C++ extension (as Alasdair also is) when I opened a .c file in VSCode.

I just loaded up VSCode on my Pi400 this morning, and when I click on the "Extensions" button on the left, it listed "C/C++" as the only installed extension. So then I closed VSCode, ran the same code --install-extension marus25.cortex-debug command (in a Terminal) that the setup script tries to run, and when it'd finished installing I opened VSCode again and now it lists two installed extensions: C/C++ and Cortex-Debug.

Clearly more investigation needed... (which I'll try to do this afternoon, if @liamfraser doesn't beat me to it).

lurch commented 3 years ago

I've been trying to reproduce this (as part of investigating #1 ) and the pico_setup.sh script seems to always successfully install all three extensions; so I'm going to assume that this was a one-off glitch, as I can't now reproduce it.