JanDeDobbeleer / oh-my-posh

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

Version 21.3.0 is not usable with VScode #5027

Closed sba923 closed 3 months ago

sba923 commented 3 months ago

Code of Conduct

What happened?

A recent update has introduced the following issue: the prompt generated by oh-my-posh isn't rendered properly by the VScode v2024.3.2 (pre-release) PowerShell extension:

image

Theme

{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "shell_integration": true, "blocks": [ { "alignment": "left", "segments": [ { "background": "#86e2f1", "foreground": "#2b2b2b", "leading_diamond": "\ue0b6", "style": "diamond", "type": "session" }, { "background": "#ff8c00", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "style": "folder" }, "style": "powerline", "type": "path" }, { "background": "#0077c2", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "mapped_shell_names": { "pwsh": "PS" } }, "style": "powerline", "type": "shell", "template": "{{ if ne .Shell \"pwsh\" }} {{ .Name }} {{ end }}" }, { "background": "#cf9e11", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "style": "powerline", "type": "text", "template": "{{ if .WSL }} {{ \"WSL\" }} {{ end }}" }, { "background": "#fffb38", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FF{{ end }}" ], "foreground": "#193549", "powerline_symbol": "\ue0b0", "properties": { "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true }, "style": "powerline", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "type": "dotnet" }, { "background_templates": [ "{{if contains \"default\" .Profile}}#FFA400{{end}}", "{{if contains \"jan\" .Profile}}#f1184c{{end}}" ], "foreground": "#ffffff", "background": "#ff2222", "powerline_symbol": "\ue0b0", "properties": { "display_default": false }, "style": "powerline", "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "type": "aws" }, { "background": "#ff0000", "foreground": "#ffff66", "powerline_symbol": "\ue0b0", "style": "powerline", "type": "root" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { "always_enabled": true }, "template": "\u231b{{ .FormattedMs }}\u2800", "powerline_symbol": "\ue0b0", "style":"powerline", "type": "executiontime" }, { "background": "#2e9599", "background_templates": [ "{{ if (ne .Code 0) }}#f1184c{{ end }}" ], "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "always_enabled": true, "status_template": "{{ if ne .Code 0 }}\uf071 ({{ if or (gt .Code 255) (lt .Code 0) }}{{ .Code | hresult }}{{ else }}{{.Code}}{{ end }}){{ else }}\uf00c{{ end }}", "status_separator": " " }, "style": "diamond", "trailing_diamond": "\ue0b4", "type": "status" } ], "type": "prompt" }, { "alignment": "right", "segments": [ { "background": "#f36943", "background_templates": [ "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], "foreground": "#ffffff", "leading_diamond": "\ue0b6", "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", "discharging_icon": "\ue231 " }, "style": "diamond", "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", "type": "battery" }, { "background": "#2e9599", "foreground": "#111111", "powerline_symbol": "\ue0b0", "style": "plain", "template": "<background,parentBackground>{{ if .Segments.Contains \"Battery\" }}\ue0b2{{ else }}\ue0b6{{ end }}</> {{ .CurrentDate | date .Format }} <background,transparent>\ue0b4</>", "type": "time" } ], "type": "rprompt" } ], "final_space": true, "version": 2, "console_title": true, "console_title_template": "{{ .Folder }}", "console_title_style": "template" }

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 21.3.0

Shell: pwsh (7.5.0-preview.3)

Prompt:

]133;D;0]133;A <REDACTED>@<REDACTED>  PowerShell  8.0.300 ⌛0ms⠀   ]133;B7                                                                                                                                   10:56:09 8

Segments:

ConsoleTitle(true)                         -   1 ms
Session(true)                              -   0 ms
Path(true)                                 -  69 ms
Shell(false)                               -   0 ms
Text(false)                                -   0 ms
Git(false)                                 -  88 ms
Node(false)                                -  71 ms
Dotnet(true)                               - 198 ms
Aws(false)                                 -   4 ms
Root(false)                                -   0 ms
Executiontime(true)                        -   0 ms
Status(true)                               -   0 ms
Battery(false)                             -   1 ms
Time(true)                                 -   0 ms

Run duration: 223.0085ms

Cache path: C:\Users\<REDACTED>\AppData\Local\oh-my-posh

Config path: S:\PowerShell\oh-my-posh\Themes\sba.json

Logs:

[DEBUG] 10:56:08.799 shell.go:Getenv:326 → vscode
[TRACE] 10:56:08.800 shell.go:Getenv(TERM_PROGRAM) - 1.0424ms
[DEBUG] 10:56:08.800 shell.go:Getenv:326 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 10:56:08.800 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:56:08.800 shell_windows.go:CachePath() - 512┬╡s
[DEBUG] 10:56:08.800 shell.go:Getenv:326 → S:\PowerShell\oh-my-posh\Themes\sba.json
[TRACE] 10:56:08.800 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 10:56:08.800 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 10:56:08.812 shell.go:Shell:609 → process name: pwsh.exe
[TRACE] 10:56:08.812 shell.go:Shell() - 11.6411ms
[TRACE] 10:56:08.812 shell.go:resolveConfigPath() - 11.6411ms
[TRACE] 10:56:08.812 shell.go:Init() - 13.1955ms
[TRACE] 10:56:08.812 shell.go:Flags() - 0s
[TRACE] 10:56:08.816 config.go:loadConfig() - 4.1025ms
[TRACE] 10:56:08.816 shell.go:Flags() - 0s
[TRACE] 10:56:08.816 shell.go:Shell() - 0s
[DEBUG] 10:56:08.816 shell.go:Getenv:326 → NO DATA
[TRACE] 10:56:08.816 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 10:56:08.816 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[TRACE] 10:56:08.816 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.816 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 10:56:08.817 shell.go:Shell() - 0s
[DEBUG] 10:56:08.817 shell.go:Getenv:326 → 7.5.0-preview.3
[TRACE] 10:56:08.817 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 10:56:08.817 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 10:56:08.817 text.go:Render:71 → Rendering template: {{ .Folder }}
[TRACE] 10:56:08.818 shell_windows.go:Root() - 0s
[TRACE] 10:56:08.818 shell.go:Shell() - 0s
[TRACE] 10:56:08.818 shell.go:StatusCodes() - 0s
[TRACE] 10:56:08.818 shell_windows.go:IsWsl() - 0s
[DEBUG] 10:56:08.818 shell.go:TemplateCache:782 → environment: [=::=::\ ACSetupSvcPort=23210 ACSvcPort=17532 ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\<REDACTED>\AppData\Roaming CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_39972_NHJTQSTNAGDGAVIY CLIENTNAME=FRGREL01412 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=<REDACTED> ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DIRSEP=\ DriverData=C:\Windows\System32\Drivers\DriverData EFC_7692=1 EnableLog=INFO HOME=s:/ HOMEDRIVE=C: HOMEPATH=\Users\<REDACTED> IGCCSVC_DB=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAhML2jBxku0+XtGAMu7TA/QQAAAACAAAAAAAQZgAAAAEAACAAAAClxC5X4eernjFatcQmEoVQ8O8RZhxAXfQyntP99h7pVwAAAAAOgAAAAAIAACAAAABnJrtGPgboLaduCDyM2+GEHBo85cEO7tcpkzeKU50aCmAAAACFGPOPpeq2cf2Ejnh9bq3kKh5/f8I+ZnDUSWunsPkwMqSD7XIrFb8/RlJpPSf+XUfPl3Z+ngBwx6cSe0sJ4KbCJTDVC3WIaHzyR18crXEFcIEzONnFJR9CDZD6XaLt4sNAAAAAQpVY9X/YZ6rOUhgMQe9HNNQoKTh6FFvW+gwRnTacVjVdDtpfOWGYoGMw9aQxXg4KsCEBTPipoVStejAlKm8kVA== JRE_HOME=C:\Program Files\Java\jre-1.8 LOCALAPPDATA=C:\Users\<REDACTED>\AppData\Local LOGONSERVER=\\<REDACTED> MOZ_PLUGIN_PATH=C:\Program Files (x86)\Kofax\PDFViewer\Bin\ NUMBER_OF_PROCESSORS=24 OneDrive=C:\Users\<REDACTED>\OneDrive OneDriveConsumer=C:\Users\<REDACTED>\OneDrive ORIGINAL_XDG_CURRENT_DESKTOP=undefined OS=Windows_NT Path=C:\Program Files\PowerShell\7-preview;C:\Program Files\Smart Projects\IsoBuster;c:\program files\imagemagick-7.1.1-q16-hdri;c:\program files (x86)\smart projects\isobuster;c:\program files (x86)\common files\oracle\java\java8path;c:\program files (x86)\common files\oracle\java\javapath;c:\program files\imagemagick-7.1.1-q16-hdri;c:\program files (x86)\pc connectivity solution\;c:\ruby32-x64\bin;c:\program files\imagemagick-7.1.1-q16-hdri;c:\program files\imagemagick-7.1.1-q16-hdri;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\windows\system32\openssh\;c:\program files\microsoft sql server\130\tools\binn\;c:\program files\microsoft sql server\150\tools\binn\;c:\program files\microsoft sql server\client sdk\odbc\170\tools\binn\;c:\program files\dotnet\;c:\program files\hp\common\hpdestplgin\;c:\program files (x86)\hp\common\hpdestplgin\;c:\program files (x86)\hp\idrsocr_15.5.1219.0\;c:\program files\hp\idrsocr_15.5.1219.0\;c:\program files (x86)\common files\divx shared\desktopservice;c:\program files (x86)\pico technology\picoscope6\;c:\program files\git\cmd;c:\program files (x86)\windows kits\10\windows performance toolkit\;C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershell\v1.0\;C:\Windows\system32\openssh\;c:\program files\git\cmd;c:\program files (x86)\hp\hp ocr\db_lib\;c:\program files\git\cmd;c:\program files\gs\gs10.02.1\bin;c:\program files\powershell\7\;c:\program files\git\cmd;c:\program files\powershell\7-preview\preview;c:\program files\git\cmd;C:\Users\<REDACTED>\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\<REDACTED>\AppData\Local\Programs\Python\Python312\;c:\usr\wbin;C:\Users\<REDACTED>\AppData\Local\Microsoft\WindowsApps;C:\Program Files\smartmontools\bin;C:\Users\<REDACTED>\.dotnet\tools;C:\Users\<REDACTED>\AppData\Local\Programs\oh-my-posh\bin;C:\Program Files\HP\Common\HPDestPlgIn\;C:\Program Files (x86)\HP\Common\HPDestPlgIn\;;s:/\bin\home;s:/\PowerShell\home;s:/\bin\home\windows;s:/\bin\work\windows;s:/\bin\work\windows\x86;s:/\bin\windows;s:/\bin\windows\x64;s:/\bin\windows\x86;s:/\bin;s:/\PowerShell PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW;.CPL PATHSEP=; POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=12 POSH_GIT_ENABLED=False POSH_INSTALLER=winget POSH_PID=8728 POSH_SHELL_VERSION=7.5.0-preview.3 POSH_THEME=S:\PowerShell\oh-my-posh\Themes\sba.json POSH_THEMES_PATH=C:\Users\<REDACTED>\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=PSES PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 183 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=b701 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSExecutionPolicyPreference=Bypass PSHOME=s:/ PSModulePath=C:\Users\<REDACTED>\OneDrive\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7-preview\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;c:\Users\<REDACTED>\.vscode\extensions\ms-vscode.powershell-2024.3.2\modules PSPlatform=Windows PUBLIC=C:\Users\Public PYTHONIOENCODING=UTF-8 RlsSvcPort=22112 SESSIONNAME=RDP-Tcp#0 SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\<REDACTED>\AppData\Local\Temp TMP=C:\Users\<REDACTED>\AppData\Local\Temp USERDOMAIN=<REDACTED> USERDOMAIN_ROAMINGPROFILE=<REDACTED> USERNAME=<REDACTED> USERPROFILE=C:\Users\<REDACTED> VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ 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:\Users\<REDACTED>\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass.sh VSCODE_GIT_ASKPASS_NODE=C:\Users\<REDACTED>\AppData\Local\Programs\Microsoft VS Code\Code.exe VSCODE_GIT_ASKPASS_EXTRA_ARGS= VSCODE_GIT_ASKPASS_MAIN=c:\Users\<REDACTED>\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\askpass-main.js VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-adbccaec63-sock]
[TRACE] 10:56:08.818 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 shell.go:Pwd:356 → S:\PowerShell
[TRACE] 10:56:08.819 shell.go:Pwd() - 508.3┬╡s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 shell.go:User:494 → <REDACTED>
[TRACE] 10:56:08.819 shell.go:User() - 0s
[DEBUG] 10:56:08.819 shell.go:Host:511 → <REDACTED>
[TRACE] 10:56:08.819 shell.go:Host() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[TRACE] 10:56:08.819 shell.go:Getenv(SHLVL) - 0s
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 508.3┬╡s
[TRACE] 10:56:08.819 shell.go:StatusCodes() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → 12
[TRACE] 10:56:08.819 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → 1
[TRACE] 10:56:08.819 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Shell() - 0s
[TRACE] 10:56:08.819 shell.go:Shell() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Path
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[TRACE] 10:56:08.819 shell.go:Shell() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Session
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[TRACE] 10:56:08.819 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[TRACE] 10:56:08.819 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Node
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Root
[DEBUG] 10:56:08.819 properties.go:GetString:28 → {{ if ne .Code 0 }} ({{ if or (gt .Code 255) (lt .Code 0) }}{{ .Code | hresult }}{{ else }}{{.Code}}{{ end }}){{ else }}{{ end }}
[DEBUG] 10:56:08.819 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[DEBUG] 10:56:08.819 properties.go:GetStringArray:52 → folders: []
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → home_enabled: false
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Status
[TRACE] 10:56:08.819 shell.go:StatusCodes() - 0s
[DEBUG] 10:56:08.819 properties.go:GetString:28 → files
[DEBUG] 10:56:08.819 text.go:Render:71 → Rendering template: {{ if ne .Code 0 }} ({{ if or (gt .Code 255) (lt .Code 0) }}{{ .Code | hresult }}{{ else }}{{.Code}}{{ end }}){{ else }}{{ end }}
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Text
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Dotnet
[DEBUG] 10:56:08.819 properties.go:GetStringArray:52 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json]
[DEBUG] 10:56:08.819 properties.go:GetStringArray:52 → folders: []
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → home_enabled: false
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[DEBUG] 10:56:08.819 properties.go:GetString:28 → files
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Shell
[TRACE] 10:56:08.819 shell_windows.go:Root() - 68.2┬╡s
[DEBUG] 10:56:08.819 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[pwsh:PS]
[TRACE] 10:56:08.819 shell.go:Shell() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 0s
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → display_default: false
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[TRACE] 10:56:08.819 shell.go:Flags() - 0s
[TRACE] 10:56:08.819 shell.go:Getenv(AWS_VAULT) - 0s
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[TRACE] 10:56:08.819 shell.go:Pwd() - 0s
[TRACE] 10:56:08.819 shell.go:Getenv(AWS_REGION) - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → always_enabled: true
[TRACE] 10:56:08.819 shell.go:Getenv(AWS_DEFAULT_REGION) - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:ExecutionTime() - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → NO DATA
[DEBUG] 10:56:08.819 segment.go:SetEnabled:533 → Segment: Git
[TRACE] 10:56:08.819 shell.go:Getenv(AWS_CONFIG_FILE) - 0s
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
→ threshold: 500.000000
[DEBUG] 10:56:08.819 properties.go:GetString:28 → austin
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 0s
[DEBUG] 10:56:08.819 shell.go:Getenv:326 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 10:56:08.819 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 10:56:08.819 properties.go:GetString:28 → 
[DEBUG] 10:56:08.819 properties.go:GetString:28 → 
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 properties.go:GetString:28 → ~
[DEBUG] 10:56:08.819 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[DEBUG] 10:56:08.819 properties.go:GetBool:22 → always_enabled: true
[TRACE] 10:56:08.819 shell.go:TemplateCache() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[DEBUG] 10:56:08.819 properties.go:GetString:28 → NO DATA
[DEBUG] 10:56:08.819 shell_windows.go:58 → s:/
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[DEBUG] 10:56:08.819 properties.go:GetString:28 → folder
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:GOOS() - 0s
[TRACE] 10:56:08.819 shell.go:PathSeparator() - 0s
[DEBUG] 10:56:08.820 properties.go:GetString:28 → NO DATA
[TRACE] 10:56:08.820 shell.go:PathSeparator() - 0s
[DEBUG] 10:56:08.820 properties.go:GetString:28 → \
[TRACE] 10:56:08.820 shell.go:Pwd() - 0s
[TRACE] 10:56:08.820 shell_windows.go:IsWsl() - 0s
[TRACE] 10:56:08.820 shell.go:StackCount() - 0s
[ERROR] 10:56:08.823 shell.go:FileContent:464 → open s://.aws/config: The system cannot find the path specified.
[TRACE] 10:56:08.823 shell.go:FileContent(s://.aws/config) - 3.6203ms
[DEBUG] 10:56:08.888 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:56:08.888 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 10:56:08.888 win32_windows.go:isWriteable:303 → current user is member of S-1-1-0
[DEBUG] 10:56:08.888 win32_windows.go:isWriteable:311 Γåô
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 10:56:08.888 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 10:56:08.888 shell_windows.go:DirIsWritable() - 68.3841ms
[TRACE] 10:56:08.888 shell.go:TemplateCache() - 0s
[DEBUG] 10:56:08.888 shell.go:HasFilesInDir:404 → true
[TRACE] 10:56:08.888 shell.go:HasFilesInDir(*.cs) - 69.4007ms
[DEBUG] 10:56:08.888 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 10:56:08.888 properties.go:GetBool:22 → cache_version: false
[DEBUG] 10:56:08.888 shell.go:Getenv:326 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 10:56:08.888 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 10:56:08.889 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.889 shell.go:HasFilesInDir(*.js) - 69.9171ms
[TRACE] 10:56:08.889 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.889 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.889 shell.go:HasFilesInDir(*.ts) - 0s
[TRACE] 10:56:08.889 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.889 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.889 shell.go:HasFilesInDir(package.json) - 0s
[TRACE] 10:56:08.889 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.890 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.890 shell.go:HasFilesInDir(.nvmrc) - 513.6┬╡s
[TRACE] 10:56:08.890 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.890 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.890 shell.go:HasFilesInDir(pnpm-workspace.yaml) - 0s
[TRACE] 10:56:08.890 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.890 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.890 shell.go:HasFilesInDir(.pnpmfile.cjs) - 0s
[TRACE] 10:56:08.890 shell.go:Pwd() - 0s
[DEBUG] 10:56:08.890 shell.go:HasFilesInDir:409 → false
[TRACE] 10:56:08.890 shell.go:HasFilesInDir(.vue) - 0s
[DEBUG] 10:56:08.905 shell.go:CommandPath:553 → c:\program files\dotnet\dotnet.exe
[TRACE] 10:56:08.905 shell.go:CommandPath(dotnet) - 16.4955ms
[TRACE] 10:56:08.905 shell.go:HasCommand(dotnet) - 16.4955ms
[DEBUG] 10:56:08.905 shell.go:CommandPath:553 → c:\program files\git\cmd\git.exe
[TRACE] 10:56:08.905 shell.go:CommandPath(git.exe) - 85.8962ms
[TRACE] 10:56:08.905 shell.go:HasCommand(git.exe) - 85.8962ms
[TRACE] 10:56:08.905 shell.go:Pwd() - 0s
[ERROR] 10:56:08.907 shell.go:HasParentFilePath:697 → CreateFile .git: The system cannot find the file specified.
[TRACE] 10:56:08.907 shell.go:HasParentFilePath(.git) - 2.3996ms
[DEBUG] 10:56:08.907 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 10:56:09.017 shell.go:RunCommand:531 → 8.0.300
[TRACE] 10:56:09.017 shell.go:RunCommand(dotnet --version) - 111.9124ms
[DEBUG] 10:56:09.017 properties.go:GetString:28 → https://github.com/dotnet/core/blob/master/release-notes/{{ .Major }}.{{ .Minor }}/{{ .Major }}.{{ .Minor }}.{{ substr 0 1 .Patch }}/{{ .Major }}.{{ .Minor }}.{{ substr 0 1 .Patch }}.md
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template: https://github.com/dotnet/core/blob/master/release-notes/{{ .Major }}.{{ .Minor }}/{{ .Major }}.{{ .Minor }}.{{ substr 0 1 .Patch }}/{{ .Major }}.{{ .Minor }}.{{ substr 0 1 .Patch }}.md
[TRACE] 10:56:09.017 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.017 shell.go:TemplateCache() - 0s
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}@{{ .HostName }} 
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template:  {{ .String }} 
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template:  {{ .Path }} 
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template: {{ if ne .Shell "pwsh" }} {{ .Name  }} {{ end }}
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template: {{ if .WSL }} {{ "WSL"  }} {{ end }}
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template: ⌛{{ .FormattedMs }}⠀
[DEBUG] 10:56:09.017 text.go:Render:71 → Rendering template:  {{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }} 
[TRACE] 10:56:09.017 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.017 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.017 shell.go:Shell() - 0s
[TRACE] 10:56:09.017 shell.go:Shell() - 0s
[TRACE] 10:56:09.018 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.018 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.018 shell.go:Shell() - 0s
[TRACE] 10:56:09.018 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.018 shell.go:Shell() - 0s
[TRACE] 10:56:09.018 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.019 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.019 shell.go:Shell() - 0s
[TRACE] 10:56:09.019 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.019 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.019 shell.go:Shell() - 0s
[TRACE] 10:56:09.019 shell.go:Shell() - 0s
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: diamond
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: powerline
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: {{ if (ne .Code 0) }}#f1184c{{ end }}
[TRACE] 10:56:09.019 shell.go:TemplateCache() - 0s
[DEBUG] 10:56:09.019 text.go:Render:71 → Rendering template: diamond
[TRACE] 10:56:09.019 shell.go:Shell() - 0s
[TRACE] 10:56:09.019 shell.go:Shell() - 0s
[TRACE] 10:56:09.019 shell.go:Shell() - 0s
[TRACE] 10:56:09.019 shell.go:Flags() - 0s
[TRACE] 10:56:09.019 shell.go:Flags() - 0s
[TRACE] 10:56:09.019 shell.go:Pwd() - 0s
[DEBUG] 10:56:09.019 shell_windows.go:58 → s:/
[TRACE] 10:56:09.019 shell.go:GOOS() - 0s
[DEBUG] 10:56:09.019 segment.go:SetEnabled:533 → Segment: Time
[DEBUG] 10:56:09.019 properties.go:GetString:28 → 15:04:05
[TRACE] 10:56:09.019 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.019 shell.go:Pwd() - 0s
[DEBUG] 10:56:09.019 shell_windows.go:58 → s:/
[TRACE] 10:56:09.019 shell.go:GOOS() - 0s
[DEBUG] 10:56:09.019 segment.go:SetEnabled:533 → Segment: Battery
[TRACE] 10:56:09.019 shell_windows.go:IsWsl() - 0s
[ERROR] 10:56:09.021 shell_windows_nix.go:BatteryState:15 → no battery
[TRACE] 10:56:09.021 shell_windows_nix.go:BatteryState() - 1.5395ms
[DEBUG] 10:56:09.021 text.go:Render:71 → Rendering template: <background,parentBackground>{{ if .Segments.Contains "Battery" }}{{ else }}{{ end }}</> {{ .CurrentDate | date .Format }} <background,transparent></>
[TRACE] 10:56:09.021 shell.go:TemplateCache() - 0s
[TRACE] 10:56:09.022 shell.go:Shell() - 0s
[DEBUG] 10:56:09.022 text.go:Render:71 → Rendering template: diamond
[DEBUG] 10:56:09.022 text.go:Render:71 → Rendering template: plain
[TRACE] 10:56:09.022 shell.go:Shell() - 0s
[TRACE] 10:56:09.022 shell.go:Flags() - 0s
[TRACE] 10:56:09.022 shell.go:Shell() - 0s
[TRACE] 10:56:09.022 shell.go:Shell() - 0s
[DEBUG] 10:56:09.022 shell_windows.go:TerminalWidth:111 → terminal width: 194
[TRACE] 10:56:09.022 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 10:56:09.022 shell.go:Getenv:326 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 10:56:09.022 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 10:56:09.022 shell_windows.go:CachePath() - 511.8┬╡s
[TRACE] 10:56:09.022 shell.go:Flags() - 0s
JanDeDobbeleer commented 3 months ago

This is a bug in vscode. They're working on it.

sba923 commented 3 months ago

Oh, good to know. Would you happen to have the VScode issue reference, by any chance?

JanDeDobbeleer commented 3 months ago

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

sba923 commented 3 months ago

Thanks for the link.

For those affected by the same issue: this workaround works for me: https://github.com/microsoft/vscode/issues/212130#issuecomment-2156087746

github-actions[bot] commented 3 days ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.