Can idea not recompile flex so much?

Every time I change anything in project structure, whether it be flex, java or whatever, idea rebuilds all of my flex modules from scratch.  This takes about 5 minutes.  I do this alot as I change/remove swcs/jars in a large, multi-developer project.  Is there a reason this can't just rebuild the modules that were dependent on ones that I changed?

This would make me very happy.

Thanks,

-c


4 comments

Yes, you are right, IDEA tries to recompile only touched and dependent modules. But when anything is changed in project structure then IDEA needs to recompile Flex fully because there's no reliable way to detect if Flex compilation is affected by these changes in project structure.
To speed up Flex compilation you may turn off 'Use IDE builder' for those Flex modules/facets that you do not touch for a long time. Also you may try parallel compilation: http://blogs.jetbrains.com/idea/2010/02/speed-up-flex-compilation/

0

Re: "no reliable way"

If I have a module A and it depends on B and I change B, I need to recompile A, but I don't need to recompile C that doesn't depend on A or B.  Is it that you don't know which modules have been touched in the Project Structure dialog, or...?  For java, the compilation is fast enough that it doesn't mater.  But, I waste hours a week on recompiling flex needlessly.  I have a project with 49 flex modules.  Recompiling takes about 5 minutes, even with parallel compilation.  If I'm missing a swc dependency in some top level module that nothing depends on, then I add it, and 5 minutes later I discover I'm missing another one... lather, rinse repeat...

This is my single biggest frustration with IDEA right now.

Thanks,

-c

0

You are right, this can be improved. Please open respective request.

0

I know it's been a while, but I did open an issue about this.  This is still a big problem that wastes probably an hour or two of my time a week at minimum (more when there's lots of stuff changing in my project).

http://youtrack.jetbrains.net/issue/IDEA-60055

0

Please sign in to leave a comment.