Skip to content

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

@DanTup

Description

@DanTup

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions