sstaub
March 28, 2019, 9:30pm
1
I got some warnings?! What is going wrong?
Maybe the paths need updating - is that folder path valid? Try PlatformIO: Rebuild IntelliSense Index
via the Command Palette (Ctrl+Shift+P or View -> Command Palette).
sstaub
March 29, 2019, 7:03am
3
It doesn’t help because there is no include folder.
Hm… I’d be tempted to remove the invalid paths in c_cpp_properties.json
, but the more important question is why did invalid paths get added, or is something missing.
There’s nothing in the platformio.ini
file that is adding those paths?
sstaub
March 29, 2019, 10:29am
5
Removing the paths doesn’t help, because they come back on next index rebuild.
Maybe a problem with pro core development?
sstaub
March 29, 2019, 10:32am
6
There is also another path problem.
What is your platformio.ini
?
sstaub
March 29, 2019, 7:14pm
8
[env:mzeropro]
platform = atmelsam
board = mzeropro
framework = arduino
This is VSCode C++ extension issue, see
opened 07:01PM - 29 Mar 19 UTC
closed 10:23AM - 02 Apr 19 UTC
Language Service
external
Type: General
**Describe the bug**
- OS and Version: macOS
- VS Code Version:… 1.32.3
- C/C++ Extension Version: 0.22.1
- Other extensions you installed (and if the issue persists after disabling them):
- A clear and concise description of what the bug is.
**To Reproduce**
Original: https://community.platformio.org/t/include-warnings/7188
```json
{
"configurations": [
{
"name": "Mac",
"macFrameworkPath": [],
"includePath": ["..."],
"browse": {
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": "${workspaceRoot}/.vscode/.browse.c_cpp.db",
"path": [""]
},
"defines": [
"PLATFORMIO=40000",
"..."
],
"intelliSenseMode": "clang-x64",
"cStandard": "c99",
"cppStandard": "c++11",
"compilerPath": "/Users/ikravets/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-gcc -mlongcalls"
}
],
"version": 4
}
```
When a `compilerPath` option is used, extension treats it as a folder. As a result, warns about invalid PATH.
**Expected behavior**
I don't know what to say here. A path to "binary" is not a "directory" :)
**Screenshots**

sstaub
March 29, 2019, 7:16pm
10
Any idea of the include path warnings?
Could you try the latest version of PIO Core Dev? pio upgrade --dev
.
sstaub
March 29, 2019, 8:27pm
12
Ok this works for the include warning.
sstaub
March 30, 2019, 11:36am
13
With the last Core Dev, there are no more warnings
1 Like