Repository navigation
Terminals started in a path with square brackets are not handled correctly #145441
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
*not-reproducibleIssue cannot be reproduced by VS Code Team member as describedIssue cannot be reproduced by VS Code Team member as describedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.Problems launching processes, managing ptys, exiting, process leaks, etc.windowsVS Code on Windows issuesVS Code on Windows issues
Milestone
Description
Issue Type: Bug
1, Create a directory with Square-Brackets, say, D:\[me]
2, Inside D:\[me], click Shift+F10, and then choose "Open with VSCode"
3, Click Ctrl+`
Inside the Terminal window, the directory is
"PS C:\WINDOWS\System32\WindowsPowerShell\v1.0>"
not the expected
"PS D:\[me]>"
VS Code version: Code 1.65.2 (c722ca6, 2022-03-10T14:33:55.248Z)
OS version: Windows_NT x64 10.0.22000
Restricted Mode: No
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192) |
| GPU Status | 2d_canvas: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: enabled opengl: enabled_on rasterization: enabled skia_renderer: enabled_on video_decode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 31.88GB (11.30GB free) |
| Process Argv | n/a |
| Screen Reader | no |
| VM | 40% |
Extensions (24)
| Extension | Author (truncated) | Version |
|---|---|---|
| code-gnu-global | aus | 0.2.2 |
| doxdocgen | csc | 1.4.0 |
| gitlens | eam | 12.0.5 |
| matlab | Gim | 2.3.1 |
| latex-workshop | Jam | 8.23.0 |
| better-cpp-syntax | jef | 1.15.13 |
| linter-gfortran | krv | 2.6.2 |
| vscode-language-pack-zh-hans | MS- | 1.65.3 |
| python | ms- | 2022.2.1924087327 |
| vscode-pylance | ms- | 2022.3.2 |
| jupyter | ms- | 2022.2.1030672458 |
| jupyter-keymap | ms- | 1.0.0 |
| jupyter-renderers | ms- | 1.0.6 |
| remote-containers | ms- | 0.224.3 |
| remote-ssh | ms- | 0.76.1 |
| remote-ssh-edit | ms- | 0.76.1 |
| remote-wsl | ms- | 0.64.2 |
| cmake-tools | ms- | 1.10.4 |
| cpptools | ms- | 1.8.4 |
| cpptools-extension-pack | ms- | 1.1.0 |
| material-icon-theme | PKi | 4.14.1 |
| cmake | twx | 0.0.17 |
| vscode-ltex | val | 13.1.0 |
| debug | web | 0.25.1 |
(1 theme extensions excluded)
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30451275
dsvsc009:30452663
pythonvsnew555:30450902
vscscmwlcmc:30438804
vscgsvid1:30447480
pynewfile477:30450038
Reactions are currently unavailable
Metadata
Metadata
Labels
*not-reproducibleIssue cannot be reproduced by VS Code Team member as describedIssue cannot be reproduced by VS Code Team member as describedbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.Problems launching processes, managing ptys, exiting, process leaks, etc.windowsVS Code on Windows issuesVS Code on Windows issues
Activity
meganrogge commentedon Mar 21, 2022
can you pls include a gif?
lirm-math commentedon Mar 21, 2022
meganrogge commentedon Mar 22, 2022
Try https://gifcap.dev
lirm-math commentedon Mar 22, 2022
I have updated the post and included a gif. Please see if it is helpful.
When you can reproduce the bug, please tell me to remove that gif, which contains my personal info. Thank you so much.
[-]Paths with Square-Brackets are not handled correctly[/-][+]Terminals started in a paths with square brackets are not handled correctly[/+][-]Terminals started in a paths with square brackets are not handled correctly[/-][+]Terminals started in a path with square brackets are not handled correctly[/+]Tyriar commentedon Dec 12, 2022
Cannot repro:
vscodenpa commentedon Dec 12, 2022
We closed this issue because we are unable to reproduce the problem with the steps you describe. Chances are we've already fixed your problem in a recent version of VS Code. If not, please ask us to reopen the issue and provide us with more detail. Our issue reporting guidelines might help you with that.
Happy Coding!
lirm-math commentedon Dec 12, 2022