Code Monkey home page Code Monkey logo

Comments (3)

velara3 avatar velara3 commented on June 15, 2024

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.

velara3 avatar velara3 commented on June 15, 2024

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.

joshtynjala avatar joshtynjala commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.