microsoft / microsoft/vscode-java-debug

Extension appends malformed string to PATH

Open
#1,666 1 comment 0 reactions 1 assignee View on GitHub

@wenytang-ms is already working on this.

Since Aug 10, 2026.

ai-triaged bug
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

Having this extension installed breaks Git Graph.
Someone else has also reported this on the ratings page on Visual Studio Markteplace

The Git Graph shell outputs the following:

PS C:\Users\df\repos\simonegit> git rebase --interactive 5aa86aa181b6e698563d26909279fe2b7d4a7d75
git: Cannot find drive. A drive with the name '.c' does not exist.

The vscode-java-debug extension is appending
".c:\Users\df.vscode\extensions\vscjava.vscode-java-debug-0.59.0\bundled\scripts\noConfigScripts"
to the PATH of the powershell.

Hovering over the Tab in The Vscode Terminal Pane shows:

Process ID (PID): 92924

Command line: …\pwsh.exe -noexit -command 'try { . "c:\Users\df\AppData\Local\Programs\Microsoft VS Code\df53daabb1\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1" } catch {}'

Shell integration: Rich

 The following extensions want to relaunch the terminal to contribute to its environment:

vscjava.vscode-java-debug

The full terminal output for context:

PS C:\Users\df\repos\simonegit> git rebase --interactive 5aa86aa181b6e698563d26909279fe2b7d4a7d75
git: Cannot find drive. A drive with the name '.c' does not exist.
PS C:\Users\df\repos\simonegit> [System.Environment]::GetEnvironmentVariable("Path") -split ';'
C:\Program Files\WindowsApps\Microsoft.PowerShell_7.6.4.0_x64__8wekyb3d8bbwe
c:\Users\df\.vscode\extensions\vadimcn.vscode-lldb-1.12.2\bin
c:\Users\df\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\debugCommand
c:\Users\df\AppData\Roaming\Code\User\globalStorage\github.copilot-chat\copilotCli
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.3\bin\x64
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.3\bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Windows\System32\OpenSSH\
C:\Program Files\dotnet\
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
C:\Program Files\WireGuard\
C:\Program Files\PuTTY\
C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\
C:\Program Files\Docker\Docker\resources\bin
C:\Program Files\usbipd-win\
C:\Program Files\LLVM\bin
C:\Program Files\Graphviz\bin
C:\Program Files\Git\cmd
C:\Program Files\nodejs\
C:\Strawberry\perl\site\bin
C:\Strawberry\perl\bin
C:\Program Files\NVIDIA Corporation\Nsight Compute 2026.2.0\
C:\Program Files\CMake\bin
C:\Users\df\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\LocalCache\local-packages\Python313\Scripts\
C:\Users\df\AppData\Local\Programs\Python\Python312\Scripts\
C:\Users\df\AppData\Local\Programs\Python\Python312\
C:\Users\df\AppData\Local\Programs\Python\Launcher\
C:\Users\df\AppData\Local\Microsoft\WindowsApps
C:\Users\df\AppData\Local\Programs\Microsoft VS Code\bin
C:\Users\df\AppData\Local\Microsoft\WinGet\Packages\Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\df\AppData\Local\Microsoft\WinGet\Packages\Docker.DockerCompose_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\df\AppData\Local\Microsoft\WinGet\Packages\astral-sh.uv_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\df\.dotnet\tools
C:\Users\df\AppData\Roaming\npm
C:\Users\df\AppData\Local\Programs\MiKTeX\miktex\bin\x64\
C:\Users\df\.lmstudio\bin
C:\Users\df\AppData\Local\Microsoft\WinGet\Packages\ggml.llamacpp_Microsoft.Winget.Source_8wekyb3d8bbwe
C:\Users\df\AppData\Local\PowerToys\DSCModules\
C:\Users\df\AppData\Local\Microsoft\WinGet\Links
.c:\Users\df\.vscode\extensions\vscjava.vscode-java-debug-0.59.0\bundled\scripts\noConfigScripts

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.