Open baylf2000 opened 11 months ago
c-cpp-properties
{
"configurations": [
{
"name": "ESP-IDF",
"cStandard": "c11",
"cppStandard": "c++17",
"includePath": [
"${default}",
"/home/jonsmirl/aosp/esp-matter"
],
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
@jonsmirl Thank you. That fixes it! Perhaps the maintainers could add that fix to the example projects?
There is VSCode command called "ESP-IDF: Add vscode configuration folder" but what I sent you will work better.
FWIW I ended up just adding "${config:idf.espMatterPath}/**",
as a line, resulting in the following config --
{
"configurations": [
{
"name": "ESP-IDF",
"compilerPath": "${config:idf.toolsPath}/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
"includePath": [
"${config:idf.espIdfPath}/components/**",
"${config:idf.espIdfPathWin}/components/**",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${config:idf.espMatterPath}/**",
"${workspaceFolder}/**"
],
"browse": {
"path": [
"${config:idf.espIdfPath}/components",
"${config:idf.espIdfPathWin}/components",
"${config:idf.espAdfPath}/components/**",
"${config:idf.espAdfPathWin}/components/**",
"${config:idf.espMatterPath}/**",
"${workspaceFolder}"
],
"limitSymbolsToIncludedHeaders": false
}
}
],
"version": 4
}
@baylf2000 can you please close the issue if it is resolved.
@sayondeep No this issue is not resolved. The maintainers need to fix the example projects. There are several possible solutions described above, but until the source code is corrected the issue will remain.
Intellisense is largely broken when using Matter examples in VSCode on Ubuntu.
It seems to be unable to recognise files or their contents from Matter or the current project. The project builds correctly though.
Environment
Intellisense errors from "Light" example project: