Type: LanguageService
Describe the bug
- OS and Version: Linux mint 19.01
- VS Code Version: 1.32.3
- C/C++ Extension Version:0.21
- Other extension: arduino 0.2.25
I can't get the C_Cpp.default.IncludePath get to work. please see details below.
To Reproduce
- i have followed the instruction in https://github.com/Microsoft/vscode-cpptools/blob/master/Documentation/LanguageServer/Customizing%20Default%20Settings.md
- my
settings.json is
{ "C_Cpp.default.includePath": [
"${env.HOME}/.arduino"
]
}
my c_cpp_properties.json is:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/opt/arduino/arduino-1.8.8/tools/**",
"/opt/arduino/arduino-1.8.8/hardware/arduino/avr/**",
"${default}"
],
"forcedInclude": [
"/opt/arduino/arduino-1.8.8/hardware/arduino/avr/cores/arduino/Arduino.h"
],
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17"
}
],
"version": 4
}
mostly auto generated except ${default}
- i write in
main.ino which use C++ language as follows:
and got a problem Include file not found in browse.path.
- BUT, when i move the
"${env.HOME}/.arduino" to c_cpp_properties.json inside configurations->includePath array, the problem disappears.
Expected behavior
I expect something like global configuration or default configuration in settings.json so i don't have to re-write configuration each new project to c_cpp_properties.json. and my expectation is the same as issue #368 (comment)
Screenshots
this is the current problem:

this is the behavior after i edit the c_cpp_properties.json:

Additional context
-none
Type: LanguageService
Describe the bug
I can't get the
C_Cpp.default.IncludePathget to work. please see details below.To Reproduce
settings.jsonis{ "C_Cpp.default.includePath": [ "${env.HOME}/.arduino" ] }my
c_cpp_properties.jsonis:{ "configurations": [ { "name": "Linux", "includePath": [ "/opt/arduino/arduino-1.8.8/tools/**", "/opt/arduino/arduino-1.8.8/hardware/arduino/avr/**", "${default}" ], "forcedInclude": [ "/opt/arduino/arduino-1.8.8/hardware/arduino/avr/cores/arduino/Arduino.h" ], "intelliSenseMode": "gcc-x64", "compilerPath": "/usr/bin/gcc", "cStandard": "c11", "cppStandard": "c++17" } ], "version": 4 }mostly auto generated except
${default}main.inowhich use C++ language as follows:and got a problem
Include file not found in browse.path."${env.HOME}/.arduino"toc_cpp_properties.jsoninsideconfigurations->includePatharray, the problem disappears.Expected behavior
I expect something like global configuration or default configuration in
settings.jsonso i don't have to re-write configuration each new project toc_cpp_properties.json. and my expectation is the same as issue #368 (comment)Screenshots
this is the current problem:

this is the behavior after i edit the

c_cpp_properties.json:Additional context
-none