Show all compilation errors in FlexBuilder?
Is it possible to make FlexBuilder show all compilation errors in all files? FlexBuilder does not show errors in Action Script files that are not referenced. Also very often I fix the problem just to pop up new problems after compiling the whole project, even though these errors existed long before that.
IntelliJ shows all the compilation errors it can find, and I would like FlexBuilder to behave the same as IntelliJ is not mature enough to handle our complex setup. Is there a compiler switch to enable this?
source to share
The compiler can (and will) show errors only in the code you tell it to compile, and as you said, anything not specified in the code you compile will not be compiled and thus checked by the compiler.
So, if you want the compiler to check part of your code, you need to tell it to compile it. I'm not sure how your projects are set up, but my guess is that you are putting together a bunch of small projects that use different parts of the overall codebase (or something similar). In this case, you could either
- create some kind of "main" project that references all of your code, compiling which will check for errors everywhere (maybe you already have this, in which case the solution is just compiling it regularly)
- set up a job / target to compile AsDoc documentation for all your code - you could run this regularly and at the same time keep your API documents updated
source to share
The following MXMLC compiler arguments may be helpful:
- includes className [...]
Binds one or more classes to the output SWF, whether or not they are required at compile time.
-include-libraries swcPath [...]
Links all content from one or more SWC libraries to the output SWF, regardless of whether its classes are required at compile time.
source to share