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

Plugin fails to generate new project on Ubuntu 24.04 #78

Closed pradeepa-s closed 2 months ago

pradeepa-s commented 2 months ago

Plugin version: v0.15.2

Description:

When trying to generate the project the toolchain download seems not working. I noticed this time to time, but it seems persistent now and I can't seem to create new projects at all.

This looks similar to https://github.com/raspberrypi/pico-vscode/issues/76 but, I don't get the failure message. It just tries to download the toolchain and somehow failing.

Steps to re-produce:

  1. Delete the .pico_sdk folder
  2. Open vscode and start the extension
  3. Create a new project
  4. The 'Downloading SDK and Toolchain' status message pops up
  5. Wait for 5 mins
  6. The 'Downloading SDK and Toolchain' status message wouldn't complete
  7. Examining the .pico_sdk shows three folders
    
    MS-7D91:~$ tree -L 2 .pico-sdk/
    .pico-sdk/
    ├── cmake
    │   └── pico-vscode.cmake
    ├── sdk
    │   └── 2.0.0
    └── toolchain
    └── 13_2_Rel1

6 directories, 1 file


8. Toolchain folder has no content

MS-7D91:~$ ls -al .pico-sdk/toolchain/13_2_Rel1/ total 8 drwxrwxr-x 2 pradeepa pradeepa 4096 Sep 10 08:15 . drwxrwxr-x 3 pradeepa pradeepa 4096 Sep 10 08:15 ..


9. Examined vscode console and found the following message.

[Extension Host] [raspberry-pi-pico] https://github.com/raspberrypi/pico-sdk.git 2.0.0 has been cloned and installed.


10. Restarted vscode and started to generate the project again. Same result, but the console says SDK 2.0.0 is alrady installed

[Extension Host] [raspberry-pi-pico] SDK 2.0.0 is already installed.

pradeepa-s commented 2 months ago

It just takes ~40 mins to download. That's the reason why I though it failes.