9 comments
Comment actions Permalink

It is. So you should at least try it, and not remove dlls at once.

0
Comment actions Permalink

It is. So you should at least try it, and not remove
dlls at once.


Thanks.
I'm a believer, so that what i did, i didn't remove DLLs, so still get the same problems:
-Global synchronize action still does not work.
-Package/directory synchronize doesn't work.

Please your advice.
Thanks
Boaz

0
Comment actions Permalink

Well, figuring this out might be a long story, but first of all, could you please append the following lines to $IDEA_HOME/bin/log.xml:

]]>

This should turn vfs logging on. Then you should see if file watcher actually receives events from OS. If it does, then the problem is somewhere in VFS code, if it does not, then more investigation on your configuration is needed.

0
Comment actions Permalink

Thanks. This is good beginning.

0
Comment actions Permalink

Are these the events i'm looking for ?:
*2006-11-21 08:49:11,359 DEBUG - ij.vfs.local.win32.FileWatcher - i=0 type=4 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws
2006-11-21 08:49:11,359 DEBUG - ij.vfs.local.win32.FileWatcher - i=1 type=5 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws~
2006-11-21 08:49:11,375 DEBUG - ij.vfs.local.win32.FileWatcher - i=0 type=1 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws
2006-11-21 08:49:11,406 DEBUG - ij.vfs.local.win32.FileWatcher - i=0 type=3 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws
2006-11-21 08:49:11,468 DEBUG - ij.vfs.local.win32.FileWatcher - i=0 type=2 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws~*

Can you give me explain (or point me to a document) of the meanings of 'i=' and 'type='

Thanks

0
Comment actions Permalink

Yes, these are the events from file watcher. These logs are not documented, but basically every line says that .iws file was modified. Is V: your clear case dynamic view drive? Do you see similar lines when you externally change files in your project? (.iws is saved by IDEA itself)

0
Comment actions Permalink

Thanks.

Yes, for example:

*2006-11-21 11:08:49,281 DEBUG - ij.vfs.local.win32.FileWatcher - i=0
type=1 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws
2006-11-21 11:08:49,296 DEBUG - ij.vfs.local.win32.FileWatcher - i=0
type=3 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws
2006-11-21 11:08:49,406 DEBUG - ij.vfs.local.win32.FileWatcher - i=0
type=2 file=V:/Q/intellij/projects/MyProject/BoazPeony.iws~
2006-11-21 11:08:49,406 INFO - project.impl.ConfigurationFile - Tim
e to save V:\Q\intellij\projects\MyProject\BoazPeony.iws: 953*

Again, thanks, your support is GREAT.
Boaz

0
Comment actions Permalink

So to set it clearly: when you modify the files, so that the changes are not picked up by IDEA, there are similar lines from file watcher in console? Then are you sure you have "Sync on frame activation" option on?

0
Comment actions Permalink

So to set it clearly: when you modify the files, so
that the changes are not picked up by IDEA, there are
similar lines from file watcher in console? Then are
you sure you have "Sync on frame activation" option
on?


Hi Eugene

Sorry for the late response, It just that i want to be sure before answering me.

Lets first say that the problem indeed was fixed in 6.0.2 both in dynamic and snapshot view.

We always working with "Sync on frame activation" set to false.
What confused me was the difference in behaviour:

- If file is opened in editor and we and we change it externally then it is update immediately when returning to editor.
- If file is not opened in editor then after returning to editor and opening the file we don't show the change - only after pressing synchronize.

This is not problem to us, it just that it confused me.

I will consult 'Open API' forum how to collect the events from the file watcher and display to the user list of files that were changed externally.

Thanks
Boaz

0

Please sign in to leave a comment.