Skip to content

[bug] Reviews created on Windows store file paths incompatible with Linux #127

Open
@haybatov

Description

@haybatov

Reviews created on Windows store file paths incompatible with WSL2

Description

When the code reviews created in Windows are opened on the Windows subsystem for Linux (Ubuntu), a double-click on a review item results in a error "Cannot not open file: '/home/user/repo/\app\path\file.ext': File does not exist"

Yes, the error message contains double negation, but this is a secondary issue.

Reproduction

  1. Open VS Code on Windows and make some code review comments on separate files. Commit the code review file.
  2. Open VS Code and access files on WSL2 (Ubuntu was used) and click on any of the code review comments.
  3. Observe the error

Error message


Cannot not open file: '/home/user/repo/\app\path\file.ext': File does not exist

🌍 Your Environment

VS Code on Windows 10 for creating code review items.
VS Code on Windows 11 accessing files on WSL for viewing code review items.

Workaround

Replacing backslashes with slashes in the code review CSV file allows to open the files on VS Code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions