intellij 5 ipr, iml issue

Hi all,
I have an issue with my project IPR and IML files.
Currently using intellij 5 with JDK 5 and CVS, I have a multi module project with a war module as my deployment unit.
My issue is that most of the time updating my IPR/IML files from the CVS (changed by another member of my team, using the same project/IDE/java settings) results in a corruption of the above files, intelli detects the external changes, and tries to reload the project, yet most of the time it fails miserably (in my opinion, due to caching of these files and corrupting then on reopening of the project), a partial solution that I found was to cancel its reload request and "reload" manually (closing the intellij and starting it, thus preventing it to corrupt the files), BUT still this does not solve the issue completely!
If I try to circumvent the issue with intellij and update (even clean copy) the files externally and intellij is open, it still somehow manages to corrupt the project files.
It only works if I close the intellij and update the files externally (tortoise, WinCVS…).
Please help.

2 comments

alex wrote:

Hi all,
I have an issue with my project IPR and IML files.
Currently using intellij 5 with JDK 5 and CVS, I have a multi module project with a war module as my deployment unit.
My issue is that most of the time updating my IPR/IML files from the CVS (changed by another member of my team, using the same project/IDE/java settings) results in a corruption of the above files, intelli detects the external changes, and tries to reload the project, yet most of the time it fails miserably (in my opinion, due to caching of these files and corrupting then on reopening of the project), a partial solution that I found was to cancel its reload request and "reload" manually (closing the intellij and starting it, thus preventing it to corrupt the files), BUT still this does not solve the issue completely!
If I try to circumvent the issue with intellij and update (even clean copy) the files externally and intellij is open, it still somehow manages to corrupt the project files.
It only works if I close the intellij and update the files externally (tortoise, WinCVS?).
Please help.


In my experience, changing IDEA configuration files while IDEA is
running is a bad thing to do. This goes for .ipr and .iml files as well
as the different settings files used to configure IDEA itself. It's
safest to close IDEA when updating these files.

I can see that this becomes a problem if you only use the built-in CVS
client though. May I recommend an excellent standalone CVS client called
SmartCVS to you. It's written in Java and is available in a no-cost
"Foundation" version with basic features and a "Professional" version
that you pay for, that has more features. More info at
http://www.smartcvs.com/

--
Dennis Lundberg

0

TX,
Actually I'm using SmartCVS and tortoise as my tools (I like SVN better they have a Smart for it too).

We are currently in a faze of setting up our project, creating new modules, adding libraries, refactoring ..., so updating the project in terms of IML/IPR is often done, its a pain to shut the intellij each time, so I'm looking for a "solution" for this, this is probably what we are going to do, but if there is another way I would like to find it.

0

Please sign in to leave a comment.