File synchronization on frame activation - which files get synchronized and which don't?

Hi,

I was wondering - which files get synchronized and which don't when the IDEA frame is re-activated
(assuming the user will check the "Sync files on frame activation") - the project files, or the
whole virtual file system?

The reason I'm asking is because I want to know whether I should initiate a VirtualFile.refresh
myself in my plugin, or depend on the IDEA synchronization (the files I'm monitoring are not part of
the project's files, but are external).

Thanks in advance,
Arik.

4 comments
Comment actions Permalink

IDEA synchronizes files under content directories (recursively) plus directories
where .ipr/.iml files located (non-recursively) plus folders with files open
in editor (non-recursively)

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

BTW: Does it have to synchronize the build output folders?
Run "ant clean package" from outside Idea. Then switch back to Idea.
Idea pops up a progress dialog FOR EACH MODULE. There's a lot of
blinking going on, creating dialogs, disposing dialogs. On windows
I can sit and twiddle my thumbs for a couple of minutes.
On linux it's even worse.
I think there's a very old jira issue for this. It's one thing I almost
got used to (reading the register or the serverside in the mean time),
but was made aware of when a new team mate cursed Idea.
I tried to switch synchronization off, but after that Idea behaves
like stupid Eclipse: I have to save and synchronize every minute else
something weird happens when I work with other tools.

Maxim Shafirov (JetBrains) wrote:

IDEA synchronizes files under content directories (recursively) plus
directories where .ipr/.iml files located (non-recursively) plus folders
with files open in editor (non-recursively)

-------------------
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Did you exclude them in the project? I always set my 'build' (or 'target' if you use maven) as an
excluded folder and synchronization here is quite fast (for a project with about a 1000 classes,
takes less than two seconds)

Stephen Kelvin wrote:

BTW: Does it have to synchronize the build output folders?
Run "ant clean package" from outside Idea. Then switch back to Idea.
Idea pops up a progress dialog FOR EACH MODULE. There's a lot of
blinking going on, creating dialogs, disposing dialogs. On windows
I can sit and twiddle my thumbs for a couple of minutes.
On linux it's even worse.
I think there's a very old jira issue for this. It's one thing I almost
got used to (reading the register or the serverside in the mean time),
but was made aware of when a new team mate cursed Idea.
I tried to switch synchronization off, but after that Idea behaves
like stupid Eclipse: I have to save and synchronize every minute else
something weird happens when I work with other tools.

Maxim Shafirov (JetBrains) wrote:

>> IDEA synchronizes files under content directories (recursively) plus
>> directories where .ipr/.iml files located (non-recursively) plus
>> folders with files open in editor (non-recursively)
>>
>> -


>> Maxim Shafirov
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>
>>

0
Comment actions Permalink

Yes I do exclude build output "build/classes".
But as you say so, something else comes to my mind:
We copy some source files to "build/src" (to apply ant filter tokens).
Only that currently due to a bug in our build file generator ALL sources
are copied. No wonder that Idea is busy.
Guess I better excluded "build" rather than only "build/classes" - or maybe
better fix the bug in our build files.
Thanks a lot.

Arik Kfir wrote:

Did you exclude them in the project? I always set my 'build' (or
'target' if you use maven) as an excluded folder and synchronization
here is quite fast (for a project with about a 1000 classes, takes less
than two seconds)

0

Please sign in to leave a comment.