Since switching from FlashBuilder to IntelliJ IDEA (which I’m loving so far) I sometimes come across things that need tweaked a bit. One such thing is inspection errors in the SDK source files where resource bundles are used. Inspection errors don’t necessarily mean that the code won’t compile (although many times it does mean that) but that the IDE can’t make sense of it. In the case of resource bundles, IntelliJ looks for them within source directories, even though they don’t need to exist in source directories to be compiled into the application. Because of this, you often get ugly red marks in your editor when viewing SDK source code.
The easy way to remove these inspection errors is to add an SDK classpath pointing to the bundles directory in the Project Structure / SDKs window. In my case, I needed to add a classpath to:
D:\Projects\Flex SDKs\4.10 - AIR 3.8\frameworks\projects\frameworks\bundles