Synchronizing files that are not open?
I think this is a bug that recently cropped up, but wanted to know if
other people have seen this.
I think that the synchronize files feature would auto-synchronize only
files that are currently being edited OR files that would affect the psi
structure that IDEA depends on (e.g. class/java files).
I have noticed that since build 816 (or so) my application's log files
(which are in a directory under one of the project content paths) keep
being flagged as changed files when I switch back to IDEA.
I think the requirements for synchronization check should be:
- Does the file affect psi structure (is it Java, JSP, etc)
- Is it open in an editor or referenced in another window
(e.g. search results)
Has anyone else seen this and does it seem like a bug to you?
Thoughts?
Thanks
Peter
Please sign in to leave a comment.
The synchronization is most probably performed in order to have an ability
to search "in non-java files". If you'd change file types (so log file would
not be catched as text one) or exclude the directory where log file lies
IDEA will not synchronize it.
--
Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
"Peter Mularien" <pmularien@dNeOpSlPoAyM.com> wrote in message
news:bbiaj8$fsv$1@is.intellij.net...
>
>
>
>
>
>
Maxim -
But why does IDEA need to synchronize the file if it's currently not in
use? Surely you are not keeping all of the files in my project in memory!
Peter
Maxim Shafirov wrote:
Not in memory, in LCVS.
An optimization that could be done is marking only the lcvs entry as dirty
and only synchronize when needed: a search is done, etc
This changes a lot of small fast syncs for a later big slow sync.
Perhaps I'll open a tracker request then.
Carlos Costa e Silva wrote:
>>But why does IDEA need to synchronize the file if it's currently not in
>>use? Surely you are not keeping all of the files in my project in memory!
You might want to also check/modify/vote the following request
http://www.intellij.net/tracker/idea/viewSCR?publicId=10624