microsoft / microsoft/vscode-remote-release

using "vscode-remote://attached-container" url from wsl erroneously converts slashes to backslashes

Open
#9,875 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug containers help wanted
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Type: Bug

  • install dev containers extension
  • install remote-wsl extension
  • connect vscode to wsl guest
  • create a container with id $CONTAINER_ID
  • in wsl guest execute:
    code --file-uri vscode-remote://attached-container+$(printf "$CONTAINER_ID" | xxd -p -1000)/server/ui

EXPECTED: windows vscode to open, connect to container, and open DIRECTORY server/ui

RESULT: windows vscode opens, connects to container, but opens new FILE named \server\ui

somebody somewhere is converting / to \ and it's breaking it.

Extension version: 0.25.0
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:10.514Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.146.1-microsoft-standard-WSL2

System Info
Item Value
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 47.85GB (11.68GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote WSL: CentOS7
OS Linux x64 5.15.146.1-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)
Memory (System) 23.40GB (13.04GB free)
VM 0%
Item Value
Remote WSL: Rocky9
OS Linux x64 5.15.146.1-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)
Memory (System) 23.40GB (13.04GB free)
VM 0%
Item Value
Remote WSL: CentOS7
OS Linux x64 5.15.146.1-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904)
Memory (System) 23.40GB (13.04GB free)
VM 0%

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.