Cannot run AS3 project on Mac with Air 3.9

I have a pure ActionScript project that I cannot run or debug under Air 3.9 on desktop.  It works fine with 3.8.  Here's the error:

"xxx/adl" -profile extendedDesktop yyy/bin/MyApp-app.xml yyy/bin -- -basePath .../zzz
[AIR Debug Launcher]: initial content not found
java.io.IOException: Stream closed

xxx, yyy, and zzz are paths on my machine.
Now, I know that the -basePath zzz parameter is what keeps it from running.  It's set in Edit configurations...|My build configuration|Program parameters.  If I unset it, I can run.  If I remove the .../zzz, leaving only -basePath, I can run.  None of those are valid solutions though, as my program depends on that setting.

It works in Air 3.8.  It works with 3.9 in Flash Builder.  It works with 3.9 from an Ant script.  If I copy the adl line from the error and paste it into a console, that works.

So what's going on?

10 comments

I figured this out as I was finishing the post, but am posting anyway becuase it seems broken, and maybe it will help someone else.

If I replace "-basePath .../zzz" with "-basePath /Absolute Path/zzz", it runs.  The fact that the relative path works from the command line still leads me to believe this is an IntelliJ issue.

0

In general, Air 3.9 build 1030 isn't working well with IntelliJ on Mac.  One valid path passed in as a program parameter will be fine, while another will cause the error that I originally posted about.  We're also hitting exceptions in our code under 3.9, with the source not matching up to the program counter when we try to debug it.  Switching back to Air 3.8 fixes everything.  IntelliJ on PC seems fine with Air 3.9.

Is anyone else running into problems like this?

0

i also got error when test using the air 3.9 build 1030 with ANE.

[AIR Debug Launcher]: Not supported native extensions profile


It will happen if test with ADL emulator inside Intellij.  It is fine if running the launch command in terminal.

i am working with SDK version 3.9.1030 in mac and intellij 12.1.6

0
One valid path passed in as a program parameter will be fine, while another will cause the error that I originally posted about.

Will it work if you surround program parameters with quotes? E.g. -basePath ".../zzz" or even "-basePath" ".../zzz". Do you have spaces, quotes or any other special symbols in zzz path?

0
We're also hitting exceptions in our code under 3.9, with the source not matching up to the program counter when we try to debug it.


Can you please give more details on the issue?

0

Hi Alexander.  Sorry for the slow reply.  We had to switch back to Air 3.8 in the name of progress, so I wasn't able to investigate further for you.  The new Air 3.9 build 1200 fixed the issue of not being able to run when command line arguments were supplied.

Here's the story with the debugger.  This behavior only occurs with Air 3.9.  We have an internal AS3 module that contains a class named AssetManager.  In the same project we have a module that builds Starling from source.  Starling also contains an AssetManager class, though in a different namespace.  If I throw an exception in MyNamespace.AssetManager, then click on the AssetManager line in the frames window of the debugger, IntelliJ takes me to the source for starling.utils.AssetManager.  It shows the correct line, just in the wrong file.

I'm currently on IntelliJ IDEA 12.1.6 Build #IU-129-1359
Mac OSX 10.8.5  

0

Adobe Flash Builder 4.7 does not exhibit this behavior.  It takes me to the correct line in the correct file with Air 3.9.

0

My previous science was sloppy.  It turns out that my debugger issue does occur with Air 3.8.  It's still a problem, just not an Air 3.9 specific problem.

0
It shows the correct line, just in the wrong file.

This should be already fixed in IntelliJ IDEA 13 EAP, can you try it?

AIR SDK 3.9.0.1200 indeed fixes all issues with ADL. I still have no idea what's wrong with version 3.9.0.1030.

0

Thanks Alexander, IDEA 13 appears to fix the issue.

0

Please sign in to leave a comment.