Hello,
Intellisense is broken if using wildcard configurations in extra_config. Tryed already to rebuild Intellisense. Only one node.ini (see project structure) is processed, that from exec_node. If I put node.ini content to platformio.ini after rebuilding Intellisense, everything magically works.
add_inc_src.py loads additional src and includes with CPPPATH and SRC_FILTER
Content of add_inc_src.py:
Import("env")
from os import path
PIOENV = env.subst("$PIOENV")
PROJECT_SRC_DIR = env.subst("$PROJECT_SRC_DIR")
#add include path
env.Append(
CPPPATH=[path.join(PROJECT_SRC_DIR, PIOENV, "inc")]
)
#add src path
env.Append(
SRC_FILTER=["+<"+ PIOENV +">"]
)
Relevant part of the c_cpp_properties.json is:
{
“configurations”: [
{
“name”: “PlatformIO”,
“includePath”: [
“proj/include”,
“proj/src”,
“proj/src/exec_node/inc”,
…
}
Upgraded to dev. Showing still the same version 5.2.1. Nothing changed. Tried with inc folder and without, also with content that is referenced in main.cpp. Still no change in c_cpp_properties.json. It shows only exec_node/inc being added, but not brain_node/inc. Everything compiles.