question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't load ANEs on mobile project

See original GitHub issue

Hi, brand new to the extension in vscode and migrating from IntelliJ. I think I might not be understanding how to get my ANEs to be found by my debug build. What I am trying to do is run the (Launch SWF) debug task to debug my mobile application in the IOS simulator. My anes are in a “anes” folder in my project’s root folder, which also contains my .code-workspace file. Here’s what I have so far:

launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "swf",
            "request": "launch",
            "name": "Launch SWF",
            "preLaunchTask": "build-debug",
            "profile": "mobileDevice",
	          "screensize": "iPhone6Plus",
	          "screenDPI": 401,
            "versionPlatform": "IOS",
            "extdir": "${workspaceRoot}/anes"
        },
        {
            "type": "swf",
            "request": "attach",
            "name": "Attach SWF"
        }
    ]
}

tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "identifier": "build-debug",
            "type": "actionscript",
            "debug": true,
            "problemMatcher": [
                "$nextgenas_nomatch"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

asconfig.json (all paths relative to root folder)

{
  "config": "airmobile",
  "compilerOptions": {
      "output": "out/app.swf",
      "library-path": [
        "libs",
        "anes"
      ]
  },
  "application": "src/Sports App-app.xml",
  "files":
  [
      "src/Main.as"
  ],
  "airOptions": {

    "android": {
      "extdir": [
        "./anes"
      ],
      "output": "out/Main.apk",
      "signingOptions": {
        "storetype": "pkcs12",
        "keystore": "android_certificate.p12"
      }
    },
    "ios": {
      "extdir": [
        "./anes"
      ],
      "output": "out/Main.ipa",
      "signingOptions": {
        "storetype": "pkcs12",
        "keystore": "ios_certificate.p12",
        "providerName": "path/to/file.mobileprovision"
      }
    }
  }
}

With these configurations in place, I hit play on the Launch SWF debug config, and I get the following error:

Process terminated without establishing connection to debugger.
The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.milkmangames.extensions.GoViral could not be found.

I have confirmed the com.milkmangames.extensions.GoViral.ane file is inside the anes folder. Here is a screenshot of my folder structure:

screen-shot-2018-03-20-at-10 28 38-pm

Am I doing something wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:29 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Nov 8, 2019

EDIT (2019/11/08): You should never need to set extdir in launch.json anymore. ANEs are now automatically unpackaged, and this field is populated automatically. This advice was for an older version of vscode-as3mxml.


I don’t have experience with ANEs, but this is how they work, as I understand it.

The compile the SWF and for code intelligence, you should add your original, unextracted .ane files to the library-path field in the compilerOptions section of asconfig.json. The way that I understand it, they are treated like .swc files.

For packaging your AIR app, you should add the folder containing your original unextracted .ane files in the extdir field in the airOptions section of asconfig.json.

For debugging, you must extract the .ane files. As I understand it, a special naming convention is required. I think the new folder needs to have the same name as the original file (including the .ane file extension!). You add the parent folder of all of the unextracted ANEs to the extdirfield of launch.json.

If anyone sees that I got anything wrong, please let me know.

0reactions
ShantanuK007commented, Nov 10, 2019

I don’t have extdir in launch.json

https://imgur.com/a/ItI5NZd

Read more comments on GitHub >

github_iconTop Results From Across the Web

FAQ - ANES - American National Election Studies
Does ANES have polling data? No, ANES conducts scientific surveys to ... Can I analyze ANES data online? Some ANES studies are available...
Read more >
Distriqt ANE Crashes When Using Adobe Air Sdk 15.0
Right click - in your project · Choose Properties · Select - Flex Build Path in left side menu. · Choose - Native...
Read more >
how to fix Android Studio Error Cannot load project by ts tech ...
Error loading project in Android Studio: cannot load modules, Android Studio error: Cannot load project, Cannot load Android Project.
Read more >
EM 385-1-1 30 Nov 14 27-i Section 27 TABLE OF CONTENTS ...
Riding on concrete buckets or other suspended loads shall be prohibited. 27.A.04 Based on hazard evaluations conducted by supervisors, employers ...
Read more >
Mobile Cricothyrotomy Simulation Cart Improves Anesthesia ...
Cricothyrotomy is an invasive airway used in “cannot intubate, cannot ventilate” events and can be taught using simulation. A mobile cricothyrotomy ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found