Closed velara3 closed 11 months ago
If I move the asconfig.json to the root of the project and then run it I get the following error:
Error: The actionscript task detection didn't contribute a task for the following configuration:
{
"type": "actionscript",
"debug": true,
"asconfig": "asconfig.json",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "ActionScript: compile debug - asconfig.json"
}
The task will be ignored.
Moved asconfig.json:
{
"config": "js",
"compilerOptions": {
"source-path": [
"public",
"/public"
],
"js-output": "bin",
"source-map": true
},
"mainClass": "MyApp"
}
If I move the asconfig file to the root directory, then rename the source directory to src and move the as file to the src directory then I can get it to run:
{
"config": "js",
"compilerOptions": {
"source-path": [
"src"
],
"html-template": "template.html",
"source-map": true
},
"mainClass": "MyApp"
}
I also added the template.html option back into to the compiler and then updated the task:
tasks:
{
"type": "actionscript",
"debug": false,
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "ActionScript: compile release - asconfig.json"
}
So it works with the default project structure but for me not with a different structure than default.
I have a project where I have the AS file in a project sub directory and I'm having issues.
Adding public to the source-path of public/asconfig.json wouldn't work here because there is no public/public directory, so the error is correct. The source-path, if it is not absolute, is supposed to be relative to the directory that contains asconfig.json.
If I remove the source path argument or if I use a dot or a slash (for current directory) I get another error:
If a dot doesn't work, that's definitely a bug.
Error: The actionscript task detection didn't contribute a task for the following configuration
If the file is asconfig.json in the root directory, remove the line: "asconfig": "asconfig.json"
. The asconfig
field in tasks.json is needed only for a non-default location. I wish that I could allow "asconfig": "asconfig.json"
and no asconfig
field at all to mean the same thing, but it is a limitation of VSCode's task system not to allow missing fields to be resolved dynamically.
I have a project where I have the AS file in a project sub directory and I'm having issues.
Here's the project structure:
Here is my
asconfig.json
:Here's
MyApp.as
:Here's the console message when calling build:
If I remove the source path argument or if I use a dot or a slash (for current directory) I get another error:
Main class not found in source paths: MyApp