Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot add more than one task and documentation does not help at all #5606

Closed
ta3pks opened this issue Apr 21, 2016 · 8 comments
Closed

cannot add more than one task and documentation does not help at all #5606

ta3pks opened this issue Apr 21, 2016 · 8 comments
Assignees
Labels
info-needed Issue requires more information from poster tasks Task system issues
Milestone

Comments

@ta3pks
Copy link

ta3pks commented Apr 21, 2016

  • VSCode Version:
  • OS Version:ubuntu 15.10
    i have following task file i tried to make an array containing objects or just adding more objects to the file both wont work .
    In documentation there are examples whic are already in example tasks.json file with a normal human being with an average iq can read from the example json file and understand everything from comments . Why documentation does not tell anything about how to do actually something is this because this is opensource and microsoft wants just money of people and microsoft created this editor in order to look prettier like saying 'look we suck your money but we also create open source software' ?
@dbaeumer
Copy link
Member

Tasks are designed as light weight wrappers around an existing task runner like grunt or gulp. VSCode's task system does is starting such a gulp or grunt task and parses its output to produce errors. The limitation with this right now is that there can only be one command executed at any given time and that tasks must be used with the same command. So for example

{
    // See http://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0",
    "command": "gulp",
    "isShellCommand": true,
    "args": [
        "--no-color"
    ],
    "tasks": [
        {
            "taskName": "build",
            "args": [],
            "isBuildCommand": true,
            "isWatching": false,
            "problemMatcher": [
                "$lessCompile",
                "$tsc",
                "$jshint"
            ]
        }
    ]
}

uses gulp ti run tasks. When the build task is executed (e.g. gulp build) its output is checked for less, tsc and jshint errors. The output of other gulp tasks like for example gulp deploy would not be checked for errors.

@NikosEfthias what exactly do you want to achieve?

@dbaeumer dbaeumer added tasks Task system issues info-needed Issue requires more information from poster labels Apr 21, 2016
@dbaeumer dbaeumer added this to the Backlog milestone Apr 21, 2016
@dbaeumer dbaeumer self-assigned this Apr 21, 2016
@ta3pks
Copy link
Author

ta3pks commented Apr 21, 2016

how can i use multiple tasks not at the same time for example in some part of my project i need to run that particular js file not the entire file so as in the example i created a task for this and on a less file i wanna compile it so i wanna create another task definition to do so but i can only have one task per project with this design @dbaeumer

@grazies
Copy link

grazies commented Apr 21, 2016

From: Nikos Efthias [mailto:notifications@github.com]
Sent: Thursday, April 21, 2016 8:57 PM
To: Microsoft/vscode vscode@noreply.github.com
Subject: Re: [Microsoft/vscode] cannot add more than one task and documentation does not help at all (#5606)

how can i use multiple tasks not at the same time for example in some part of my project i need to run that particular js file not the entire file so as in the example i created a task for this and on a less file i wanna compile it so i wanna create another task definition to do so but i can only have one task per project with this design @dbaeumerhttps://github.com/dbaeumer


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/5606#issuecomment-213090165

@dbaeumer
Copy link
Member

We have a feature request #981 to be able to define more than one command and to run more than one task. Any objection to close as dup?

@ta3pks
Copy link
Author

ta3pks commented Apr 22, 2016

@dbaeumer where can i follow new features ?

@dbaeumer
Copy link
Member

For every iteration we run we create a plan that describes what we want to achieve during that iteration. The one for April is here: #4888.

We already started discussions on how to best solve the multi command / multi tasks problem but haven't landed on a final solution yet. One idea was to provide a better terminal integration because that gives more freedom.

@ta3pks
Copy link
Author

ta3pks commented Apr 22, 2016

thank you for answer @dbaeumer

@ta3pks ta3pks closed this as completed Apr 22, 2016
@ta3pks
Copy link
Author

ta3pks commented Apr 23, 2016

i found a way to add multiple tasks
under linux i just use /usr/bin/env as commant then configuring tasks:[] section but it could be just cool if the tasks.json file accepted and array rather than a single object @dbaeumer in documentation may be you can put an example of editing multiple tasks this way for other people

@ta3pks ta3pks reopened this Apr 23, 2016
@ta3pks ta3pks closed this as completed Jul 22, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster tasks Task system issues
Projects
None yet
Development

No branches or pull requests

3 participants