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
132 stars 16 forks source link

Flash task broken #110

Closed Slion closed 1 month ago

Slion commented 1 month ago

Trying to use the Flash task did not work for me.

The following resolved to a non-existing ELF file:

\"${command:raspberry-pi-pico.launchTargetPath}\"

I had to use that instead:

{${command:cmake.launchTargetPath}}

I'm guessing the Flash task as it is only works for projects with a single binary output and possibly matching the project name. I have no idea really, just taking a guess.

will-v-pi commented 1 month ago

You need to use the CMake Tools integration for more complex projects - see the README.

Slion commented 1 month ago

That did it. I could reverse my changes and it worked. Any reason why this is not the default?

will-v-pi commented 1 month ago

Yes, because the CMake Tools extension requires the user to understand all the target selection, and pick the right Kit when that pops up. For first time users it’s simpler to just use this extension, but we’ve added the CMake Tools integration into this extension to add support for more complex projects (multiple executables etc).