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

Project generator uses wrong examples version #97

Closed therman89 closed 1 month ago

therman89 commented 1 month ago

Hello, I found a bug, where the "New Project From Example" function pulls examples from the wrong version of the SDK, and instead uses the latest (2.0.0) version.

Steps to reproduce:

  1. Click "New Project From Example"
  2. Select the example (hello_uart)
  3. Select Pico SDK version: 1.5.1
  4. Generate project
  5. Run git log in ~/.pico-sdk/examples/.git

Result: commit 7fe60d6b4027771e45d97f207532c41b1d8c5418 (HEAD, tag: sdk-2.0.0) Author: graham sanderson Date: Thu Aug 8 06:20:00 2024 -0500

RP2350 and SDK 2.0.0 changes

Due to this bug, the example does not compile, because it uses code from the newest version of the SDK.

will-v-pi commented 1 month ago

Yes, the "New Project From Example" only supports the latest SDK version - @paulober could we update the webview to grey out other versions in the "Select Pico SDK version" dropdown unless you click on "Show Advanced Options" when creating a new project from examples?