How to disable file synchronization for specific folder?

Answered

In my project I have a folder "target" where all the generated classes (EJB interfaces, DAO objects, etc) are located. When I run a maven goal to regenarate them, the target folder gets deleted and then the files are recreated. IntelliJ Idea immediately starts synchronizing the changes which results in a 10 minutes break since I cannot perform any other tasks while it does so (there are a few thousands of these files).

How can I disable file synchronization for a specific folder (target) or even of the whole project? I could not find such option neither in the settings nor in the online docs.

0
4 comments
Avatar
Permanently deleted user

hi Borys,

You might consider excluding that directory from the module. (Settings | Project Structure | ]]> | Sources tab | etc.)

Switching off the synchronization for the whole project can be done with the option 'Synchronize file on frame activation'; that can be switched off from Settings | General.

HTH, Ruben

0
Avatar
Permanently deleted user

Excluding the folder from the module is not an option since I need to debug the code and for that I need compilable code.

Deactivating synchronization did the job. I only wish there was an option to deactivate it for specific folders only...

Thanks for help.

0

Hi there,

I have a similar problem. I use Pycharm and have a use case that generates around 2 million tiny files. Sounds extreme, but makes sense for the actual implementation. Thing is, I already excluded the folder containing the cache files and it improved the situation because otherwise I get totally blocked. However, pycharm feels more laggy and the popup stating file syncronization is taking place still appears from time to time (like, once per hour, block me for 5 minutes then goes away).

Is there anything I can do to actually get over this issue?

Thank you for your awesome product ;)

0

Carloshp11 Please see https://youtrack.jetbrains.com/issue/IDEA-246854/File-system-synchronization-popup-blocks-UI and the linked issues. Yours looks related. Please follow this issue for updates. You can also help by providing logs and/or reproducible test cases.

0

Please sign in to leave a comment.