cargo doc --open
doesn't work on WSL if any of the folders in the path have a space in the name
#11920
Labels
C-bug
Category: bug
Command-doc
O-windows
OS: Windows
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
Running
cargo doc --open
in a rust project if the path has any spaces causes it to not open the rust docs in the browser. Instead, we get an error that sayscommand 'wslview' did not execute successfully; exit status: 1
and the stderr is, assuming your path of is "your\ path/your_proj/target/doc/your_proj/index.html",I expected cargo doc --open to have already replaced all of the spaces with "\ " so that it wouldn't think each space causes the path to be split up into different arguments.
Steps
cargo add
cargo doc --open
.Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: