Ant task synchronization
I use ant task for stamp and versioning my project within several files (java and non-java). The problem I face with that Idea does'nt recognize these changes correctly. Even if I synchronize the file after the ant execution it is not updated correctly. So my questions are:
1. Does Idea synchronize automatically after each ant task?
2. If 1. is not true, how to enable this?
3. If 1. is true, might it be a bug and worth to be reported?
Thanks
Thomas
PS: I use a linux environment with #IU-103.72
Please sign in to leave a comment.
Hi Thomas,
Do you have any symlinks in a full path to files being updated?
No, no symlink nearby or in the project nor in the root path.
Ok. Then please do what is described in this comment, and attach log here.
Please see the file attched. As soon as I modify the file with the ant task the fsnotifier is notifiying so. I tested with the file "version.spec". What I now detected is that Idea updates the file as soon as I go to an other application (lose the focus) and come back to the Idea window. The file is updated then correctly in the editor. But no other action does update it. I can synchronize, close, reopen the file without any changes.
I presume it is a bug then.
Attachment(s):
file_watcher.log.zip
Looks very similar to outdated file watcher binaries.
Could you please do "ls -l $IDEA_HOME/bin/fsnotifier*" ?
-rwxr-xr-x 1 th sbox 22529 2010-12-09 11:57 /opt/idea/bin/fsnotifier
Yes, it's definitely outdated.
How did you update IDEA last time? Didn't you miss bin/ directory content?
I hardly remember it was a patched update. But will download a full release once again.
Did download from the Website and now all is working. Thanks for your help Roman. I am quite sure did a patched update last time.
Best regards
Thomas
Ok, good.
We'll think about better validating files after update.
Thank you.