JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.68k stars 2.34k forks source link

Weird phenomenon in VSCode Terminal #5029

Closed teddythinh closed 3 months ago

teddythinh commented 3 months ago

Code of Conduct

What happened?

When I press Ctrl + C in my terminal in the VSCode, it gets this line, and I cannot get rid of it even though I have killed the terminal.

image

It's still normal when I use Windows Terminal.

Theme

JanDeDobbeleer

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

oh-my-posh debug --plain

Version: 21.3.0

Shell: oh-my-posh (7.4.2)

Prompt:

 Admin    Code   0ms⠀  

Segments:

ConsoleTitle(true)                         -   1 ms
Session(true)                              -   0 ms
Path(true)                                 -   2 ms
Git(false)                                 -   4 ms
Node(false)                                -   1 ms
Go(false)                                  -   1 ms
Julia(false)                               -   0 ms
Python(false)                              -   0 ms
Ruby(false)                                -   0 ms
Azfunc(false)                              -   0 ms
Aws(false)                                 -   0 ms
Root(false)                                -   0 ms
Executiontime(true)                        -   0 ms
Status(true)                               -   1 ms
Shell(true)                                -   0 ms
Ytm(false)                                 -   2 ms
Battery(true)                              -   2 ms
Time(true)                                 -   0 ms

Run duration: 16.0901ms

Cache path: C:\Users\Admin\AppData\Local\oh-my-posh

Config path: C:\Users\Admin\.config\powershell\teddy.omp.json

Logs:

