AutoComplete broken with SWC dependencies from SWF Project

I am working on setting up a project for some developers and helping them componentize some of their code into a swc. I have created an Ant build process for them, but when setting up dependencies in IntelliJ's Flex Facets we are seeing that code that is referenced from the Libraries is not autocompleting nor is it letting us step into classes accross libraries. I am sure this works as I have done it with a Maven setup before. I just wonder if there is some setting I am missing when doing ti manually as these guys are not willing to go the route of Maven yet.

Here is a quick screenshot of our test SWF that depends on two SWC libraries:

Screen Shot 2011-12-22 at 3.43.24 PM.png

Notice that in this sample class the code that lives in the client-core project does not show up as code completed (it's red) but it compiles fine with Ant.

Screen Shot 2011-12-22 at 3.45.38 PM.png

Any ideas as to what we are doing wrong here?

4 comments

Hi Adam,
Please check that source folders are set correctly for all modules. Ensure that TestButton.as (or .mxml) is located in [client-core source folder]/com/hbo/components/buttons folder and doesn't have syntax errors. Is it possible to attach sample project?

By the way I noticed that you use Java modules with Flex facet(s) and have set Flex SDK as Module SDK. This doesn't make any harm while Flex SDK set for the module and for the Flex facet is the same. But to be sure that you don't have 2 different Flex SDKs configured you can set Java SDK for Java module and Flex SDK for Flex facet. I agree that there's some mess in modules/facets/SDKs. In IDEA 11.1 we plan to completely rewrite ActionScript/Flex project setup, to get rid of Java modules and Flex facets and to introduce more simple and clear project configuration.

0

Hi Adam,
Please check that source folders are set correctly for all modules. Ensure that TestButton.as (or .mxml) is located in [client-core source folder]/com/hbo/components/buttons folder and doesn't have syntax errors. Is it possible to attach sample project?

By the way I noticed that you use Java modules with Flex facet(s) and have set Flex SDK as Module SDK. This doesn't make any harm while Flex SDK set for the module and for the Flex facet is the same. But to be sure that you don't have 2 different Flex SDKs configured you can set Java SDK for Java module and Flex SDK for Flex facet. I agree that there's some mess in modules/facets/SDKs. In IDEA 11.1 we plan to completely rewrite ActionScript/Flex project setup, to get rid of Java modules and Flex facets and to introduce more simple and clear project configuration.

0

Alex:

I can send you a sample project if I remove some of the source code from the main project. Can you give me an email address I can send it to? A little background is that I am using pom.xml files to configure ths starting point of the project which IntelliJ appears to interpret as Java modules instead of Flex modules.

So let me know what email address I should send you the project - I am sure my manager won't appreciate me posting the codebase up as a sample on an open forum.

aparrish@neosavvy.com

Thanks a bunch - merry christmas!

-Adam

0

Have sent an email to you.

Indeed, when importing maven project IDEA creates Java modules with Flex facets. In general Flex module and Java module with Flex facet is the same, but the latter allows to configure more than one compilation per module. Things will change in IDEA 11.1

0

Please sign in to leave a comment.