0

I am using the Raspberry Pi Pico Extension in VS Code, running on a Pi4. I am playing with the examples provided in the RaspberryPi/pico-examples repository on GitHub... for example the hello_uart example.

If I add a file to the workspace folder and name it blahblah.c, I immediately get a message saying:

"blahblah.c" not found in "${workspaceFolder}/build/compile_commands.json". 'includePath' from c_cpp_properties.json in folder 'hello_uart' will be used for this file instead.

The way I have found to get rid of this error is to add a blahblah.h file, #include it in the hello_uart.c file, then close and re-open the VS Code window.

I assume there is some more 'regular' way to tell VS Code that I am adding a source file, but I have not been able to find out how. References to appropriate documentation will be appreciated.

2
  • When searching on Github, I do see several examples.json files, but I do not see an "hello_uart example". Can you clear that up in your question? Commented Dec 29, 2024 at 16:00
  • The url to which one is directed by the reference in my question, 'RaspberryPi/pico-examples', is 'raspberrypi/pico-vscode' This is incorrect. It should refer to 'github.com/raspberrypi/pico-examples' Commented Jan 24 at 18:18

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.