Skip to content

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

Closed

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.

Activity

  1. added this to the v3.52.1 milestone on Nov 2, 2022
  2. added
    in debuggingRelates to the debug adapter or process of running debug sessions
    on Nov 2, 2022
  3. modified the milestones: v3.52.1, v3.54.0 on Nov 2, 2022
  4. added a commit that references this issue on Nov 2, 2022
    fe51f36
  5. added a commit that references this issue on Sep 2, 2025
    bdda418
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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