How to disable "File Synchronization?"

I am using Idea 7.0.3 and I can't disable file synchronization. I have unchecked the "Synchronize files on frame activation" option in General settings page, but it still does not work. I see files being updated when I make changes to them outside the IDE.

The reason I want it so desperately is because I don't want IDEA to parse my build output files which happens through maven, as it consumes a lot of memory and cpu time.

Your help is appreciated,

Thanks,
Sahoo

6 comments
Comment actions Permalink

did you try setting your build output directory as "excluded" in idea ? it should do the trick

0
Comment actions Permalink

Hello Sahoo,

I am using Idea 7.0.3 and I can't disable file synchronization. I have
unchecked the "Synchronize files on frame activation" option in
General settings page, but it still does not work. I see files being
updated when I make changes to them outside the IDE.


You cannot disable file synchronization altogether because if you do so you
wouldn't see any changes to file content in IDEA at all.

The reason I want it so desperately is because I don't want IDEA to
parse my build output files which happens through maven, as it
consumes a lot of memory and cpu time.


Go to Settings | Project Settings | Modules | ]]> | Sources and
mark the directory containing your build output files as excluded.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Sahoo,

I am using Idea 7.0.3 and I can't disable file synchronization. I have
unchecked the "Synchronize files on frame activation" option in
General settings page, but it still does not work. I see files being
updated when I make changes to them outside the IDE.


You cannot disable file synchronization altogether because if you do so you
wouldn't see any changes to file content in IDEA at all.


Then why is that option present?
Secondly, can you explain what you meant by I would not see any changes to file content in IDEA at all. That's what I want. I want to control when I want to see external changes, and I am hoping that I can force a manual synchronization by choosing the appropriate file or directory.

The reason I want it so desperately is because I don't want IDEA to
parse my build output files which happens through maven, as it
consumes a lot of memory and cpu time.


Go to Settings | Project Settings | Modules | <your module> | Sources and
mark the directory containing your build output files as excluded.

Please see my earlier reply; it is not a practical solution for me for two reasons:
1. I have way too many modules and it is very painful to exclude 70 directories scattered in file system using the above method.

2. I have to maintain the list everytime a new build directory is added or removed.

I have set target, which is the default build output dir name in maven, as the directory to exclude in "general" settings panel. Would that be sufficient?

Thanks,
Sahoo

0
Comment actions Permalink

Please see my earlier reply; it is not a practical solution for me for two reasons:
1. I have way too many modules and it is very painful to exclude 70 directories scattered in file system using the above method.

2. I have to maintain the list everytime a new build directory is added or removed.


I've often thought it would be nice if in the Project Template (File | Project Template Settings) if you could list certain directories (for example the commonly used "build" directory) to always be excluded. That way when ever you create a new module, those directories are automatically excluded when the module is created. I just did a quick search to see if there were any JIRA requests for such a feature. I didn't see one. If you want to create a JIRA for such, I'd vote for it.

1
Comment actions Permalink

Hello Sahoo,

>>

>> Hello Sahoo,
>>> I am using Idea 7.0.3 and I can't disable file synchronization. I
>>> have unchecked the "Synchronize files on frame activation" option in
>>> General settings page, but it still does not work. I see files being
>>> updated when I make changes to them outside the IDE.
>>>
>> You cannot disable file synchronization altogether because if you do
>> so you wouldn't see any changes to file content in IDEA at all.
>>

Then why is that option present?


This option controls a specific type of synchronization performed at a specific
time.

I have set target, which is the default build output dir name in
maven, as the directory to exclude in "general" settings panel. Would
that be sufficient?


Yes.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Sahoo,

>>


>> Hello Sahoo,
>>> I am using Idea 7.0.3 and I can't disable file synchronization. I
>>> have unchecked the "Synchronize files on frame activation" option in
>>> General settings page, but it still does not work. I see files being
>>> updated when I make changes to them outside the IDE.
>>>
>> You cannot disable file synchronization altogether because if you do
>> so you wouldn't see any changes to file content in IDEA at all.
>>

Then why is that option present?


This option controls a specific type of synchronization performed at a specific
time.


What does that specific synchronization task do? When does it run? When is it supposed to be used by end user?

I have set target, which is the default build output dir name in
maven, as the directory to exclude in "general" settings panel. Would
that be sufficient?


Yes.

Thanks for confirming this. I will let you know if I observe a different behavior.

Thanks,
Sahoo

0

Please sign in to leave a comment.