8 Replies Last post: Oct 28, 2011 7:53 PM by Alexander Doroshko  
Steven de Jong Newbie 20 posts since
Oct 17, 2011
Currently Being Moderated

Oct 17, 2011 5:57 PM

IntelliJ, AIR Mobile, and Dropbox

Hi!

 

I am using Dropbox as a hassle-free way of versioning and sharing my source files.

 

Clearly, I don't want any binaries on there.

 

With IntelliJ and Java, it all works fine to have a content root in dropbox and all project output outside Dropbox; everything compiles and runs just fine.

 

With IntelliJ and Flex/AIR however, if I do exactly the same, everything compiles just as well, but I get the error "initial content not found" upon running with adl.

 

Supposing I have a project in /Users/Steven/Documents/FlexProjects/Test and my sources/assets in /Users/Steven/Dropbox/FlexProjects/Test, how do I make this work? I must be missing something.

 

Best regards! Steven

Alexander Doroshko JetBrains 1,260 posts since
Jun 9, 2009
Currently Being Moderated
Oct 17, 2011 6:29 PM in response to: Steven de Jong
Re: IntelliJ, AIR Mobile, and Dropbox

Looks like you need to fix 'Root directory' in AIR run configuration. Usually it should point to the folder where compiled swf is placed. If it doesn't help please paste screenshot of run configuration.

Alexander Doroshko JetBrains 1,260 posts since
Jun 9, 2009
Currently Being Moderated
Oct 18, 2011 3:04 PM in response to: Steven de Jong
Re: IntelliJ, AIR Mobile, and Dropbox

Looks like you need to fix <content/> tag in TaxiProposalScreens-app.xml file. It must contain your SWF file name:

<content>TaxiProposalScreens.swf</content>

Alexander Doroshko JetBrains 1,260 posts since
Jun 9, 2009
Currently Being Moderated
Oct 18, 2011 4:57 PM in response to: Steven de Jong
Re: IntelliJ, AIR Mobile, and Dropbox

<content> should be fixed in the file that is set as descriptor in run configuration. Your screenshot shows that it is  TaxiProposalScreens-app.xml from src, not from output. Anyway IDEA copies resources (including xml files by default) from src to output folder according to File | Settings | Compiler | Resource patterns. So it doesn't matter which of TaxiProposalScreens-app.xml you use in run configuraton.

The issue is cause by a bit different concept in IDEA and FB. IDEA doesn't use descriptor template concept and doesn't fix descriptor when imports FB projects that results in your issue: http://youtrack.jetbrains.net/issue/IDEA-59180

So far IDEA users need to keep descriptor up-to-date manually.

 

We'll introduce air descriptor template concept as well as completely new Flex project setup in one of upcoming IDEA releases. But first we'll probe it in new product with code name Astella: blog.jetbrains.com/astella/. Second EAP (to be released later this week) will contain import of FB projects.

Alexander Doroshko JetBrains 1,260 posts since
Jun 9, 2009
Currently Being Moderated
Oct 28, 2011 7:54 PM in response to: Steven de Jong
Re: IntelliJ, AIR Mobile, and Dropbox

There's no magic in what IDEA does. You see adl command line in IDEA console so you always can analyze yourself what is going wrong. Adl syntax is here. Basically the main thing you should check is that path to SWF written as 'initialContent' in app descriptor is the relative path from root directory set in run configuration.

More Like This

  • Retrieving data ...