Skip to content

Terminals started in a path with square brackets are not handled correctly #145441

Closed as not planned

Description

@lirm-math

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

Activity

  1. meganrogge commented on Mar 21, 2022

    @meganrogge
    Collaborator

    can you pls include a gif?

  2. lirm-math commented on Mar 21, 2022

    @lirm-math
    Author
  3. meganrogge commented on Mar 22, 2022

    @meganrogge
    Collaborator
  4. lirm-math commented on Mar 22, 2022

    @lirm-math
    Author

    Try https://gifcap.dev

    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.

  5. changed the title [-]Paths with Square-Brackets are not handled correctly[/-] [+]Terminals started in a paths with square brackets are not handled correctly[/+] on Mar 22, 2022
  6. added
    bugIssue identified by VS Code Team member as probable bug
    windowsVS Code on Windows issues
    terminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.
    and removed
    info-neededIssue requires more information from poster
    on Mar 22, 2022
  7. added this to the Backlog milestone on Mar 22, 2022
  8. changed the title [-]Terminals started in a paths with square brackets are not handled correctly[/-] [+]Terminals started in a path with square brackets are not handled correctly[/+] on Mar 23, 2022
  9. Tyriar commented on Dec 12, 2022

    @Tyriar
    Contributor

    Cannot repro:

    Image

  10. vscodenpa commented on Dec 12, 2022

    @vscodenpa

    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!

  11. lirm-math commented on Dec 12, 2022

    @lirm-math
    Author
  12. locked and limited conversation to collaborators on Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*not-reproducibleIssue cannot be reproduced by VS Code Team member as describedbugIssue identified by VS Code Team member as probable bugterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.windowsVS Code on Windows issues

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions