Suddenly we started to get this message: " We cannot determine if your project is compatible with Automatic Analysis" - “We cannot determine if your project is compatible with Automatic Analysis due to an issue on GitHub or a timeout.You can still force Automatic Analysis with the risk of your project being partially analyzed.”
Yes it is the same project, but suddenly happened after I added something in sonar.inclusions in web interface, then removed it again as it didn’t work. We have a .sonarcloud.properties instead.
ERROR: File source/firmware_version_app.h can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files
So it seems the file is falling into both patterns and throwing the error.
Looking again at the new failure, it seems now that a different file is getting indexed twice.
ERROR: File source/framework/RTOSsupport/guard.h can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files
In your case, it could make sense to move to CI-based analysis to not be blocked by autoscan failures that are not visible to you (they would be visible when doing CI-based analysis).
Here are the docs for setting up GitHub Actions
But regardless, here is the new error that was caught
ERROR: File source/framework/RTOSsupport/cmutex.cpp can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files