I'm trying to learn ESP32 using ESP-IDF and VSCode.
After installing ESP-IDF extension, I installed ESP-IDF 5.1.1. No errors happened.
Then I created new project using template, and after project was created there is a lot of strange problem and errors happen, so I check C/CPP extension settings. That's when I see most of the include paths (which is created inside c_cpp_properties.json automatically by ESP-IDF) were invalid.
The paths were strange because it included my workspace location in the path.
Is this ESP-IDF issue or C/CPP extension issue? What can I do to fix this?
Error with include path in c_cpp_properties.json
-
- Posts: 3
- Joined: Wed Apr 13, 2022 5:57 am
-
- Posts: 18
- Joined: Thu Mar 09, 2023 8:30 am
Re: Error with include path in c_cpp_properties.json
I'm not really sure why might cause this. Can you run "Doctor Command" from Command Palette and paste here the output you get?
-
- Posts: 3
- Joined: Wed Apr 13, 2022 5:57 am
Re: Error with include path in c_cpp_properties.json
Thank you for your response. I fix this by build the project first, so cpp plugin will add ${workspaceFolder}/build/compile_commands.json" to the cpp settings. It fixs a lot of cpp Intellisense problems.ESP_radurentea wrote: ↑Mon Oct 16, 2023 2:14 pmI'm not really sure why might cause this. Can you run "Doctor Command" from Command Palette and paste here the output you get?
Also I add Idf.toolspathWins to my global settings, and change Idf.toolspath to Idf.toolspathWins in cpp property file.
It seems env variable Idf.toolspath doesn't play nice with Windows, at least we can change that easily.
Who is online
Users browsing this forum: No registered users and 28 guests