microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.18k stars 28.84k forks source link

Extra Path Output prints in terminal #211721

Closed dbrocha closed 5 months ago

dbrocha commented 5 months ago

Type: Bug

When debugging a python file, the environment activation code/debug run script appear in the terminal "& 'C:\Users\" etc. As of a recent update, now the path prints again like this in the terminal buffer: "C:\x5cUsers\x5c" etc.

This closed issue pointed me to a workaround of adding "terminal.integrated.shellIntegration.enabled": false to my settings.json which fixed the issue.

https://github.com/microsoft/vscode/issues/173243

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-1270P (16 x 2496)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.61GB (3.80GB free)| |Process Argv|--folder-uri file:///c%3A/Users/qxn9003/source/CradleDataEngineering --crash-reporter-id 2fd8f9d0-5985-4488-b1a7-a0314af2f579| |Screen Reader|no| |VM|0%|
Extensions (83) Extension|Author (truncated)|Version ---|---|--- vscode-sql-formatter|adp|1.4.4 vscode-icontheme-nomo-dark|be5|1.3.6 github-markdown-preview|bie|0.3.0 markdown-checkbox|bie|0.4.0 markdown-emoji|bie|0.3.0 markdown-footnotes|bie|0.1.1 markdown-mermaid|bie|1.22.0 markdown-preview-github-styles|bie|2.0.4 markdown-yaml-preamble|bie|0.1.0 catppuccin-vsc|Cat|3.14.0 catppuccin-vsc-icons|Cat|1.11.0 vscode-markdownlint|Dav|0.55.0 githistory|don|0.6.20 python-environment-manager|don|1.2.4 python-extension-pack|don|1.7.0 vscode-default-python-kernel|don|0.0.1 xml|Dot|2.5.1 vscode-great-icons|emm|2.1.104 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.6.0 prettier-vscode|esb|10.4.0 copilot-labs|Git|0.17.1121 todo-tree|Gru|0.0.226 prettier-sql-vscode|inf|1.6.0 latex-workshop|Jam|9.20.1 dupchecker|jia|0.1.7 hive-sql|jos|0.0.4 vscode-position|jtr|1.1.2 keen-neutral-icon-theme|kee|1.0.8 vsc-python-indent|Kev|1.18.0 vscode-fix-checksums|leh|1.1.0 MagicPython|mag|1.1.0 rainbow-csv|mec|3.11.0 git-graph|mhu|1.30.0 theme-monokai-pro-vscode|mon|1.3.2 vscode-docker|ms-|1.29.0 csdevkit|ms-|1.4.29 csharp|ms-|2.23.15 vscode-dotnet-runtime|ms-|2.0.3 vscodeintellicode-csharp|ms-|2.0.25 data-workspace-vscode|ms-|0.5.0 mssql|ms-|1.22.1 sql-bindings-vscode|ms-|0.4.0 debugpy|ms-|2024.4.0 isort|ms-|2023.10.1 python|ms-|2024.4.1 vscode-pylance|ms-|2024.4.1 datawrangler|ms-|1.0.0 jupyter|ms-|2024.4.2024041101 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-ai|ms-|0.48.0 vscode-ai-remote|ms-|0.48.0 vscode-jupyter-cell-tags|ms-|0.1.9 vscode-jupyter-slideshow|ms-|0.1.6 remote-containers|ms-|0.354.0 remote-ssh|ms-|0.111.2024040515 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.88.0 vscode-remote-extensionpack|ms-|0.25.0 live-server|ms-|0.4.13 remote-explorer|ms-|0.4.3 remote-server|ms-|1.5.1 sublime-keybindings|ms-|4.1.10 autodocstring|njp|0.6.1 bigquery-syntax-highlight|pen|0.0.2 material-icon-theme|PKi|5.1.0 r-debugger|RDe|0.5.4 r|REd|2.8.2 synthwave-vscode|Rob|0.1.15 todotasks|san|0.5.0 markdown-preview-enhanced|shd|0.8.13 markdowntable|Tak|0.11.0 open-in-browser|tec|2.0.0 unity-tools|Tob|1.2.12 latex-support|tor|3.10.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vstuc|vis|1.0.1 vscode-icons|vsc|12.7.0 gitblame|wad|10.10.0 markdown-all-in-one|yzh|3.6.2 material-theme|zhu|3.17.2 (11 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 dsvsc021:30996838 bdiig495:31013172 pythoncenvpt:31022790 ```
meganrogge commented 5 months ago

This issue seems to originate from an upstream component and is not something VSCode can fix by making a change to our code. As such, I will go ahead and close it. Please try to reproduce in Windows Terminal and report to microsoft/terminal with repro steps.

If you cannot reproduce in Windows Terminal, chances are it's fixed in a later version of Windows. You can read more about how we consume conpty here. Thanks for understanding.

/label upstream terminal-conpty windows

kan1xx commented 5 months ago

I have exactly the same problem! I have no idea how to fix this. it appeared just like that, although everything was fine before. Tell me, have you already corrected this error? if yes, how?

shyney7 commented 4 months ago

I opened an issue in the windows terminal repo since Im getting the same error since the new update of vscode. https://github.com/microsoft/terminal/issues/17381

zadjii-msft commented 4 months ago

This does look exactly like #214386 to me though. Looks like it's not an upstream terminal issue. Try disabling terminal.integrated.shellIntegration ☺️

shyney7 commented 3 months ago

Relevant vscode Issue (June Milestone): https://github.com/microsoft/vscode/issues/211922