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

New Version 0.16.0 Breaks Project Creation, Import #82

Closed
gov-sprymon opened this issue Sep 12, 2024 · 4 comments
Closed

New Version 0.16.0 Breaks Project Creation, Import #82

gov-sprymon opened this issue Sep 12, 2024 · 4 comments

Comments

@gov-sprymon
Copy link

As of yesterday(9/11/2024), the New Project, Import Project, New Project From Example are broken.

The only error I see "Could not create new project: "

Linux 6.1.0-25-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.106-3 (2024-08-26) x86_64 GNU/Linux

@cdmuhlb
Copy link

cdmuhlb commented Sep 13, 2024

I also encountered this problem when following the 'getting started' guide to create a "blink" project with version 0.16.0. Going to "Developer: Show Logs... | Window", we see the error:

2024-09-12 22:33:43.952 [error] [Extension Host] [�[31mERROR�[0m] [raspberry-pi-pico - NewProjectPanel] Generator Process exited with code: 1
2024-09-12 22:33:43.955 [error] [Extension Host] [�[31mERROR�[0m] [raspberry-pi-pico - NewProjectPanel] Generator Process error: Command failed: "python3" "/home/user/.vscode/extensions/raspberry-pi.raspberry-pi-pico-0.16.0/scripts/pico_project.py" -board pico -exam -d 0 --project vscode --projectRoot "/home/user/Projects" --sdkVersion 2.0.0 --toolchainVersion 13_2_Rel1 --picotoolVersion 2.0.0 --openOCDVersion 0.12.0+dev --ninjaPath "/home/user/.pico-sdk/ninja/v1.12.1/ninja" --cmakePath "/home/user/.pico-sdk/cmake/v3.28.6/bin/cmake"  "blink"
  File "/home/user/.vscode/extensions/raspberry-pi.raspberry-pi-pico-0.16.0/scripts/pico_project.py", line 873
    '''
       ^
SyntaxError: f-string expression part cannot include a backslash

My Python version is 3.10.12.

This appears to be a regression introduced by PR #72 (two days before the release of 0.16.0). I have confirmed that I can create the project successfully after downgrading to version 0.15.2.

It looks like the debugServerArgs property of the "Pico Debug (C++ Debugger)" JSON object needs to be produced using a different string interpolation method, to avoid backslashes in format string brace substitution expressions.

@will-v-pi
Copy link
Collaborator

Thanks for raising this - should be fixed with that commit, and we'll do a bug-fix release shortly

@will-v-pi
Copy link
Collaborator

Release 0.16.1 is out now, so that should fix this

@cdmuhlb
Copy link

cdmuhlb commented Sep 13, 2024

I confirm that I can create new projects after upgrading to 0.16.1. Thank you for the quick fix!

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

No branches or pull requests

3 participants