[DEBUG] 01:30:04.076 shell.go:Getenv:326 → vscode
[TRACE] 01:30:04.076 shell.go:Getenv(TERM_PROGRAM) - 1.4992ms
[DEBUG] 01:30:04.076 shell.go:Getenv:326 → C:\Users\Admin\AppData\Local
[TRACE] 01:30:04.076 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 01:30:04.076 shell_windows.go:CachePath() - 0s
[DEBUG] 01:30:04.076 shell.go:Getenv:326 → C:\Users\Admin\.config\powershell\teddy.omp.json
[TRACE] 01:30:04.076 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 01:30:04.077 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 01:30:04.080 shell.go:Shell:609 → process name: oh-my-posh.exe
[TRACE] 01:30:04.080 shell.go:Shell() - 4.0093ms
[TRACE] 01:30:04.080 shell.go:resolveConfigPath() - 4.0093ms
[TRACE] 01:30:04.080 shell.go:Init() - 5.5085ms
[TRACE] 01:30:04.080 shell.go:Flags() - 0s
[TRACE] 01:30:04.081 config.go:loadConfig() - 502.5µs
[TRACE] 01:30:04.081 shell.go:Flags() - 0s
[DEBUG] 01:30:04.081 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.081 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 01:30:04.082 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[TRACE] 01:30:04.082 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.082 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC46B69D6
[TRACE] 01:30:04.082 shell.go:Shell() - 0s
[DEBUG] 01:30:04.082 shell.go:Getenv:326 → 7.4.2
[TRACE] 01:30:04.082 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 01:30:04.082 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 01:30:04.083 text.go:Render:71 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 01:30:04.083 shell_windows.go:Root() - 0s
[TRACE] 01:30:04.083 shell.go:Shell() - 0s
[TRACE] 01:30:04.083 shell.go:StatusCodes() - 0s
[TRACE] 01:30:04.083 shell_windows.go:IsWsl() - 0s
[DEBUG] 01:30:04.083 shell.go:TemplateCache:782 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Admin\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133484982205307737 CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_2852_AVXULTUVNIFGWINZ CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=TEDDY ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DriverData=C:\Windows\System32\Drivers\DriverData GIT_INSTALL_ROOT=C:\Users\Admin\scoop\apps\git\current GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe HOMEDRIVE=C: HOMEPATH=\Users\Admin LOCALAPPDATA=C:\Users\Admin\AppData\Local LOGONSERVER=\\TEDDY NUMBER_OF_PROCESSORS=8 NVM_HOME=C:\Users\Admin\AppData\Roaming\nvm NVM_SYMLINK=C:\Program Files\nodejs OneDrive=C:\Users\Admin\OneDrive OneDriveConsumer=C:\Users\Admin\OneDrive ORIGINAL_XDG_CURRENT_DESKTOP=undefined OS=Windows_NT Path=C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet\;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files\PowerShell\7\;C:\Users\Admin\.pyenv\pyenv-win\bin;C:\Users\Admin\.pyenv\pyenv-win\shims;C:\Users\Admin\scoop\shims;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;D:\Program\nvm;D:\Program;C:\Users\Admin\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\Admin\.bun\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=10 POSH_GIT_ENABLED=True POSH_PID=8948 POSH_SHELL_VERSION=7.4.2 POSH_THEME=C:\Users\Admin\.config\powershell\teddy.omp.json POSH_THEMES_PATH=C:\Users\Admin\scoop\apps\oh-my-posh\current\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Home Single Language PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 140 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=8c01 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\Admin\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Users\Admin\scoop\modules;C:\Users\Admin\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public PYENV=C:\Users\Admin\.pyenv\pyenv-win\ PYENV_HOME=C:\Users\Admin\.pyenv\pyenv-win\ PYENV_ROOT=C:\Users\Admin\.pyenv\pyenv-win\ SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\Admin\AppData\Local\Temp TMP=C:\Users\Admin\AppData\Local\Temp USERDOMAIN=TEDDY USERDOMAIN_ROAMINGPROFILE=TEDDY USERNAME=Admin USERPROFILE=C:\Users\Admin windir=C:\Windows ZES_ENABLE_SYSMAN=1 TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.90.0 LANG=en_US.UTF-8 COLORTERM=truecolor GIT_ASKPASS=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh VSCODE_GIT_ASKPASS_NODE=C:\Program Files\Microsoft VS Code\Code.exe VSCODE_GIT_ASKPASS_EXTRA_ARGS= VSCODE_GIT_ASKPASS_MAIN=c:\Program Files\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-ef65f2f017-sock VSCODE_INJECTION=1]
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.083 shell.go:Pwd:356 → D:\Code
[TRACE] 01:30:04.083 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.083 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[TRACE] 01:30:04.083 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.083 shell.go:User:494 → Admin
[TRACE] 01:30:04.083 shell.go:User() - 0s
[DEBUG] 01:30:04.084 shell.go:Host:511 → Teddy
[TRACE] 01:30:04.084 shell.go:Host() - 498.8µs
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.084 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.084 shell.go:Getenv(SHLVL) - 0s
[TRACE] 01:30:04.084 shell.go:TemplateCache() - 498.8µs
[DEBUG] 01:30:04.084 shell.go:Getenv:326 → 10
[TRACE] 01:30:04.084 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 01:30:04.084 shell.go:Getenv:326 → 1
[TRACE] 01:30:04.084 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Shell() - 0s
[TRACE] 01:30:04.084 shell.go:Shell() - 0s
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.084 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[DEBUG] 01:30:04.084 segment.go:SetEnabled:533 → Segment: Session
[DEBUG] 01:30:04.084 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.084 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 01:30:04.084 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.084 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 01:30:04.084 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.084 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.084 shell_windows.go:58 → C:\Users\Admin
[DEBUG] 01:30:04.084 segment.go:SetEnabled:533 → Segment: Path
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.084 segment.go:SetEnabled:533 → Segment: Git
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Shell() - 0s
[TRACE] 01:30:04.084 shell.go:Shell() - 0s
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.084 shell.go:Getenv:326 → C:\Users\Admin\AppData\Local
[TRACE] 01:30:04.084 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.084 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.084 segment.go:SetEnabled:533 → Segment: Go
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.084 properties.go:GetString:28 → {{ .Code }}
[TRACE] 01:30:04.084 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.084 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.084 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.084 segment.go:SetEnabled:533 → Segment: Status
[TRACE] 01:30:04.084 shell.go:StatusCodes() - 0s
[DEBUG] 01:30:04.084 shell_windows.go:58 → C:\Users\Admin
[DEBUG] 01:30:04.084 properties.go:GetBool:22 → mapped_locations_enabled: true
[TRACE] 01:30:04.084 shell.go:Flags() - 0s
[DEBUG] 01:30:04.085 segment.go:SetEnabled:533 → Segment: Aws
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 properties.go:GetBool:22 → display_default: false
[DEBUG] 01:30:04.085 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 segment.go:SetEnabled:533 → Segment: Python
[TRACE] 01:30:04.085 shell.go:Getenv(AWS_VAULT) - 0s
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[DEBUG] 01:30:04.085 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.085 shell.go:Getenv(AWS_DEFAULT_PROFILE) - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 01:30:04.085 shell.go:Getenv:326 → NO DATA
[DEBUG] 01:30:04.085 segment.go:SetEnabled:533 → Segment: Julia
[TRACE] 01:30:04.085 shell.go:Getenv(AWS_PROFILE) - 0s
[DEBUG] 01:30:04.085 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 01:30:04.085 properties.go:GetStringArray:52 → extensions: [*.jl]
[DEBUG] 01:30:04.085 shell.go:Getenv:326 → NO DATA
[DEBUG] 01:30:04.085 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 01:30:04.085 properties.go:GetString:28 → 
[DEBUG] 01:30:04.085 properties.go:GetStringArray:52 → folders: []
[TRACE] 01:30:04.085 shell.go:Getenv(AWS_REGION) - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[DEBUG] 01:30:04.085 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.085 shell.go:Getenv(AWS_DEFAULT_REGION) - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[DEBUG] 01:30:04.085 shell.go:Getenv:326 → NO DATA
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 properties.go:GetString:28 → files
[TRACE] 01:30:04.085 shell.go:Getenv(AWS_CONFIG_FILE) - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 properties.go:GetString:28 → ~
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[DEBUG] 01:30:04.085 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(host.json) - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(*.go) - 0s
[TRACE] 01:30:04.085 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(local.settings.json) - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(go.mod) - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(function.json) - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 properties.go:GetBool:22 → always_enabled: true
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 segment.go:SetEnabled:533 → Segment: Node
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 properties.go:GetStringArray:52 → folders: []
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(*.rb) - 0s
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[DEBUG] 01:30:04.085 properties.go:GetBool:22 → home_enabled: false
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[DEBUG] 01:30:04.085 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(Rakefile) - 0s
[DEBUG] 01:30:04.085 properties.go:GetString:28 → files
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(*.py) - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[DEBUG] 01:30:04.085 properties.go:GetBool:22 → fetch_package_manager: false
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(Gemfile) - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(*.jl) - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(pyproject.toml) - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(*.js) - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(venv.bak) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(*.ts) - 0s
[ERROR] 01:30:04.085 shell.go:FileContent:464 → open C:\Users\Admin/.aws/config: The system cannot find the path specified. 
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:FileContent(C:\Users\Admin/.aws/config) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(package.json) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFolder:438 → false
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:HasFolder(.venv) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(.nvmrc) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFolder:438 → false
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[TRACE] 01:30:04.085 shell.go:HasFolder(venv) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFolder:438 → false
[TRACE] 01:30:04.085 shell.go:HasFolder(virtualenv) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(.pnpmfile.cjs) - 0s
[DEBUG] 01:30:04.085 shell.go:HasFolder:438 → false
[TRACE] 01:30:04.085 shell.go:HasFolder(venv-win) - 0s
[TRACE] 01:30:04.085 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.085 shell.go:HasFilesInDir:409 → false
[DEBUG] 01:30:04.085 shell.go:HasFolder:438 → false
[TRACE] 01:30:04.085 shell.go:HasFolder(pyenv-win) - 0s
[TRACE] 01:30:04.085 shell.go:HasFilesInDir(.vue) - 0s
[DEBUG] 01:30:04.085 properties.go:GetString:28 → NO DATA
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[TRACE] 01:30:04.085 shell.go:PathSeparator() - 0s
[DEBUG] 01:30:04.085 properties.go:GetString:28 → folder
[TRACE] 01:30:04.085 shell.go:GOOS() - 0s
[TRACE] 01:30:04.086 shell.go:GOOS() - 0s
[TRACE] 01:30:04.086 shell.go:GOOS() - 0s
[TRACE] 01:30:04.086 shell.go:GOOS() - 0s
[TRACE] 01:30:04.086 shell.go:GOOS() - 0s
[TRACE] 01:30:04.086 shell.go:GOOS() - 0s
[TRACE] 01:30:04.086 shell.go:PathSeparator() - 0s
[DEBUG] 01:30:04.086 properties.go:GetString:28 → NO DATA
[TRACE] 01:30:04.086 shell.go:PathSeparator() - 0s
[DEBUG] 01:30:04.086 properties.go:GetString:28 →  
[TRACE] 01:30:04.086 shell.go:Pwd() - 0s
[TRACE] 01:30:04.086 shell_windows.go:IsWsl() - 0s
[TRACE] 01:30:04.086 shell.go:StackCount() - 0s
[DEBUG] 01:30:04.086 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 01:30:04.086 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 01:30:04.086 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 01:30:04.086 shell_windows.go:DirIsWritable() - 499.8µs
[TRACE] 01:30:04.086 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.087 shell.go:CommandPath:553 → C:\Users\Admin\scoop\shims\git.exe
[TRACE] 01:30:04.087 shell.go:CommandPath(git.exe) - 3.4997ms
[TRACE] 01:30:04.087 shell.go:HasCommand(git.exe) - 3.4997ms
[TRACE] 01:30:04.087 shell.go:Pwd() - 0s
[ERROR] 01:30:04.088 shell.go:HasParentFilePath:697 → CreateFile .git: The system cannot find the file specified.
[TRACE] 01:30:04.088 shell.go:HasParentFilePath(.git) - 1.0025ms
[DEBUG] 01:30:04.088 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template:  {{ .UserName }}
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template:    {{ .Path }}
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: <transparent></>  {{ .FormattedMs }}⠀
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: <parentBackground></> 
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.088 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: diamond
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: plain
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: {{ if gt .Code 0 }}#e91e63{{ end }}
[TRACE] 01:30:04.088 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.088 text.go:Render:71 → Rendering template: diamond
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:Flags() - 0s
[TRACE] 01:30:04.088 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.088 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.088 shell.go:Flags() - 0s
[TRACE] 01:30:04.088 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.088 segment.go:SetEnabled:533 → Segment: Time
[TRACE] 01:30:04.088 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.088 properties.go:GetString:28 → 15:04:05
[TRACE] 01:30:04.088 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.088 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.088 shell.go:GOOS() - 0s
[TRACE] 01:30:04.088 shell.go:Flags() - 0s
[DEBUG] 01:30:04.088 segment.go:SetEnabled:533 → Segment: Ytm
[TRACE] 01:30:04.088 shell.go:Flags() - 0s
[TRACE] 01:30:04.088 shell.go:Pwd() - 0s
[DEBUG] 01:30:04.088 properties.go:GetString:28 → http://127.0.0.1:9863
[DEBUG] 01:30:04.088 properties.go:GetInt:40 → api_url: 20
[DEBUG] 01:30:04.088 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.088 shell.go:Pwd() - 0s
[TRACE] 01:30:04.088 shell.go:GOOS() - 0s
[DEBUG] 01:30:04.088 shell_windows.go:58 → C:\Users\Admin
[TRACE] 01:30:04.088 shell.go:Shell() - 0s
[TRACE] 01:30:04.088 shell.go:GOOS() - 0s
[TRACE] 01:30:04.088 shell.go:Flags() - 0s
[DEBUG] 01:30:04.088 segment.go:SetEnabled:533 → Segment: Battery
[TRACE] 01:30:04.088 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.091 shell.go:HTTPRequest:653 ↓
    GET /query HTTP/1.1
    Host: 127.0.0.1:9863
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[TRACE] 01:30:04.091 shell_windows_nix.go:BatteryState() - 2.5895ms
[DEBUG] 01:30:04.091 properties.go:GetString:28 → 
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[ERROR] 01:30:04.091 shell.go:HTTPRequest:657 → Get "http://127.0.0.1:9863/query": dial tcp 127.0.0.1:9863: connectex: No connection could be made because the target machine actively refused it.
[TRACE] 01:30:04.091 shell.go:HTTPRequest(http://127.0.0.1:9863/query) - 2.5895ms
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template:  {{ .CurrentDate | date .Format }}
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template:  {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: <#0077c2,transparent></>  {{ .Name }} <transparent,#0077c2></>
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: plain
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: {{if eq "Charging" .State.String}}#40c4ff{{end}}
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: {{if eq "Discharging" .State.String}}#ff5722{{end}}
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: {{if eq "Full" .State.String}}#4caf50{{end}}
[TRACE] 01:30:04.091 shell.go:TemplateCache() - 0s
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: powerline
[DEBUG] 01:30:04.091 text.go:Render:71 → Rendering template: diamond
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[TRACE] 01:30:04.091 shell.go:Flags() - 0s
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[TRACE] 01:30:04.091 shell.go:Shell() - 0s
[DEBUG] 01:30:04.091 shell.go:Getenv:326 → C:\Users\Admin\AppData\Local
[TRACE] 01:30:04.091 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 01:30:04.091 shell_windows.go:CachePath() - 0s
[TRACE] 01:30:04.091 shell.go:Flags() - 0s
howmanysmall commented 3 months ago

this has also been happening to me, really weird thing to come back to

diego5f5 commented 3 months ago

any solution?

JanDeDobbeleer commented 3 months ago

@howmanysmall this is a bug in vscode, they are working on it.

JanDeDobbeleer commented 3 months ago

Disable shell integrations in vscode.

aodendaal commented 3 months ago

Disable shell integrations in Preferences > Settings and restart VSCode

yapancha commented 3 months ago

Disabling the shell integration does not help in my case.

"terminal.integrated.shellIntegration.enabled": false,
"terminal.integrated.shellIntegration.decorationsEnabled": "never",
user-pc1 >  \x1b7                                                                                                                                                                             \x1b[38\x3b2\x3b255\x3b64\x3b64m\x1b[0m\x1b[48\x3b2\x3b255\x3b64\x3b64m\x1b[38\x3b2\x3b255\x3b255\x3b255m  \x1b[0m\x1b[38\x3b2\x3b255\x3b64\x3b64m\x1b[0m\x1b[38\x3b2\x3b47\x3b47\x3b47m\x1b[0m\x1b[48\x3b2\x3b47\x3b47\x3b47m\x1b[38\x3b2\x3b250\x3b250\x3b250m 596ms \x1b[0m\x1b8
JanDeDobbeleer commented 3 months ago

@yapancha did you restart vscode? Either way, it's their responsibility.

JeffJacobson commented 3 months ago

Disabling the shell integration does not help in my case.

"terminal.integrated.shellIntegration.enabled": false,
"terminal.integrated.shellIntegration.decorationsEnabled": "never",
user-pc1 >  \x1b7                                                                                                                                                                             \x1b[38\x3b2\x3b255\x3b64\x3b64m\x1b[0m\x1b[48\x3b2\x3b255\x3b64\x3b64m\x1b[38\x3b2\x3b255\x3b255\x3b255m  \x1b[0m\x1b[38\x3b2\x3b255\x3b64\x3b64m\x1b[0m\x1b[38\x3b2\x3b47\x3b47\x3b47m\x1b[0m\x1b[48\x3b2\x3b47\x3b47\x3b47m\x1b[38\x3b2\x3b250\x3b250\x3b250m 596ms \x1b[0m\x1b8

This is just more FYI, not a fix for your issue.

I only had to change one setting.

{
  "terminal.integrated.shellIntegration.enabled": false
}

However, also tried setting the "...decorationsEnabled" as you did to see if I could reproduce the issue you're having, but I could not.

JeffJacobson commented 3 months ago

@yapancha did you restart vscode? Either way, it's their responsibility.

I did not even have to restart VSCode, just disable shellIntegration. So there's something unique to @yapancha's setup that the rest of us don't have.

I hope the VSCode people fix their issue soon. It definitely started with their most recent update.

JanDeDobbeleer commented 3 months ago

@JeffJacobson I hope so too or else I'll be forced to send in my hours for compensation 😅

JanDeDobbeleer commented 2 months ago

relates to https://github.com/microsoft/vscode/issues/211922