Skip to content
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

Creating 'New Project From Example' fails with message 'Failed to setup example' #87

Closed
pointy56 opened this issue Sep 18, 2024 · 4 comments · Fixed by #93
Closed

Creating 'New Project From Example' fails with message 'Failed to setup example' #87

pointy56 opened this issue Sep 18, 2024 · 4 comments · Fixed by #93

Comments

@pointy56
Copy link

pointy56 commented Sep 18, 2024

Having installed the 'pico' extension (v0.16.2) into VSCode 1.93.1 the icons for both the Raspberry Pi Pico project and the MicroPico Device Controller can be seen in the left-hand toolbar.
I select 'New Project From Example' from the Pi Pico Quick Access menu, then 'blink' and Pico, leaving the other settings to default.
When I click 'Create' the extension issues the message 'Failed to setup example' - no other details seem to be available, but I am happy to provide any other information that you may require to investigate further.
I have tried on another system running the same version of VSCode and the new project is created successfully.

@will-v-pi
Copy link
Collaborator

Do you have a version of git already installed, and if so what version is it? By default the extension downloads its own version of Git on Windows, but if you have a pre-existing version it will use that, however it requires a minimum git version of 2.28

@pointy56
Copy link
Author

I've just checked - the system that I'm having the problem with does indeed have git pre-installed, a very old version (2.10.1) - I guess it's not causing problems for anything else I use otherwise I would have updated it.
I'm happy to leave this version in-place for the time being if you would like to test a fix that handles this problem better.

@will-v-pi
Copy link
Collaborator

This should be fixed with #93 - could you give that PR a go if you still have the old git on your system? No worries if not, I can test it myself too

You can download the .vsix file for that PR from https://github.com/raspberrypi/pico-vscode/actions/runs/11014326181?pr=93

@pointy56
Copy link
Author

Worked perfectly, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants