wsl$ is invalid hostname
Windows Build Number
Microsoft Windows [Version 10.0.19042.985]
WSL Version
- [X] WSL 2
- [ ] WSL 1
Kernel Version
No response
Distro Version
Ubuntu-18.04
Other Software
You will have to install liveshare extension on the VSCode.
Repro Steps
- Open temirnal Ubuntu (WSL2)
- open VSC by 'code .'
- Try to start a live share
- see error, Share Failure: Invalid URI: The hostname could not be parsed
when we narrowed down this error we saw that the underlying issue is we have been passing, \\wsl$\Ubuntu-18.04\home, as path. if we look at UNC path $ is not valid character in hostname.
I can provide a little more insight into this. On Windows, network file paths are represented as \
However that seems to fail with a $ in the host name.
I am hoping to get some help here.
Expected Behavior
- Open temirnal Ubuntu (WSL2)
- open VSC by 'code .'
- Try to start a live share
- User able to do liveshare
Actual Behavior
Diagnostic Logs
No response
Variation of #4308.
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.
Thank you!