Adobe recently released Flex 4.5, and I'm giving it a try. However, IntelliJ is unable to invoke the compiler for a flex module once I update my settings from an earlier Flex SDK version.
Here's the context, and what I've learned so far:
We use Maven as our primary build tool, and I updated the dependency versions in our pom.xml files for com.adobe.flex compiler from 18.104.22.16848 to 22.214.171.12423. I can compile just fine using the Maven compile task and org.sonotype.flexmojos flexmojos-maven-plugin.
Under Flex 4.1, the flex compiler creates a compiler configuration report, index-config-report.xml, with all the compile settings. When you click the 'Make Project' button in IntelliJ, it invokes the flex compiler using that index-config-report.xml file, and everything compiles nicely. When I move to Flex 4.5, the flex compiler produces index-configs.xml instead, which IntelliJ tries to use the same way.
However, and this appears to be the key: index-config-report.xml has the fileSpec of your main flex class at the end of the file (Main.mxml for our project), index-configs.xml does not. So when IntelliJ invokes the flex compiler, the compiler complains that no target file is specified. It just doesn't know where to start compiling. "Error: [flex-module (Flex)] a target file must be specified"
I've tried this with IntelliJ 10.0.3 and with the brand new 10.5, same problem in both cases. I've also tried changing the IntelliJ Flex Compiler settings, using 'Built-in compiler shell', 'Flex Compiler Shell (fcsh)', and 'Mxmlc/compc' options, no difference in behavior.
I think this is just a version incompatability bug, but I thought I'd check to see if I'm missing a step somewhere. Any ideas?