Skip to content

UriExt roundtrip fails for WSL2 Windows #55

@Sysix

Description

@Sysix

I could not get test_path_roundtrip_conversion to work on my WSL2 Win10 Machine.

failures:

---- uri_ext::tests::test_path_roundtrip_conversion stdout ----

thread 'uri_ext::tests::test_path_roundtrip_conversion' panicked at src\uri_ext.rs:145:9:
assertion `left == right` failed: conv=Uri(Uri { scheme: Some("file"), authority: Some(Authority { userinfo: None, host: Host { text: "", data: RegName("") }, port: None }), path: "///", query: Some("/UNC/wsl.localhost/Ubuntu/home/sysix/dev/tower-lsp-server"), fragment: None })
  left: "\\\\?\\UNC\\wsl.localhost\\Ubuntu\\home\\sysix\\dev\\tower-lsp-server"
 right: "//"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    uri_ext::tests::test_path_roundtrip_conversion

Inside #53 I get another error:


failures:

---- uri_ext::tests::test_path_roundtrip_conversion stdout ----

thread 'uri_ext::tests::test_path_roundtrip_conversion' panicked at src\uri_ext.rs:200:13:
assertion `left == right` failed: conv=Uri(Uri { scheme: Some("file"), authority: Some(Authority { userinfo: None, host: Host { text: "", data: RegName("") }, port: None }), path: "///%3F/UNC/wsl.localhost/Ubuntu/home/sysix/dev/tower-lsp-server", query: None, fragment: None })
  left: "\\\\?\\UNC\\wsl.localhost\\Ubuntu\\home\\sysix\\dev\\tower-lsp-server"
 right: "//?/UNC/wsl.localhost/Ubuntu/home/sysix/dev/tower-lsp-server"
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions