Skip to content

PROBLEMS pane: file path is not correctly prefixed with forward slash / #1915

@zfields

Description

@zfields

Forwarded from: microsoft/vscode#48841

Example output from file pane:

src_file.cpp Users/zfields/dev/source/application/lib/src_file.cpp
* use of undeclared identifier 'id' (213,5)

When I click on the problem, I get the following error message.

Error message:

Unable to open 'src_file.cpp': File not found
(file:///Users/zfields/dev/source/application/Users/zfields/dev/source/application/lib/src_file.cpp).

It looks like VSCode is trying to use a relative path from ${workspaceFolder}, even though the PROBLEMS pane is showing an absolute-ish path. Perhaps the path from the PROBLEMS pane would be appropriately identified as an absolute path if it was prefixed with a forward slash /.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestLanguage ServicefixedCheck the Milestone for the release in which the fix is or will be available.help wantedCan be fixed in the public (open source) repo.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions