including new path for IntelliSense #7854
Unanswered
Benedito821
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Is this an error that you get when compiling or is it with IntelliSense? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I am trying to compile a project but I get the error that one file was not found. I added the include path in .json file but the error persists. When I run the C/C++: Log Diagnostics command I see that the path is not being added.
Here is the .json file:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/home/.../.../OTA_update_STM32_using_ESP32/components/stm_flash/include"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
Here is a part of the diagnostic output:
Browse Paths from compile_commands.json, from workspace folder: /home/.../.../OTA_update_STM32_using_ESP32/file_serving_stm
/home/.../.../OTA_update_STM32_using_ESP32/file_serving_stm/build
/home/.../.../OTA_update_STM32_using_ESP32/file_serving_stm/build/config
/home/.../.../OTA_update_STM32_using_ESP32/file_serving_stm/main
there is no /home/.../.../OTA_update_STM32_using_ESP32/components/stm_flash/include here
any tips?
Beta Was this translation helpful? Give feedback.
All reactions