this is what helped for my projects:
1) right-click on the project and use Tools > Fixup Parsers

2) checking the Paths and Symbols for the project and removing any references to the IDE or previous IDE installation:

3) Checking that there is an 'MCU GCC Built-In Compiler parser' present pointing to the Include folders in the IDE:

4) Doing a Index rebuild on the project:

I hope this helps,
Erich