raspberrypi / pico-project-generator

Tool to automatically generate a Pico C SDK Project
BSD 3-Clause "New" or "Revised" License
289 stars 74 forks source link

Missing quotes #65

Closed soonuse closed 1 year ago

soonuse commented 1 year ago

In pico_project.py, line 1169 f' "compilerPath": {compilerPath},\n' compilerPath without quotes makes VSCode error: Failed to parse ".vscode/c_cpp_properties.json": Unexpected token /

Adding quotes will fix the error, i.e. f' "compilerPath": \"{compilerPath}\",\n'

JamesH65 commented 1 year ago

Oops, bad testing on my part. Will fix Monday, or you can provide a PR that I will merge Monday.

soonuse commented 1 year ago

Thank you for fixing it :D

soonuse commented 1 year ago

Oops, typo in my comment. There is no need to add backslashes in Python. (\" --> ")

JamesH65 commented 1 year ago

Pushed a fix to master.