-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import Project #63
Comments
Hi, |
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. visual studio 1.19.2 |
I have same problem. Will not import this project: https://github.com/ThorstenBr/A2DVI-Firmware. Only examples work. Version: 1.92.2 (system setup) |
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 |
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 ( |
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! |
What is the recommended way of importing a project, and are there any rules about what sort of projects can be imported? I have tried to import several projects, and often see the same failure: after executing the
Indeed, if you look, there is no This particular example uses the repository I assume that this particular example was built using the older SDK, but if that's the case what is the recommended way of importing? Setting the SDK to 1.5.1 or 1.5.0 on the import settings panel doesn't make any difference. What about the |
If a project has multiple executables, or the project name is defined as a variable, then you'll need to enable the CMake Tools integration when importing as detailed in the README - this should work from the latest version or the extension published today. Ideally it should be possible to import any pico project, so if you come across a project where importing doesn't work with the latest debug development version of the extension (the latest .vsix can be downloaded from the Actions tab) then let us know and we'll see if we can make it work. Always test with the debug development verison, and provide the logs from the developer console, as that will allow us to see what's going wrong.
This file is only created if This warning just relates to Intellisense, so will not impact project compilation at all, and the includePath used instead will work perfectly fine in most cases so the warning can be ignored.
If that example is for the Pico 2 then it'll be using the 2.0.0 SDK - that is the only SDK that support RP2350. I've just tested importing that project with the new extension (0.17.0) and it works fine with the CMake Tools integration enabled, so I'd recommend giving the new version of the extension a try.
That file will be overwritten with the one for the chosen SDK when importing, but it doesn't actually matter - the only bit in that file that's ever changed is the fetching from Git, which this extension never uses, so an older version of that file should not cause any problems. |
Thanks for the tips. I updated to the latest pico extension release, and enabled the CMake Tools integration during import. I did get it building eventually, though I had to manually fetch some git submodules. I encountered various issues along the way, which I solved in the time-honoured manner of just pressing knobs until something different happened. I then deleted everything and stated from scratch ..
Thanks again! |
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
The text was updated successfully, but these errors were encountered: