Spring Facets configuration doesnt work for us in v10

Dear all,

we are using Intellij for same project since version 8. Spring facets and the validation of xml files worked great in 8 and 9. In version 10 though things became complicated. I tried with manually configuring facets and with auto-detection and sometimes it works and sometimes not but the settings are always lost after Intellij restart, I think at least. Its hard to describe since the behaviour seems to be random, the only thing that stays constant are the read lines in the xml files after some time
Once I got it working after setting it up manually and everything was green again. But it took me like 15 minutes and changes were lost after restart again (auto detection disabled). I really dont know what to do here.
What I also recognized is that .iml files are removed at startup and then they are added again, maybe it is related, is this kind of settings stored in the .iml files? That would explain the reset.
I just did restart and I see the red lines and also the message Spring facet is not configured for module ... which is very frustrating since I added the configuration 1 minute ago

Cheers
Rene

2 comments
Comment actions Permalink

I just found http://devnet.jetbrains.net/message/5194114#5194114 so facets are stored in iml... Interesting, so why does iml gets deleted on start? After closing Intellij .iml files are still there, so some process is deleting them? Why and how to stop this process of doing so? :)

Maybe it is also related to http://devnet.jetbrains.net/message/5266530#5266530 . But an answer is missing there.

0
Comment actions Permalink

I found a working solution for me, but it is not really fixing the root cause:
We have module with submodules, only iml of submodules are deleted. So I added facet configuration to parent module. After restart settings are still there.

I would prefer to not have the iml for submodules being deleted, so I leave the thread open.

Cheers
Rene

0

Please sign in to leave a comment.