Repository navigation
Closed
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-foundIssue verification failedverifiedVerification succeeded
Milestone
Description
I have several issues with it:
- it appears that it at least partially ignores the configuration of the named task in the
tasks.json. For example, if I have a taskwatch:scsswith"showOutput": "never"there - running it manually doesn't invoke new tab with output, but if I also add it tolaunch.jsonvia"preLaunchTask": "watch:scss"- it opens output every time I re/launch the app. However it seems that it does respect theisWatchingflag, since it doesn't start the app until I terminate the task manually if the setting is false/omitted or it does start the app if the setting is set to true. - if the task is a persistent one (
"isWatching": true) relaunching the app prompts me to terminate the already running one. And it doesn't start the app right away if I chose to terminate it in the prompt - I need to run it again. Which is annoying as hell as you can imagine. There should be an additional setting for either silently restarting thepreLaunchTaskor silently skip the task launch and assuming that the already running should run until the end of the current session. And/or there should be a default based on the either - in any case prompting is not an option. preLaunchTaskis hardly present in the documentation at all. I think many more people would complain if they just knew that this option even exist...
thanks in advance.
Metadata
Metadata
Assignees
Labels
debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-foundIssue verification failedverifiedVerification succeeded
Activity
isidorn commentedon Feb 5, 2016
Thanks for the detailed feedback.
taskService.rundoes not respect configuration specified intasks.jsonDirk Bäumer (@dbaeumer)preLaunchTaskbeing mentioned in https://code.visualstudio.com/docs/editor/debugging, though not to a great extenent. Also preLaucnhTask is present in auto completion inlaunch.json. To increase discoverability I addedpreLaunchTask: ''to the initally generatedlaunch.jsonSince issues 1. and 2. are in the task world forwarding this to Dirk Bäumer (@dbaeumer)
[-]lounch.json preLaunchTask[/-][+]launch.json preLaunchTask[/+]dbaeumer commentedon Feb 11, 2016
Isidor Nikolic (@isidorn)
5 remaining items
Spown commentedon Mar 9, 2016
I appreciate the work and staff, but I fail to see how is the "new" mechanic regarding the watching task is different from the one before (original post/subissue 2.)? I get slightly different warning but I still get it. The point was not to be bugged while relaunching. But I still get the prompt[terminate|close] -> regardless of the choice the launch won't occur until the next launch initiated by the user. Thats still 3 actions instead of one.
Spown commentedon Mar 9, 2016
And if i take
isWatchingflag away - It starts the task and nothing happens. I need to hit F5 again for the launch to occur. Actually withoutisWatchingit works more like it should - since every subsequent relaunch doesn't invoke any prompts. The task is still a watching one, since it keeps running, and VSCode assumes it should continue running. I'm confused.isidorn commentedon Mar 9, 2016
Thanks for coming back with more feedback. Is your last comment captured in bug #3669?
For the previous comment - regarding subissue 2, I can not reproduce this. So I have a watch task, I start debugging again and you get prompted? I do not see this. Can you please create a new issue if you see this on latest vscode (0.10.10) with reproducable steps - it would be great if you could share your repo.
Thanks
daslicht commentedon Mar 29, 2016
How does the task.json need to look if you want to call it as PreLaunchTask?
I tried it like this, but it fails :
dbaeumer commentedon Mar 29, 2016
If you only have one global task you can use the command name as a prelaunch task name.
{ "version": "0.1.0", "command": "tsc", "isShellCommand": true, "showOutput": "silent", "args": [""], "problemMatcher": "$tsc" } "preLaunchTask": "tsc"daslicht commentedon Mar 29, 2016
OK I tried now :
But I get :
dbaeumer commentedon Mar 29, 2016
Do you have a tsconfig.json. Then your args need to look like ["-p", "."]
daslicht commentedon Mar 29, 2016
Yes I have the following tsconfig:
When I change the args in my tasks.json or launch json to:
I get :
dbaeumer commentedon Mar 29, 2016
Marc Wensauer (@daslicht) is your repository public somewhere. Then I have a look there.
daslicht commentedon Mar 30, 2016
Nope, not yet but I can push it, until that which files would you else need to look at else then above ?
Thank You !
dbaeumer commentedon Mar 31, 2016
Hard to say. Most of the time it is a file layout thing as well. Can you try another thing. Can you run the tasks by pressing Ctrl+Shift+B and then show the output of the Task (Shift+Ctrl+U) and attach it here.
daslicht commentedon Mar 31, 2016
SOLVED !:
I never thought that warning could make the pretask fail.
I had such warning:
After removing bluebird and all its dependencies the task is running !
💃
Thank you !
ipanardian commentedon Jan 11, 2017
It works! Thanks
tasks.json
launch.json