raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
82 stars 11 forks source link

Reopening project sometimes requires "Import Project" #50

Open wiredopposite opened 3 weeks ago

wiredopposite commented 3 weeks ago

Sometimes opening an existing pico-vscode project requires importing it again with the extension, otherwise the configure and build buttons are greyed out. This also adds a bunch of unnecessary lines to your CMakeLists file and downloads the sdk and toolchain files over again.

will-v-pi commented 3 weeks ago

This can occur if you don't have a set(PICO_BOARD ....) line in your CMakeLists.txt - is that the case here?

Could you also add your CMakeLists.txt file to this issue so we can see what else might be causing the problem