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

"No such file or directory" for launch configuration with "program" but no "cwd" in multi-root workspace #4239

Closed
DanTup opened this issue Nov 2, 2022 · 0 comments
Labels
in debugger Relates to the debug adapter or process of launching a debug session is bug
Milestone

Comments

@DanTup
Copy link
Member

DanTup commented Nov 2, 2022

Noted by @maik-kluwe in #4197 (comment).

Given a workspace:

{
	"folders": [
		{
			"path": "proj1"
		},
		{
			"path": "proj2"
		}
	],
}

And a workspace folder has a launch config:

{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "proj1",
			"request": "launch",
			"type": "dart",
			"program": "bin/main.dart"
		}
	]
}

Trying to run results in this:

Screenshot 2022-11-02 at 11 18 01

Screenshot 2022-11-02 at 11 18 09

This is likely caused by #4197 but I do not believe is expected. In this case, the program should be resolved relative to the workspace folder that it lives inside.

@DanTup DanTup added the is bug label Nov 2, 2022
@DanTup DanTup added this to the v3.52.1 milestone Nov 2, 2022
@DanTup DanTup added the in debugger Relates to the debug adapter or process of launching a debug session label Nov 2, 2022
@DanTup DanTup modified the milestones: v3.52.1, v3.54.0 Nov 2, 2022
@DanTup DanTup closed this as completed in bdda418 Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in debugger Relates to the debug adapter or process of launching a debug session is bug
Projects
None yet
Development

No branches or pull requests

1 participant