IDEA 14.1.1 Ultimate keeps changing the .idea/misc.xml file when gradle projects are refreshed

已回答

Hi. Whenever I open idea, it changes the .idea/misc.xml file by adding this:

+  <component name="FrameworkDetectionExcludesConfiguration">
+    <file type="web" url="file://$PROJECT_DIR$" />
+  </component>

I then go 'Open module settings' -> Facets -> and delete 'web' from 'exclude from detection'. Then I do  a 'Refresh all Gradle projects' in the Gradle tab and I do git status, misc.xml changed again! I'm loosing years of my life over this.

What should I do about it? What triggers this strange behavior?

My project is a root project with 3 submodules.

2

Could you please submit this bug at http://youtrack.jetbrains.com/issues/IDEA ? Thank you.

0
Avatar
Permanently deleted user

Ok, I will try to reproduce in a small project and attach it as well.
In the meantime, we decided not to version the .idea and *.iml files, there were too many issues with various files and plugins putting files there. Importing a gradle project is so simple and has to be done only once that we decided it's not worth the gray hairs fighting against the files always changing.

0

We've been hit by exactly the same issue.  It's disappointing to see it still occurring when it was reported 9 years ago.

0

Github,

Sorry to hear the issue still persists.

Would you be able to share the affected Project for investigation and also elaborate on how the addition of the Web Facet / misc.xml file updates affects your workflow?

Web Facet is automatically added by IDEA, if it detects specific Web-oriented features of the Project.

 

EDIT: I've managed to reproduce the issue, it can be worked around by disabling the “Enable framework detection” option.

Please let me know if/how the default behavior (with the Exclusion present) affects your workflows.

0

请先登录再写评论。