You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Open VS Code on Windows and make some code review comments on separate files. Commit the code review file.
Open VS Code and access files on WSL2 (Ubuntu was used) and click on any of the code review comments.
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.
The text was updated successfully, but these errors were encountered:
We presumably the same bug in the following context:
Creating a code review comment in Windows 10 -> code-review.csv is created
Trying to open the project under MacOS with that code-review.csv: No comments are found
When manually replacing all '' by '/" and all alle \n\r => \n MacOS understands the csv and loads the comments correctly.
Unfortunately, Win10 doesn't understand the comments then anymore...
Should be a parsing error then. Would be great to get a fix ;)!
Thanks for your comment.
Unfortunately I won't find time within the next weeks or even month to investigate this further.
Also, I can't really test it as I am working with a mac.
Long story short: I would be happy to receive a pull request for review. 🙂
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
Error message
🌍 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.
The text was updated successfully, but these errors were encountered: