JanDeDobbeleer / oh-my-posh

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

Recalling a previous command via PSReadLine in VScode with oh-my-posh 19.18.0 is unusable if using the `executiontime` segment #4786

Closed sba923 closed 7 months ago

sba923 commented 7 months ago

Code of Conduct

What happened?

Since I added the executiontime segment to my custom theme, recalling and editing previous commands with PSReadLine within the VScode terminal has become... unusable.

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",
          "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: 19.18.0

Shell: pwsh (7.4.1)

Prompt:

]133;D;0]133;A <REDACTED>@FRGREL01412  PowerShell  8.0.202 ⌛0ms⠀   ]133;B7                                                          100  15:40:25 8

Segments:

ConsoleTitle(true)                         -   1 ms
Session(true)                              -   1 ms
Path(true)                                 -   2 ms
Shell(false)                               -   0 ms
Text(false)                                -   0 ms
Git(false)                                 -  14 ms
Node(false)                                -   2 ms
Dotnet(true)                               - 138 ms
Aws(false)                                 -   1 ms
Root(false)                                -   0 ms
Executiontime(true)                        -   0 ms
Status(true)                               -   1 ms
Battery(true)                              -   4 ms
Time(true)                                 -   0 ms

Run duration: 161.7707ms

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

Config path: C:\private_<REDACTED>\PowerShell\oh-my-posh\Themes\sba.json

Logs:

[DEBUG] 15:40:25.072 shell.go:Getenv:325 → vscode
[TRACE] 15:40:25.072 shell.go:Getenv(TERM_PROGRAM) - 598.4┬╡s
[DEBUG] 15:40:25.072 shell.go:Getenv:325 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 15:40:25.072 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 15:40:25.072 shell_windows.go:CachePath() - 0s
[DEBUG] 15:40:25.073 shell.go:Getenv:325 → C:\private_<REDACTED>\PowerShell\oh-my-posh\Themes\sba.json
[TRACE] 15:40:25.073 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 15:40:25.073 shell.go:Shell:593 → no shell name provided in flags, trying to detect it
[DEBUG] 15:40:25.084 shell.go:Shell:601 → process name: pwsh.exe
[TRACE] 15:40:25.084 shell.go:Shell() - 11.2177ms
[TRACE] 15:40:25.084 shell.go:resolveConfigPath() - 11.2177ms
[TRACE] 15:40:25.084 shell.go:Init() - 12.7348ms
[TRACE] 15:40:25.084 shell.go:Flags() - 0s
[TRACE] 15:40:25.085 config.go:loadConfig() - 580.7┬╡s
[TRACE] 15:40:25.085 shell.go:Flags() - 0s
[TRACE] 15:40:25.085 shell.go:Shell() - 0s
[DEBUG] 15:40:25.085 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.085 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 15:40:25.085 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[TRACE] 15:40:25.085 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.085 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC41B5A4A
[TRACE] 15:40:25.085 shell.go:Shell() - 0s
[DEBUG] 15:40:25.085 shell.go:Getenv:325 → 7.4.1
[TRACE] 15:40:25.085 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 15:40:25.085 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 15:40:25.085 text.go:Render:70 → Rendering template: {{ .Folder }}
[TRACE] 15:40:25.085 shell_windows.go:Root() - 73.5┬╡s
[TRACE] 15:40:25.085 shell.go:Shell() - 0s
[TRACE] 15:40:25.085 shell.go:StatusCodes() - 0s
[TRACE] 15:40:25.085 shell_windows.go:IsWsl() - 0s
[DEBUG] 15:40:25.086 shell.go:TemplateCache:774 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\<REDACTED>\AppData\Roaming CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_5544_PKCWFUXWHTRCBLYQ CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=FRGREL01412 ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DIRSEP=\ DriverData=C:\Windows\System32\Drivers\DriverData HOME=c:\private_<REDACTED> HOMEDRIVE=C: HOMEPATH=\Users\<REDACTED> IGCCSVC_DB=AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAdIH1b+4Jf0eEBLsS3kKv2wQAAAACAAAAAAAQZgAAAAEAACAAAAD3zUnvctuZx64sk+EcL8giZwUiXwEhdoY72019nx64xAAAAAAOgAAAAAIAACAAAABaCxK/YMSzyRQlw9o5f/t+ihzRi23MFigko3Qt7MXBxmAAAABg9+Rfh+uj3rhgn94cy9LRJU8zb0c/zynrqmX4c5X2I6wLgZ55sUg+QmWlz/HV/4Yl/u/JOgZxs7S6H3DrMMLIg8C72yLU1/ys4WAKA6WglpO2ruHkHE/ZXOOh7lxwKOtAAAAAKrDj1LS4BiG45u9wJ90xiafmmQ/2m0vkzxjKbcG3do8QWOvmeATkIecVO/zZKJVBfmb7OQTn2ZGom9nJRVAx9w== <REDACTED>_GLOBAL_PATH=C:\Users\<REDACTED>\AppData\Local\Programs\AXIUM Toolkit LOCALAPPDATA=C:\Users\<REDACTED>\AppData\Local LOGONSERVER=\\COSNADCTL17 NUMBER_OF_PROCESSORS=16 OneDrive=C:\Users\<REDACTED>\OneDrive - <REDACTED> Group OneDriveCommercial=C:\Users\<REDACTED>\OneDrive - <REDACTED> Group ORIGINAL_XDG_CURRENT_DESKTOP=undefined OS=Windows_NT Path=C:\Program Files\PowerShell\7;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Eclipse Adoptium\jdk-17.0.8.101-hotspot\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\nodejs\;C:\Program Files\dotnet\;C:\Program Files\gs\gs10.00.0\bin;C:\Program Files (x86)\gnupg\bin;C:\Program Files (x86)\Plantronics\Spokes3G\;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\WinGet\Links;C:\Program Files\PowerShell\7\;C:\Program Files\CMake\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Amazon\AWSCLIV2\;C:\Users\<REDACTED>\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\<REDACTED>\AppData\Local\Programs\Python\Python310\;C:\Users\<REDACTED>\AppData\Local\Microsoft\WindowsApps;c:\private_<REDACTED>\usr\wbin;;C:\Users\<REDACTED>\AppData\Local\Programs\oh-my-posh\bin;C:\Users\<REDACTED>\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\<REDACTED>\AppData\Roaming\npm;C:\Users\<REDACTED>\.dotnet\tools;C:\Users\<REDACTED>\.dotnet\tools;C:\Users\<REDACTED>\AppData\Local\Programs\AXIUM Toolkit;C:\Users\<REDACTED>\AppData\Local\Programs\Fiddler;C:\Users\<REDACTED>\.dotnet\tools;c:\private_<REDACTED>\bin\home;c:\private_<REDACTED>\bin\home\windows;c:\private_<REDACTED>\bin\work\windows;c:\private_<REDACTED>\bin\work\windows\x86;c:\private_<REDACTED>\bin\windows;c:\private_<REDACTED>\bin\windows\x64;c:\private_<REDACTED>\bin\windows\x86;c:\private_<REDACTED>\bin;c:\private_<REDACTED>\PowerShell;c:\private_<REDACTED>\PowerShell\work;c:\private_<REDACTED>\PowerShell\home PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL PATHSEP=; POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=41 POSH_GIT_ENABLED=False POSH_INSTALLER=winget POSH_PID=47532 POSH_SHELL_VERSION=7.4.1 POSH_THEME=C:\private_<REDACTED>\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 141 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=8d01 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSExecutionPolicyPreference=Bypass PSHOME=c:\private_<REDACTED> PSModulePath=C:\Users\<REDACTED>\OneDrive - <REDACTED> Group\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files (x86)\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\AutoIt3\AutoItX;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvPkgConverter;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\Sequencer\AppvSequencer;C:\Program Files (x86)\Windows Kits\10\Microsoft Application Virtualization\;c:\Users\<REDACTED>\.vscode\extensions\ms-vscode.powershell-2024.0.0\modules PSPlatform=Windows PUBLIC=C:\Users\Public PYTHONIOENCODING=UTF-8 SciTE_HOME=C:\ProgramData\SciTE SciTE_USERHOME=C:\Users\<REDACTED>\AppData\Roaming\SciTE SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\<REDACTED>\AppData\Local\Temp TMP=C:\Users\<REDACTED>\AppData\Local\Temp UATDATA=C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77 USERDNSDOMAIN=USR.<REDACTED>.LOC USERDOMAIN=USR<REDACTED> USERDOMAIN_ROAMINGPROFILE=USR<REDACTED> USERNAME=<REDACTED> USERPROFILE=C:\Users\<REDACTED> windir=C:\WINDOWS WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=fc33e400-8b96-491a-8679-32923e781837 ZES_ENABLE_SYSMAN=1 TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.87.2 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-ca8345a8f7-sock]
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.086 shell.go:Pwd:355 → C:\private_<REDACTED>\PowerShell
[TRACE] 15:40:25.086 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.086 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.086 shell.go:User:493 → <REDACTED>
[TRACE] 15:40:25.086 shell.go:User() - 0s
[DEBUG] 15:40:25.086 shell.go:Host:505 → FRGREL01412
[TRACE] 15:40:25.086 shell.go:Host() - 0s
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.086 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.086 shell.go:Getenv(SHLVL) - 0s
[TRACE] 15:40:25.086 shell.go:TemplateCache() - 1.2097ms
[TRACE] 15:40:25.086 shell.go:StatusCodes() - 0s
[TRACE] 15:40:25.086 shell.go:Flags() - 0s
[DEBUG] 15:40:25.086 shell.go:Getenv:325 → 41
[TRACE] 15:40:25.086 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 15:40:25.086 shell.go:Getenv:325 → 1
[TRACE] 15:40:25.086 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 15:40:25.086 shell.go:Flags() - 0s
[TRACE] 15:40:25.086 shell.go:Flags() - 0s
[TRACE] 15:40:25.086 shell.go:Shell() - 0s
[TRACE] 15:40:25.086 shell.go:Shell() - 0s
[TRACE] 15:40:25.086 shell.go:Flags() - 0s
[DEBUG] 15:40:25.086 properties.go:GetString:28 → {{ if ne .Code 0 }} ({{ if or (gt .Code 255) (lt .Code 0) }}{{ .Code | hresult }}{{ else }}{{.Code}}{{ end }}){{ else }}{{ end }}
[TRACE] 15:40:25.086 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.086 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[TRACE] 15:40:25.086 shell.go:Flags() - 0s
[DEBUG] 15:40:25.086 segment.go:SetEnabled:529 → Segment: Status
[TRACE] 15:40:25.086 shell.go:StatusCodes() - 0s
[DEBUG] 15:40:25.086 text.go:Render:70 → Rendering template: {{ if ne .Code 0 }} ({{ if or (gt .Code 255) (lt .Code 0) }}{{ .Code | hresult }}{{ else }}{{.Code}}{{ end }}){{ else }}{{ end }}
[TRACE] 15:40:25.086 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.086 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.086 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.086 segment.go:SetEnabled:529 → Segment: Git
[TRACE] 15:40:25.086 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Session
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Shell
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Node
[DEBUG] 15:40:25.087 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[pwsh:PS]
[TRACE] 15:40:25.087 shell.go:Shell() - 0s
[DEBUG] 15:40:25.087 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 15:40:25.087 properties.go:GetStringArray:52 → folders: []
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[DEBUG] 15:40:25.087 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Executiontime
[DEBUG] 15:40:25.087 properties.go:GetString:28 → files
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Text
[DEBUG] 15:40:25.087 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[TRACE] 15:40:25.087 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.087 properties.go:GetBool:22 → always_enabled: true
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:ExecutionTime() - 0s
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Aws
[DEBUG] 15:40:25.087 properties.go:GetFloat64:34 → threshold: 500.000000
[DEBUG] 15:40:25.087 properties.go:GetString:28 → austin
[TRACE] 15:40:25.087 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.087 properties.go:GetBool:22 → display_default: false
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 15:40:25.087 shell.go:Getenv(AWS_VAULT) - 0s
[TRACE] 15:40:25.087 shell.go:Getenv(LOCALAPPDATA) - 518.8┬╡s
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(AWS_DEFAULT_PROFILE) - 0s
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(AWS_PROFILE) - 0s
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(AWS_REGION) - 0s
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(AWS_DEFAULT_REGION) - 0s
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(AWS_CONFIG_FILE) - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(SSH_CONNECTION) - 518.8┬╡s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Path
[DEBUG] 15:40:25.087 shell.go:Getenv:325 → NO DATA
[TRACE] 15:40:25.087 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 15:40:25.087 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[TRACE] 15:40:25.087 shell.go:Shell() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 segment.go:SetEnabled:529 → Segment: Root
[DEBUG] 15:40:25.087 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 15:40:25.087 properties.go:GetString:28 → 
[DEBUG] 15:40:25.087 properties.go:GetString:28 → 
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.087 properties.go:GetString:28 → ~
[DEBUG] 15:40:25.087 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 15:40:25.087 shell_windows.go:Root() - 0s
[TRACE] 15:40:25.087 shell.go:Flags() - 0s
[TRACE] 15:40:25.087 shell.go:PathSeparator() - 0s
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[TRACE] 15:40:25.087 shell.go:GOOS() - 0s
[TRACE] 15:40:25.087 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.087 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.088 segment.go:SetEnabled:529 → Segment: Dotnet
[DEBUG] 15:40:25.088 properties.go:GetBool:22 → always_enabled: true
[TRACE] 15:40:25.088 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.088 properties.go:GetStringArray:52 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json]
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.088 properties.go:GetStringArray:52 → folders: []
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.088 properties.go:GetBool:22 → home_enabled: false
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[TRACE] 15:40:25.088 shell.go:Pwd() - 0s
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.088 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.088 properties.go:GetString:28 → files
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[TRACE] 15:40:25.088 shell.go:Pwd() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[DEBUG] 15:40:25.088 properties.go:GetString:28 → folder
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:GOOS() - 0s
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[DEBUG] 15:40:25.088 properties.go:GetString:28 → NO DATA
[TRACE] 15:40:25.088 shell.go:PathSeparator() - 0s
[DEBUG] 15:40:25.088 properties.go:GetString:28 → \
[TRACE] 15:40:25.088 shell.go:Pwd() - 0s
[TRACE] 15:40:25.088 shell_windows.go:IsWsl() - 0s
[TRACE] 15:40:25.088 shell.go:StackCount() - 0s
[DEBUG] 15:40:25.089 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.089 shell.go:HasFilesInDir(*.js) - 1.8564ms
[TRACE] 15:40:25.089 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.089 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.089 shell.go:HasFilesInDir(*.ts) - 0s
[DEBUG] 15:40:25.089 shell.go:HasFilesInDir:403 → true
[TRACE] 15:40:25.089 shell.go:HasFilesInDir(*.cs) - 1.2167ms
[DEBUG] 15:40:25.089 properties.go:GetBool:22 → fetch_version: true
[TRACE] 15:40:25.089 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.089 properties.go:GetBool:22 → cache_version: false
[DEBUG] 15:40:25.089 shell.go:Getenv:325 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 15:40:25.089 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 15:40:25.089 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.089 shell.go:HasFilesInDir(package.json) - 0s
[TRACE] 15:40:25.089 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-545
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:311 Γåô
    SYNCHRONIZE
    READ_CONTROL
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:303 → current user is member of S-1-5-11
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:311 Γåô
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:303 → current user is member of S-1-5-11
[DEBUG] 15:40:25.090 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.090 shell.go:HasFilesInDir(.nvmrc) - 541.9┬╡s
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:311 Γåô
    GENERIC_READ
    GENERIC_WRITE
    GENERIC_EXECUTE
    DELETE
[TRACE] 15:40:25.090 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.090 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 15:40:25.090 shell_windows.go:DirIsWritable() - 1.7586ms
[TRACE] 15:40:25.090 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.090 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.090 shell.go:HasFilesInDir(pnpm-workspace.yaml) - 0s
[TRACE] 15:40:25.090 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.090 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.090 shell.go:HasFilesInDir(.pnpmfile.cjs) - 0s
[TRACE] 15:40:25.090 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.090 shell.go:HasFilesInDir:408 → false
[TRACE] 15:40:25.090 shell.go:HasFilesInDir(.vue) - 0s
[DEBUG] 15:40:25.096 shell.go:CommandPath:545 → C:\Program Files\dotnet\dotnet.exe
[TRACE] 15:40:25.096 shell.go:CommandPath(dotnet) - 6.4113ms
[TRACE] 15:40:25.096 shell.go:HasCommand(dotnet) - 6.4113ms
[DEBUG] 15:40:25.101 shell.go:CommandPath:545 → C:\Program Files\Git\cmd\git.exe
[TRACE] 15:40:25.101 shell.go:CommandPath(git.exe) - 13.5657ms
[TRACE] 15:40:25.101 shell.go:HasCommand(git.exe) - 13.5657ms
[TRACE] 15:40:25.101 shell.go:Pwd() - 0s
[ERROR] 15:40:25.101 shell.go:HasParentFilePath:689 → CreateFile .git: The system cannot find the file specified.
[TRACE] 15:40:25.101 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 15:40:25.101 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 15:40:25.225 shell.go:RunCommand:523 → 8.0.202
[TRACE] 15:40:25.225 shell.go:RunCommand(dotnet --version) - 129.2273ms
[DEBUG] 15:40:25.225 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] 15:40:25.225 text.go:Render:70 → 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] 15:40:25.225 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.226 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.226 text.go:Render:70 → Rendering template:  {{ .String }} 
[DEBUG] 15:40:25.226 text.go:Render:70 → Rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}@{{ .HostName }} 
[DEBUG] 15:40:25.226 text.go:Render:70 → Rendering template:  {{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }} 
[DEBUG] 15:40:25.226 text.go:Render:70 → Rendering template: {{ if ne .Shell "pwsh" }} {{ .Name  }} {{ end }}
[DEBUG] 15:40:25.227 text.go:Render:70 → Rendering template:  {{ .Path }} 
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:Shell() - 0s
[DEBUG] 15:40:25.227 text.go:Render:70 → Rendering template: ⌛{{ .FormattedMs }}⠀
[DEBUG] 15:40:25.227 text.go:Render:70 → Rendering template: {{ if .WSL }} {{ "WSL"  }} {{ end }}
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:Shell() - 0s
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:Shell() - 0s
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:Shell() - 0s
[TRACE] 15:40:25.227 shell.go:Shell() - 0s
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.227 shell.go:Shell() - 0s
[TRACE] 15:40:25.228 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.228 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.228 shell.go:Shell() - 0s
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: diamond
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: powerline
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: {{ if (ne .Code 0) }}#f1184c{{ end }}
[TRACE] 15:40:25.228 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.228 text.go:Render:70 → Rendering template: diamond
[TRACE] 15:40:25.228 shell.go:Shell() - 0s
[TRACE] 15:40:25.228 shell.go:Shell() - 0s
[TRACE] 15:40:25.228 shell.go:Shell() - 0s
[TRACE] 15:40:25.228 shell.go:Flags() - 0s
[TRACE] 15:40:25.228 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.228 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.228 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.228 segment.go:SetEnabled:529 → Segment: Time
[DEBUG] 15:40:25.228 properties.go:GetString:28 → 15:04:05
[TRACE] 15:40:25.228 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.228 shell.go:Flags() - 0s
[TRACE] 15:40:25.228 shell.go:Pwd() - 0s
[DEBUG] 15:40:25.228 shell_windows.go:58 → c:\private_<REDACTED>
[TRACE] 15:40:25.228 shell.go:GOOS() - 0s
[DEBUG] 15:40:25.228 segment.go:SetEnabled:529 → Segment: Battery
[TRACE] 15:40:25.228 shell_windows.go:IsWsl() - 0s
[TRACE] 15:40:25.232 shell_windows_nix.go:BatteryState() - 3.8648ms
[DEBUG] 15:40:25.232 properties.go:GetString:28 →  
[TRACE] 15:40:25.233 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template: <background,parentBackground>{{ if .Segments.Contains "Battery" }}{{ else }}{{ end }}</> {{ .CurrentDate | date .Format }} <background,transparent></>
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template:  {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }} 
[TRACE] 15:40:25.233 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.233 shell.go:Shell() - 0s
[TRACE] 15:40:25.233 shell.go:TemplateCache() - 0s
[TRACE] 15:40:25.233 shell.go:Shell() - 0s
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template: {{if eq "Charging" .State.String}}#40c4ff{{end}}
[TRACE] 15:40:25.233 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template: {{if eq "Discharging" .State.String}}#ff5722{{end}}
[TRACE] 15:40:25.233 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template: {{if eq "Full" .State.String}}#4caf50{{end}}
[TRACE] 15:40:25.233 shell.go:TemplateCache() - 0s
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template: diamond
[DEBUG] 15:40:25.233 text.go:Render:70 → Rendering template: plain
[TRACE] 15:40:25.233 shell.go:Shell() - 0s
[TRACE] 15:40:25.233 shell.go:Flags() - 0s
[TRACE] 15:40:25.233 shell.go:Shell() - 0s
[TRACE] 15:40:25.233 shell.go:Shell() - 0s
[DEBUG] 15:40:25.233 shell_windows.go:TerminalWidth:111 → terminal width: 137
[TRACE] 15:40:25.233 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 15:40:25.233 shell.go:Getenv:325 → C:\Users\<REDACTED>\AppData\Local
[TRACE] 15:40:25.233 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 15:40:25.233 shell_windows.go:CachePath() - 0s
[TRACE] 15:40:25.233 shell.go:Flags() - 0s
JanDeDobbeleer commented 7 months ago

@sba923 does this happen outside of vscode? Because nothing changed on that end for a long time.

sba923 commented 7 months ago

No, it doesn't.

JanDeDobbeleer commented 7 months ago

Ok, so there no difference in what oh-my-posh does. VSCode however injects its own script when enabling shell integration, so disable that and see if the issue persists.

sba923 commented 7 months ago

What exact script are you referring to? Do you know how to disable it?

JanDeDobbeleer commented 7 months ago

It's this feature I'm referring to.

sba923 commented 7 months ago

I hate to say, but this doesn't solve the issue.

It seems to be theme-dependent.

The issue shows up as soon as I add this to my custom theme:

        {
          "background": "#83769c",
          "foreground": "#ffffff",
          "properties": {
            "always_enabled": true
          },
          "template": "\u231b{{ .FormattedMs }}\u2800",
          "powerline_symbol": "\ue0b0",
          "style":"powerline",
          "type": "executiontime"
        },

So (apologies, will edit the title and description of the issue), this is not related to a recent oh-my-posh change, but to me adding this to my theme.

sba923 commented 7 months ago

Current workaround in my profile.ps1, FWIW:

if ($host.Name -match 'Visual Studio Code Host')
{
    # VScode doesn't like oh-my-posh's "executiontime"
    Write-Host -ForegroundColor Yellow 'Creating temp oh-my-posh theme file for VScode'
    $theme = Get-Content ($env:PSHOME + '\PowerShell\oh-my-posh\Themes\sba.json') | ConvertFrom-Json
    $theme.blocks = $theme.blocks | Foreach-Object {
        $_.segments = $_.segments | Where-Object { $_.type -ne "executiontime" }
        $_
    }
    $themefile = Join-Path -Path $env:TEMP -ChildPath 'sba-no-executiontime_oh-my-posh_theme.json'
    $theme | ConvertTo-Json -Depth 10 | Out-File -LiteralPath $themefile
    oh-my-posh init pwsh --config $themefile | Invoke-Expression
}
else
{
    oh-my-posh init pwsh --config ($env:PSHOME + '\PowerShell\oh-my-posh\Themes\sba.json') | Invoke-Expression
}
JanDeDobbeleer commented 7 months ago

@sba923 the segment can't be the issue but the glyphs can. Try removing those from the template and see if the issue persists.

sba923 commented 7 months ago

Bingo! That same thought had occurred to be, BTW.

Replacing U+231B (Hourglass) with something else makes the problem disappear.

Now this could be a font issue (I'm using CaskadiaCove NF), an issue with the extension...

Given that it's VScode only, I'll file an issue at https://github.com/PowerShell/vscode-powershell/issues.

Changed my workaround to:

if ($host.Name -match 'Visual Studio Code Host')
{
    # VScode doesn't like the "hourglass" (U+231B) glyph
    Write-Host -ForegroundColor Yellow 'Creating temp oh-my-posh theme file for VScode'
    $theme = (Get-Content ($env:PSHOME + '\PowerShell\oh-my-posh\Themes\sba.json')) -replace '\\u231b', ""  | ConvertFrom-Json
    $themefile = Join-Path -Path $env:TEMP -ChildPath 'sba-no-hourglass_oh-my-posh_theme.json'
    $theme | ConvertTo-Json -Depth 10 | Out-File -LiteralPath $themefile
    oh-my-posh init pwsh --config $themefile | Invoke-Expression
}
else
{
    oh-my-posh init pwsh --config ($env:PSHOME + '\PowerShell\oh-my-posh\Themes\sba.json') | Invoke-Expression
}
JanDeDobbeleer commented 7 months ago

@sba923 closing this as we can't solve that here. It's definitely a terminal issue, nothing a font can solve.

sba923 commented 7 months ago

@sba923 closing this as we can't solve that here. It's definitely a terminal issue, nothing a font can solve.

Sure.

To be continued at https://github.com/PowerShell/vscode-powershell/issues/4948

github-actions[bot] commented 3 months 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.