-
Notifications
You must be signed in to change notification settings - Fork 17
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
had to run git submodule update --init in 2.1.0 SDK directory #127
Comments
The extension should check out the submodules automatically for 2.1.0, just like it does for 2.0.0 - did you see any errors saying the SDK download failed when you switched the SDK? To double check if this is intermittent or not, could you also try deleting the |
Sometimes the SDK download is missing submodules due to errors (eg #127) Fix this by checking for all submodules when checking for SDK, and downloading them if not present
I should have noted originally that this particular issue is on Windows 11 (x64). I removed the 2.1.0 directory and reloaded the project. It complained that python3 is not installed or in the PATH. However, it is present and is in my I note that Getting Started with Raspberry Pi section 3.1.1 says that no dependencies are needed for Raspberry Pi OS or Windows, so if python is required, the extension is arranging for it to be downloaded. After looking again, I see that there is a python directory under |
Is there a python executable present under |
I ran into this issue as well. FWIW, I don't have a ~/.pico-sdk/python/ directory at all, but I do have a working Python 3.12.7 installed on the system. |
Just to confirm, was your issue with the submodules not being present, or the error that python3 was not installed? If you already have python then the extension should use that, rather than installing it's own, hence there being no |
The issue was with the modules not being present. |
On my machine there is an installation of Python in |
I manually changed Therefore, as I noted previously, I wonder if the issue is that pathname it is using for python3.12 is a reparse point. |
It's possible that's the issue - also note that in #94 (released in 0.17.0) we changed the python handling to be machine-scoped, so instead of having If you were changing the setting in the project's |
I tried that, and the python locator set I think this is an issue that is specific to the pico extension, because otherwise python works fine. |
In which case, I'm afraid I'm unable to reproduce your issue. For me, when using the Microsoft Store python 3.12 (which I believe is what you're using based on the paths provided), and with the
the extension is working without any issues for me. |
Closing this as unable to reproduce the python issue, and the original git submodule issue has been fixed |
Sometimes the SDK download is missing submodules due to errors (eg raspberrypi#127) Fix this by checking for all submodules when checking for SDK, and downloading them if not present
I switched the SDK for an existing project from 2.0.0 to 2.1.0. The vscode extension downloaded the new SDK (and updated toolchain). However, when I attempted to reconfigure and rebuild the project, there were multiple complaints about missing files. It was necessary for me to cd to
~/.pico-sdk/sdk/2.1.0
and rungit submodule update --init
manually to resolve them. After that, everything configured and built successfully.The text was updated successfully, but these errors were encountered: