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

Task cannot be referenced from a launch configuration that is in a different workspace folder. #140003

Closed
ghost opened this issue Jan 2, 2022 · 0 comments · Fixed by #140038
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@ghost
Copy link

ghost commented Jan 2, 2022

  • VS Code Version: 1.63.2 (user setup)
  • OS Version: Windows_NT x64 10.0.22000

I have a global launch configuration in my user settings. I also have user level tasks in the same directory where the user settings is.
The launch configuration has preLaunch and postDebug tasks that are in the user level tasks.json. The preLaunch task works fine. The postDebug task fails and gives the following error notification.

Task <task_name> cannot be referenced from a launch configuration that is in a different workspace folder.

The task works just fine when I change it to be a preLaunch task.

A similar issue is reported #118528 previously.

@alexr00 alexr00 added bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues labels Jan 3, 2022
@alexr00 alexr00 added this to the January 2022 milestone Jan 3, 2022
alexr00 added a commit that referenced this issue Jan 3, 2022
alexr00 added a commit that referenced this issue Jan 5, 2022
@connor4312 connor4312 added the verified Verification succeeded label Jan 27, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Feb 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@weinand @connor4312 @alexr00 and others