We are working on framework support plugin (CUBA).
Sporadically our team and end users encountering the following issue. Module source root of the Gradle (CUBA) project is being additionally marked as resources root.
Our plugin is working with project classes and there are no classes in such broken modules. So it's functionality becomes unavailable.
Here is the content element from system/external_build_system\<project>.<module>.main.xml
<sourceFolder url="file://$MODULE_DIR$/../../../../modules/web/src" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/../../../../modules/web/src" type="java-resource" />
After removing this resource folders everything is fine, even after reimporting.
Unfortunately there are no known steps to reproduce the issue. But it happens on different projects.
We don't even sure that it is our plugin causing the issue. There is no functionality in our plugin that implicitly manages sources and resources roots.
IDEA Community 2019.1.3
Are there any ideas what can cause such behavior?