You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode IntelliSense forcedInclude doesn't work #5449
IntelliSense complains that defines from within this file don't exist,
but a compile succeeds as expected.
Looking at the generated c_cpp_properties.json:
I have found this bug,
which made me think the issue is that the cpptools extension isn't able to parse the relative include,
but downgrading that one to before the regression did not resolve the issue.
This however lead me to try an absolute path in c_cpp_properties.json:
which made IntelliSense detect the defines correctly.
During PlatformIO's building IntelliSense index
all other include paths are generated with an absolute path.
Would it be possible to also apply this absolute path to forcedInclude?
This would fix this issue and will make IntelliSense behave correctly & the same as the compiler does.
Activity
ivankravets commentedon Sep 5, 2026
Thanks for the report! Please re-test with
pio upgrade --dev.Fixed an issue where relative header paths provided via ``-include`` …
pio 6.2.0
build(scripts): Bump the python group with 4 updates (#2)