8 Replies Last post: Dec 9, 2009 6:08 PM by Alexander Doroshko  
Guest
Currently Being Moderated

Jul 5, 2009 3:21 PM

Can't compile Air application in Idea 9 M1

 

jmgeffroy Newbie 12 posts since
Jun 14, 2003
Currently Being Moderated
Nov 18, 2009 3:41 PM in response to: Maxim Mossienko (JetBrains)
Re: Can't compile Air application in Idea 9 M1

Hello,

I'm having the same problem. However, I do use an Adobe AIR SDK. Here is my configuration:

- IDEA 9.0 beta (build# 90.193)
- Adobe Flex 4 SDK
- Adobe AIR 2 SDK (simply unzipped it at the root folder of the Flex SDK)
Maybe IDEA does not support these recent SDKs from Adobe?

I get the error when trying to compile the generated Hello World application.

Thank you very much in advance,

JM

Alexander Doroshko JetBrains 1,344 posts since
Jun 9, 2009
Currently Being Moderated
Nov 18, 2009 4:38 PM in response to: jmgeffroy
Re: Can't compile Air application in Idea 9 M1

Hello Geffroy,

 

IDEA should understand AIR 2.0beta SDK. Make sure that you haven't removed  <Flex SDK>frameworks/libs/air/airframework.swc file. AIR 2.0beta SDK doesn't contain it, but Flex SDK 4 does.

Do you use AIR SDK in terms of IDEA for your Flex module (or facet)? Please see http://blogs.jetbrains.com/idea/2009/05/air-applications-development-in-intellij-idea-9/ Information is a bit outdated there, because AIR run configuration is now separate from Flex one but general things remained the same, so I hope it will help.

If not - please provide some details:

- Full contents of Messages tool window after unsuccessful compilation (invoke compilation by using Build -> Rebuild Project)

 

- Screenshot of AIR SDK configured in IDEA (its Classpath tab)

- Screenshot of Dependencies tab and Flex Compiler Settings tab of your Flex module (or Flex facet configuration page)

jmgeffroy Newbie 12 posts since
Jun 14, 2003
Currently Being Moderated
Nov 18, 2009 5:00 PM in response to: Alexander Doroshko
Re: Can't compile Air application in Idea 9 M1

Hello Alexander,

Thank you very much for your quick reply. Yes, my "airframework.swc" had disappeared. I'm sorry, I did not notice it. It's working now. I'll now further investigate and test the Flex support.

Best regards,

Jean-Marie

jmgeffroy Newbie 12 posts since
Jun 14, 2003
Currently Being Moderated
Nov 18, 2009 9:30 PM in response to: jmgeffroy
Re: Can't compile Air application in Idea 9 M1

Hello Alexander,

 

I did many tests and everything seems OK. However, I noticed that the following construct is not recognized yet:

 

<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

   xmlns:s="library://ns.adobe.com/flex/spark"

  xmlns:d="http://ns.adobe.com/fxg/2008/dt"

  xmlns:graphics="assets.graphics.*"

   xmlns:components="components.*"

  showStatusBar="false" backgroundAlpha="0.0">

[...Code removed...]

  <fx:DesignLayer d:id="26" ai:objID="4723ef00" d:userLabel="sombra fondo">

    <!-- Here, graphics:BackgroundImage refers to an FXG file inside assets/graphics -->

    <graphics:BackgroundImage  resizeMode="scale" percentHeight="100" left="3" top="54" right="3"  bottom="3"/>

  </fx:DesignLayer>


[...Code removed...]

 

Idea signals that "Element graphics is not allowed there"...The code compiles and runs well, this is only a small inconvenience. Maybe there is a workaround in Idea's configuration?

Best regards,

Jean-Marie

Alexander Doroshko JetBrains 1,344 posts since
Jun 9, 2009
Currently Being Moderated
Nov 18, 2009 9:56 PM in response to: jmgeffroy
Re: Can't compile Air application in Idea 9 M1

You are right, FXG is not supported yet.

An issue is welcome: http://youtrack.jetbrains.net

jmgeffroy Newbie 12 posts since
Jun 14, 2003
Currently Being Moderated
Dec 9, 2009 5:54 PM in response to: Alexander Doroshko
Re: Can't compile Air application in Idea 9 M1

Hello Alexander,

Do you have news about the FXG support ? I see nothing about this. Maybe you have a roadmap about this topic ?

Thank you very much in advance,

JM

Alexander Doroshko JetBrains 1,344 posts since
Jun 9, 2009
Currently Being Moderated
Dec 9, 2009 6:08 PM in response to: jmgeffroy
Re: Can't compile Air application in Idea 9 M1

I don't have an answer just now,

please open an issue and watch for progress.

More Like This

  • Retrieving data ...