-
Notifications
You must be signed in to change notification settings - Fork 41
OpenOCD not starting since Python Platformio process spawn fails #128
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
Comments
Thx a lot for this finding. Will investigate how to implement the activating of the pio python environment without doing harm elsewhere ;-) |
Honestly currently i have no idea to fix this nice without (ugly) side effects. The Python process |
not a big issue as there is a workaround I'm willing to try a few things like Python Environments on VSCode how would I install pioarduino from the command line? |
We both use a Apple Silicon Mac so this should work
|
will report |
semi-related: it seems the MacOS Python version must be the 3.11 Framework version (whose install package is not online anymore on python.org) I tried the 3.13 Framework and headed straight to the pits |
with the |
Using python v3.13 with Mac (and in CI runs) works without issues. |
do you mean v3.13 installed as default Python (Framework)? this is after which I got stuck and afaict, the pioarduino plugin then installs its own version anyway? |
Can't reproduce. Works when system uses 3.13 and/ or Platformio python env is 3.13 |
no, that was 3.11 I'll dump 3.11 and switch to 3.13m long overdue anyway |
It is a strange issue. This simple test sketch does not show the error. Debugger starts correctly. |
I tried your repo first, it initially did start the debugger it did not stop at
I also noticed if you change the VSCode profile the spawn error can be made to reappear I had some success by wiping the causal chain is still unclear to me |
I think the issue is caused by not activating the Python venv. It looks this works most of the time. TLDR The Python venv needs to be activated to use the Debugger. |
Platform: MacOS M1, Vscode
Arduino 3.2 rc2
had the following situation several times, did not see a clear pattern why (it's not Arduino versions):
code .
It turns out that if you activate the pio python environment before starting Vscode with
code .
, then debugging works fineNB this has no effect on other aspects of the build - all working fine despite NOT activating the pio Python environment
now starting a debug session works fine, even with latest 3.2rc2
TLDR; activate the platformio Python environment before starting VSCode
Michael
The text was updated successfully, but these errors were encountered: