I have this project that used to work fine in vscode at some point
Now when I open it in vscode it throws lots of squigglies caused by intellisense not able to find symbols.
Interestingly navigation still works and it can find declaration just fine. But autocomplete doesn’t work and I have lots of linter errors (squigglies). Microsoft eh?
But platformio is also to blame because when I look into c_cpp_properties.json file it is missing some directories.
For instance “includePath” list has
C:/Users/user/.platformio/packages/framework-arduinoststm32-maple/STM32F1/system/libmaple/stm32f1/include
but doesn’t have
C:/Users/user/.platformio/packages/framework-arduinoststm32-maple/STM32F1/system/libmaple/stm32f1/include/series
and if I add it manually then after a restart or intellisense db reset and some cajoling intellisense finally recognizes GPIOB->regs->CRL
.
But if I run platformio rebuild index it removes the folder and intellisense is not happy again
Microsoft docs state that includePath
is NOT recursive while browse
IS which explains how declaration can be found and navigation works but autocomplete doesnt work and errors still pop up.
What can I do about this to fix it permanently? Is this a bug in platformio include index generator?