BowlerHatLLC / vscode-as3mxml

ActionScript & MXML language extension for Visual Studio Code. Develop apps for Adobe AIR, Adobe Flash Player, or Apache Royale.
https://as3mxml.com/
Apache License 2.0
256 stars 39 forks source link

Live source update: added .as source files not considered for libraries #716

Closed hydroper closed 9 months ago

hydroper commented 9 months ago

Problem

When I add an .as source file while editing a SWC project, I get this at the package word:

A fatal error occurred. Error checking has been disabled, except for simple syntax problems.

I have this asconfig.json, but I experience the issue when editing any SWC library:

{
    "config": "air",
    "type": "lib",
    "compilerOptions": {
        "include-sources": ["src"],
        "library-path": ["libs"],
        "output": "swc/org.agera.crypto.swc"
    }
}

Workaround

Re-open the editor to detect added .as source files.

joshtynjala commented 9 months ago

Does it make any difference if you add "source-path": ["src"] to your compiler options?

hydroper commented 9 months ago

Yes, that solves the issue. I could have added it to my library template...