raspberrypi / pico-vscode

The official VS Code extension for Raspberry Pi Pico development. It includes several features to simplify project creation and deployment.
https://marketplace.visualstudio.com/items?itemName=raspberry-pi.raspberry-pi-pico
Mozilla Public License 2.0
131 stars 16 forks source link

On Windows, Configure CMake creates a compile_commands.json, that can not be parsed by #118

Closed gnilsson2 closed 2 weeks ago

gnilsson2 commented 2 weeks ago

In Output "C/C++ Configuration Warnings" I get: [11/4/2024, 11:12:54 AM] "c:\Users\gnils\Downloads\PicoW-usb2bt-audio-pro-0.6.0\PicoW-usb2bt-audio-pro-0.6.0/build/compile_commands.json" could not be parsed. 'includePath' from c_cpp_properties.json in folder 'PICOW-USB2BT-AUDIO-PRO-0.6.0' will be used instead.

(This results in incorrect "Go to Definition" etc.)

A workaround is to manually replace all '/' with '\\' in build\compile_commands.json

gnilsson2 commented 2 weeks ago

Typical, after submitting this issue, I can't reproduce it!

will-v-pi commented 2 weeks ago

You will occasionally get that warning when building a project for the first time (or after the build directory has been deleted), but it should go away after that file has actually been generated by the build. So it's not an issue with / vs \, it's just an occasional issue that can occur on all platforms, which is probably why you can't reproduce it.