Phantom Errors: CLion 2024.1.3

I recently starting working on a project that use CMake with the JUCE framework.  However, when opening the project in the newest version of CLion (2024.1.3), I get thousands of phantom errors which do not appear for other members of the development team (who are using CLion 2023.2.2).  Most of the errors follow one of four general types: 

1. Out-of-line definition of '______' does not match any declaration in ‘_____’ 

2. Unknown type name '_____'; did you mean '_____'?

3. No matching constructor for initialization of '_____'

4. Cannot initialize object parameter of type ‘_____’ with an expression of type '_____'

This leads me to believe that the error stems from the CLion IDE failing to find one of the header files in our library during indexing. Indexing our build directory solved some of the problems related to a file generated by CMake, but not all the errors were fixed.  Our CMake file seems to be correctly implemented since building and running works fine.  How can I resolve this issue? Attached here is a link to the repo.

https://github.com/davispolito/bitKlavier2

1

Please sign in to leave a comment.