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

Import Project #63

Open Octopus1633 opened 2 weeks ago

Octopus1633 commented 2 weeks ago

Hello,

What are the requirements of pico-vscode for imported projects? I can successfully import pico-examples and compile, but when I import my own project, I cannot import it successfully and there is no prompt.

I noticed that there is such a prompt on the import project interface: Basic Settings Warning: Project Import Wizard may not work for all projects, and will often require manual correction after the import

paulober commented 2 weeks ago

Hi, do you have any output in the "Output > Extension Host" panel? and do you have a small example project on GitHub that silently fails when importing?

jancumps commented 2 weeks ago

I have similar experience: New Project From Example works end-to-end.

New Project and Import Project fail silently, after flashing a brief Activating Extensions... notification on the bottom bar. "Output > Extension Host" is empty. No message logged by the extension.

visual studio 1.19.2 plugin raspberry-pi.raspberry-pi-pico [0.15.2] - 2024-08-23

dhgoss commented 1 week ago

I have same problem. Will not import this project: https://github.com/ThorstenBr/A2DVI-Firmware. Only examples work. Version: 1.92.2 (system setup) Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631

will-v-pi commented 1 week ago

I have same problem. Will not import this project: https://github.com/ThorstenBr/A2DVI-Firmware

I don't see a CMakeLists.txt file in the root of that repository - this extension only works with CMake projects, so requires a CMakeLists.txt file in the root of the project directory

paulober commented 1 week ago

I have similar experience: New Project From Example works end-to-end.

New Project and Import Project fail silently, after flashing a brief Activating Extensions... notification on the bottom bar. "Output > Extension Host" is empty. No message logged by the extension.

Can you try the latest debug build (so the vsix file prefixed with debug-) and see if you get any output in the developer console (Help > Toggle Developer Tools) when opening a new vscode window with no open folder and then opening our sidebar panel or just running the new project command via the command palette Ctrl+Shift+P > Raspberry Pi Pico > New Project ?

Octopus1633 commented 1 week ago

Hi, do you have any output in the "Output > Extension Host" panel? and do you have a small example project on GitHub that silently fails when importing?

Thanks for your reply. I solved this problem later. It was because my CMakeLists.txt file contained Chinese comments (it was indeed comments). I changed them to English comments or deleted them and it was successfully imported!