Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
Issue compiling from VScode 51.2.x versions but others ok
I'm using the Air SDK manager to install and manage Air SDKs.
Have just tried one of the latest 51.2 versions and get the following crash. Earlier Air SDKs compile fine with no changes other than the SDK being used.
The terminal process "/usr/bin/java '-jar', '/.vscode-insiders/extensions/bowlerhatllc.vscode-as3mxml-1.22.0/bin/asconfigc.jar', '--sdk', '/AIRSDK_51.2.1.3', '--debug=true', '--project', 'asconfig.json', '--air', 'ios'" terminated with exit code: 2.
Any ideas?
Is this just trying to compile the SWF file, or would it build the IPA file as well? If the latter, can you have AIR SDK Manager open at the 'troubleshooting' tab and re-try, and see what logging comes out there?
thanks
Yes, I've tried that but nothing traces out. I think the issue occurs before it can establish that connection to the manager.
I don't get as far as the password prompt with the compiler. It's the same with either release or debug build requests as well - everything is exactly the same when using any previous compiler - the only change is the use of 51.2.1
That implies it's a compiler thing .. (not sure what password prompt you mean?) Worth checking, if you still have an older SDK installed, does it make a difference if you copy an older compiler library into the new AIR SDK? The bulk of the functionality is in a file "compiler.jar" within the "lib" folder, assuming you're not using Flex..
thanks
No, if I use compiler.jar from the previous SDK (51.1.3) then it all works fine as expected.
So looks like an issue with the compiler.jar changes?
PS. not using Flex, just the standard AIR SDK with actionscript
Thanks for checking - yes, seems to be an issue with the compiler. Which is really strange, the differences are pretty minimal! Are you able to check the versions please? e.g. using "mxmlc -version" (with each of the compiler.jar files in place) or failing that, open the compiler.jar in a zip manager and check the "META-INF/manifest.mf" file? It should have details including:
Implementation-Title: ActionScript Compiler
Implementation-Version: 3.2.3.0
The latest public version is 3.2.3 so if that's causing you the issue, we need to double-check this..! If not - please update the AIR SDK (51.2.1.4 had this version, the previous version had a slight issue in handling some strings, but I wasn't aware it would cause any problems/early exits within the actual compiler stage..)
thanks
Thanks for the quick response.
The latest SDK I've tried (51.2.1.3) does indeed have the implementation version of 3.2.3.0 whereas the compiler from the SDK that works (51.1.3) has implementation version 3.2.0.0
Sorry for the bad news...happy to help where I can with testing etc.
If it helps, setting as3mxml.asconfigc.verboseOutput to true in your VSCode workspace settings will show the options that asconfigc passes to mxmlc and adt.