Flex support really completed?

I tried using "Use IDE builder instead of ANT" in "Project Structure->Modules->Flex Compiler Settings" but I cannot get my project to compile. I created a minimal "compiler-config.xml" containing

    
        true
    
    
        src/ContentLandscape.mxml
    
    true

]]>

but I get loads of compiler errors (missing references to SWCs). Generally my exspectation is that IDEA sets up this file and adds everything configured in Project Structure->Modules->Dependencies. Why do I have to do it manually and deal with the SDK "flex-config-xml" file syntax? I think this is what the IDE should take care of (and Flex Builder does). Am I missing something here? BTW, the ANT configuration works fine.

Thanks and Regards,
Peter

Edited by: Peter Jacobsen on Nov 4, 2008 4:18 PM

18 comments
Comment actions Permalink

Please, file JIRA request

Peter Jacobsen wrote:

I tried using "Use IDE builder instead of ANT" in "Project Structure->Modules->Flex Compiler Settings" but I cannot get my project to compile. I created a minimal "compiler-config.xml" containing

 
>     
>         true
>     
>     
>         src/ContentLandscape.mxml
>     
>     true
> 
> ]]>

but I get loads of compiler errors (missing references to SWCs). Generally my exspectation is that IDEA sets up this file and adds everything configured in Project Structure->Modules->Dependencies. Why do I have to do it manually and deal with the SDK "flex-config-xml" file syntax? I think this is what the IDE should take care of (and Flex Builder does). Am I missing something here? BTW, the ANT configuration works fine.

Thanks and Regards,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

To be honest, flex is by far from useable compared to flex builder. It just comes more naturally in flex builder. My biggest problem is the performance which is really bad on my mac. Configuring a compiler easier is a must. I do not have to configure a config.xml in flex builder as well. Hope it ill work better, since the coding itself is so much nicer in intellij than in eclipse.

Please fix he flex support

0
Comment actions Permalink

Sure, there will be no need to setup config file for compiling (in IDEA
8 bugfix update).

I would much appreciate particular jira issue description, with
performance snapshots if necessary. Thank you!

Jettro Coenradie wrote:

To be honest, flex is by far from useable compared to flex builder. It just comes more naturally in flex builder. My biggest problem is the performance


which is really bad on my mac. Configuring a compiler easier is a must.
I do not have to configure a config.xml in flex builder as well. Hope it
ill work better, since the coding itself is so much nicer in intellij
than in eclipse.


Please fix he flex support


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

I wonder what option do you want to use for the libraries, like
-compiler.include-libraries, -compiler.library-path,
-runtime-shared-libraries, -compiler.external-library-path

Peter Jacobsen wrote:

I tried using "Use IDE builder instead of ANT" in "Project Structure->Modules->Flex Compiler Settings" but I cannot get my project to compile. I created a minimal "compiler-config.xml" containing

 
>     
>         true
>     
>     
>         src/ContentLandscape.mxml
>     
>     true
> 
> ]]>

but I get loads of compiler errors (missing references to SWCs). Generally my exspectation is that IDEA sets up this file and adds everything configured in Project Structure->Modules->Dependencies. Why do I have to do it manually and deal with the SDK "flex-config-xml" file syntax? I think this is what the IDE should take care of (and Flex Builder does). Am I missing something here? BTW, the ANT configuration works fine.

Thanks and Regards,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Maxim,

I would like to be able to create a result that matches my ANT build.xml task:

		
			
			
			
			
			
			
			
		
	
]]>

So as a minumum it would be sufficient to support the -compiler.library-path option. It would be great, if IDEA were able to use a selectable ]]> from a build.xml and use this either to construct the config.xml or just as command line options. I think we also need an option to add arbitrary command line options (for the more esoteric stuff like "-allow-source-path-overlap=true" etc).

I hope the suggestions will make it into the final 8 ball so I can switch from Flex Builder to IDEA.

Thanks and Regards,
Peter

0
Comment actions Permalink

Hi, Peter

Thank you for detailed response, will have it in 8.0.1 eap

In your project I believe -lib, src/assets/skin, src/assets/swf- are
specified as library dependency?

Peter Jacobsen wrote:

Hi Maxim,

I would like to be able to create a result that matches my ANT build.xml task:

 	
> 		
> 			
> 			
> 			
> 			
> 			
> 			
> 			
> 		
> 	
> ]]>

So as a minumum it would be sufficient to support the -compiler.library-path option. It would be great, if IDEA were able to use a selectable <target> from a build.xml and use this either to construct the config.xml or just as command line options. I think we also need an option to add arbitrary command line options (for the more esoteric stuff like "-allow-source-path-overlap=true" etc).

I hope the suggestions will make it into the final 8 ball so I can switch from Flex Builder to IDEA.

Thanks and Regards,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

There is another thing that would be very nice besides the nog config.xml add all. Support for remoting. Maybe it is somehow possible, but I cannot seem to find it. I get exceptions like:

[RPC Fault faultString="[MessagingError message='Destination 'webSecurityService' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'webSecurityService'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:257]
at mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:197]
at mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:113]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:170]
at com.asfusion.mate.actions.builders::RemoteObjectInvoker/run()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actions/builders/RemoteObjectInvoker.as:226]
at com.asfusion.mate.actions::AbstractAction/trigger()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actions/AbstractAction.as:61]
at com.asfusion.mate.actionLists::AbstractHandlers/runSequence()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actionLists/AbstractHandlers.as:227]
at com.asfusion.mate.actionLists::EventHandlers/fireEvent()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actionLists/EventHandlers.as:202]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at components::AuthenticationForm/submitLogin()[/Users/jettro/sources/backoffice/backoffice-flex/src/main/flex/components/AuthenticationForm.mxml:14]
at components::AuthenticationForm/__submitButton_click()[/Users/jettro/sources/backoffice/backoffice-flex/src/main/flex/components/AuthenticationForm.mxml:33]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at mx.managers::FocusManager/http://www.adobe.com/2006/flex/mx/internal::sendDefaultButtonEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:745]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]

