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

Unable to use preLaunchTask with two configurations #24595

Closed
edvinv opened this issue Apr 12, 2017 · 9 comments
Closed

Unable to use preLaunchTask with two configurations #24595

edvinv opened this issue Apr 12, 2017 · 9 comments
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@edvinv
Copy link

edvinv commented Apr 12, 2017

  • VSCode Version: 1.11.1
  • OS Version: ubuntu

Steps to Reproduce:

  1. Create two watching task using typescript compiler named srv and web in tasks.json.
  2. In launch.json create three configurations:
    • srv for node with preLaunchTask=srv
    • web from chrome with preLaunchTask=web
    • compound launch named both, which starts both launch configurations: srv and web

If I start srv debugging all works ok. But if I then start web debugging I get "There is a task srv running. Can not run pre launch task web." Same happens if I start compound task named both.

But I'm able to run both tasks srv and web at the same time if I start them with Run task command. Of course, I must remove preLaunchTask, if I want to start debugging, otherwise I get same error.

br

@isidorn
Copy link
Contributor

isidorn commented Apr 13, 2017

This is the problem of the task framework only supporting to run one task at a time.
Assigning to @dbaeumer as he might have better recomendations on how to setup your environment

@isidorn isidorn assigned dbaeumer and unassigned isidorn Apr 13, 2017
@edvinv
Copy link
Author

edvinv commented Apr 13, 2017

@isidorn not sure, because I use tasks version 2.0.0. and I'm able to run both watch task at the same time without problems. But if two watch task are running I'm unable to start debugging if preLaunchTask is also set.

@isidorn
Copy link
Contributor

isidorn commented Apr 13, 2017

@edvinv this issue is probably that the preLaunchTask uses tasks 1.0.0 underneath

@dbaeumer
Copy link
Member

@isidorn actually the new runner support starting more than one tasks but the debugger needs to adopt this. Since the new terminal is not the default yet I recommend that we wait with the adoption. What is clear is that I need to let the debugger now whether the task framework supports multiple parallel tasks or not since users could still configure the old runner. Opened #24670 to track this.

Assigning back to you.

@dbaeumer dbaeumer assigned isidorn and unassigned dbaeumer Apr 13, 2017
@isidorn isidorn added this to the Mai 2017 milestone Apr 13, 2017
@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Apr 13, 2017
@isidorn
Copy link
Contributor

isidorn commented Apr 13, 2017

Assigning to Mai since this is dependent on #24670

@isidorn
Copy link
Contributor

isidorn commented May 29, 2017

@dbaeumer let me know if you are not planning to tackle #24670 in May so I also postpone this

@dbaeumer
Copy link
Member

@isidorn sorry for this. Lets move to June. It is a little late for feature although this is not too complicated.

@isidorn isidorn modified the milestones: June 2017, May 2017 May 30, 2017
@isidorn isidorn removed their assignment Jun 26, 2017
@isidorn isidorn modified the milestones: Backlog, June 2017 Jun 26, 2017
@edvinv
Copy link
Author

edvinv commented Nov 13, 2017

@isidorn @dbaeumer was this corrected in last release 1.18? Because now I'm able to have compound launch configuration, containing two launch configurations, each having different preLaunchTask task and Start debugging (F5) correctly starts both prelaunch tasks.

The problem is then is that debugger doesn't wait for both tasks to end before attaching debug session.
If I start single webpack prelaunch tasks I also get error "The preLaunchTask 'web' cannot be tracked."

@dbaeumer
Copy link
Member

This got addressed with the new task 2.0.0 support which allows to run multiple launch configs. The canot be tracked issues is discussed here: #37997

@edvinv edvinv closed this as completed Nov 13, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants