Comments (3)
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"
}
from vscode-as3mxml.
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.
from vscode-as3mxml.
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.
from vscode-as3mxml.
Related Issues (20)
- '(' is not allowed here for property names inside an Object literal HOT 2
- Version 1.20.0 fails to compile if path to main class contains spaces (Windows) HOT 28
- AVM2 special operations not detected HOT 1
- Showing numbers defined as hex in hexadecimal format, not just decimal HOT 4
- Completion: Ordering improvement for fully present terms HOT 2
- Go to definition and autocompletion doesn't work with <fx:Script source="Myfile.as"/> HOT 1
- Symbol renaming error in the latest release HOT 1
- Support tab character after @param
- <mx:DataGrid and gestureTwoFingerTap HOT 4
- Build task failing because Adobe Animate not found HOT 3
- Support to Flash Builder old SDKs were dropped? HOT 1
- Completion: after CSS namespace tag, suggest mx and spark namespaces in Flex projects
- Option to "ACTIONSCRIPT SOURCE PATH" always visible HOT 4
- Context menu for clean, compile debug and compile release HOT 1
- Need a feature to filter warnings for files in a specific path
- "Find All References" never returns any results HOT 10
- asformat: Bug in switch command within loop HOT 4
- The debugger affect to the code HOT 3
- Intellisense working only for few seconds
- Cannot rename a variable if it is declared in "for each in" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-as3mxml.