I think it has to do with the compilation as well, though I cannot seem to figure out why and how. If I build using maven and then run, it does seem to work. Than I have problems with debugging, but that could be due to the way I build with maven.

Any tips are welcome of course

0
Comment actions Permalink

Please, provide maven configuration file used for build if possible

Jettro Coenradie wrote:

There is another thing that would be very nice besides the nog config.xml add all. Support for remoting. Maybe it is somehow possible, but I cannot seem to find it. I get exceptions like:

[RPC Fault faultString="[MessagingError message='Destination 'webSecurityService' either does not exist or the destination has no channels defined (and the application does not define any default channels.)']" faultCode="InvokeFailed" faultDetail="Couldn't establish a connection to 'webSecurityService'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:257]
at mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:197]
at mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:113]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:170]
at com.asfusion.mate.actions.builders::RemoteObjectInvoker/run()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actions/builders/RemoteObjectInvoker.as:226]
at com.asfusion.mate.actions::AbstractAction/trigger()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actions/AbstractAction.as:61]
at com.asfusion.mate.actionLists::AbstractHandlers/runSequence()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actionLists/AbstractHandlers.as:227]
at com.asfusion.mate.actionLists::EventHandlers/fireEvent()[/nahuel/Flex3/MateGoogle/src/com/asfusion/mate/actionLists/EventHandlers.as:202]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at components::AuthenticationForm/submitLogin()[/Users/jettro/sources/backoffice/backoffice-flex/src/main/flex/components/AuthenticationForm.mxml:14]
at components::AuthenticationForm/__submitButton_click()[/Users/jettro/sources/backoffice/backoffice-flex/src/main/flex/components/AuthenticationForm.mxml:33]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
at mx.managers::FocusManager/http://www.adobe.com/2006/flex/mx/internal::sendDefaultButtonEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\FocusManager.as:745]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]

I think it has to do with the compilation as well, though I cannot seem to figure out why and how. If I build using maven and then run, it does seem to work. Than I have problems with debugging, but that could be due to the way I build with maven.

Any tips are welcome of course



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi,

Please, checkout in IDEA 8 # 9117+, as always feedback is wellcome

Peter Jacobsen wrote:

Hi Maxim,

I would like to be able to create a result that matches my ANT build.xml task:

 	
> 		
> 			
> 			
> 			
> 			
> 			
> 			
> 			
> 		
> 	
> ]]>

So as a minumum it would be sufficient to support the -compiler.library-path option. It would be great, if IDEA were able to use a selectable <target> from a build.xml and use this either to construct the config.xml or just as command line options. I think we also need an option to add arbitrary command line options (for the more esoteric stuff like "-allow-source-path-overlap=true" etc).

I hope the suggestions will make it into the final 8 ball so I can switch from Flex Builder to IDEA.

Thanks and Regards,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

I have added three pom files as I use them for my flex, my flex-config and my web projects.

Hope that helps



Attachment(s):
pom.xml
pom.xml
pom.xml
0
Comment actions Permalink

Hi Maxim,

yes, "-lib, src/assets/skin, src/assets/swf" are library dependencies.

I am not sure what you mean by "IDEA 8 # 9117+", the latest EAP (RC 2) build is 9008.

Thanks and Regards,
Peter

0
Comment actions Permalink

It is IDEA 8.0.1 eap

Peter Jacobsen wrote:

Hi Maxim,

yes, "-lib, src/assets/skin, src/assets/swf" are library dependencies.

I am not sure what you mean by "IDEA 8 # 9117+", the latest EAP (RC 2) build is 9008.

Thanks and Regards,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Maxim,

when does IDEA 8.0.1 EAP start? Does it start with build 9117 right away?

Regards,
Peter

0
Comment actions Permalink

Using BlazeDS as the remoting framework, I was able to get it to work in combination with building from IntelliJ by including:

/DMS (the webapp I'm deploying to) (path to services file in webapp container)\services-config.xml]]>

with the compiler configuration file, inside of the compiler section of the file. If you have Flex Builder as well, you can generate a compiler configuration file matching your configuration there, and look for the generated XML that it's using to configure remoting.

No luck on debugging yet either, seems like it's not loading the services configuration file in that scenario...going to investigate further and hopefully come up with some better suggestions as to what the problem is.

0
Comment actions Permalink

James,

how did you create the compiler config file using Flex Builder? I can see an ".actionScriptProperties" file - but it has a different format.

Thanks,
Peter

0
Comment actions Permalink

Under Project Properties/Flex Compiler, add the following to Additional compiler arguments:

-dump-config flex-config.xml

It'll produce one very, very large compiler configuration file. I ended up using just a couple of elements from it and throwing away the rest, but it's useful as a guide.

0
Comment actions Permalink

Flex SDK has flex-config.xml under frameworks directory

Peter Jacobsen wrote:

James,

how did you create the compiler config file using Flex Builder? I can see an ".actionScriptProperties" file - but it has a different format.

Thanks,
Peter



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Added note...I was able to get debugging to work by pointing the debugger at the URL of the wrapper HTML file. Using the wrapper HTML file or SWF from the file system seems to result in it using a server.port of 80 no matter what, which causes the application to fail when the servlet container is at something else (for instance, 8080).

0

Please sign in to leave a comment.