JanDeDobbeleer / oh-my-posh

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

An exception occurs when a multi-line command is very long #5446

Closed zsd2024 closed 1 month ago

zsd2024 commented 1 month ago

Code of Conduct

What happened?

   ~   ✔  17:56:11  ➜ ' -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> ' An exception occurred in the custom key handler. For detailed information, see $error: An exception occurred when calling "InvokePrompt" with "0" arguments: "The value must be greater than or equal to zero and must be less than the console buffer size in that dimension. Parameter name: top ❯ ' -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> -> '


`$error` 输出:
```powershell
An exception occurred when calling "InvokePrompt" with "0" arguments: "The value must be greater than or equal to zero and must be less than the console buffer size in that dimension.
Parameter name: top
The actual value was -62."
At line:179 char:13
+             [Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

Theme

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "version": 2,
  "final_space": true,
  "patch_pwsh_bleed": true,
  "blocks": [
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "os",
          "style": "diamond",
          "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ",
          "properties": {
            "macos": "mac"
          },
          "background": "7",
          "foreground": "232",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        },
        {
          "type": "path",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "template": " \uf115 {{ .PWD }} ",
          "properties": {
            "style": "folder"
          },
          "background": "4",
          "foreground": "254",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        },
        {
          "type": "git",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
          "properties": {
            "fetch_stash_count": true,
            "fetch_upstream_icon": true
          },
          "background": "#a2c4e0",
          "foreground": "#193549",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        },
        {
          "type": "node",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
          "background": "#6CA35E",
          "foreground": "#ffffff",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        },
        {
          "type": "root",
          "style": "powerline",
          "powerline_symbol": "\ue0b0",
          "template": " \uf0e7 ",
          "background": "#ffff66",
          "foreground": "#193549",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "right",
      "segments": [
        {
          "type": "status",
          "style": "diamond",
          "background_templates": [
            "{{ if gt .Code 0 }}1{{ end }}"
          ],
          "foreground_templates": [
            "{{ if gt .Code 0 }}3{{ end }}"
          ],
          "leading_diamond": "\ue0b2",
          "template": "{{ if gt .Code 0 }} {{ .Code }} \u2716{{ else }} \u2714 {{ end }}",
          "properties": {
            "always_enabled": true
          },
          "background": "0",
          "foreground": "2",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        },
        {
          "background": "7",
          "foreground": "0",
          "properties": {
            "time_format": "15:04:05 \ue641"
          },
          "leading_diamond": "\ue0b2",
          "style": "diamond",
          "template": " {{ .CurrentDate | date .Format }} ",
          "type": "time"
        }
      ]
    },
    {
      "type": "prompt",
      "alignment": "left",
      "segments": [
        {
          "type": "text",
          "style": "plain",
          "template": "➜ ",
          "foreground": "#007ACC",
          "Text": "",
          "Duration": 0,
          "NameLength": 0
        }
      ],
      "newline": true
    }
  ],
  "transient_prompt": {
    "foreground_templates": [
      "{{ if gt .Code 0 }}#f1184c{{ end }}"
    ],
    "foreground": "#007800",
    "template": " \u276f "
  },
  "secondary_prompt": {
    "background": "transparent",
    "foreground": "#ffffff",
    "template": "-> "
  }
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 23.6.2

Shell: powershell (5.1.22621.3958)

Prompt:

    D:\Codes\C++                                              ✔  18:07:23  
➜  

Segments:

ConsoleTitle(false)                       -   0 ms
Os(true)                                  -   0 ms
Path(true)                                -   2 ms
Status(true)                              -   0 ms
Time(true)                                -   0 ms
Text(true)                                -   0 ms

Run duration: 25.7311ms

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

Config path: D:\Codes\C++\my-theme.json

Logs:

[DEBUG] 18:07:23.372 debug.go:42 → debug mode enabled
[DEBUG] 18:07:23.383 debug.go:42 → plain mode enabled
[DEBUG] 18:07:23.383 terminal.go:Getenv:171 → C:\Users\great\AppData\Local        
[TRACE] 18:07:23.383 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:07:23.383 terminal_windows.go:CachePath() - 0s
[DEBUG] 18:07:23.383 terminal.go:70 → loading cache file: C:\Users\great\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 18:07:23.384 terminal.go:70 → loading cache key: upgrade_check
[TRACE] 18:07:23.384 terminal.go(C:\Users\great\AppData\Local\oh-my-posh\omp.cache) - 564.9µs
[DEBUG] 18:07:23.384 terminal.go:Getenv:171 → C:\Users\great\AppData\Local        
[TRACE] 18:07:23.384 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:07:23.384 terminal_windows.go:CachePath() - 0s
[DEBUG] 18:07:23.384 terminal.go:70 → loading cache file: C:\Users\great\AppData\Local\oh-my-posh\omp.cache.13720
[DEBUG] 18:07:23.384 terminal.go:70 → loading cache key: prompt_count_cache       
[DEBUG] 18:07:23.384 terminal.go:70 → loading cache key: template_cache
[TRACE] 18:07:23.384 terminal.go(C:\Users\great\AppData\Local\oh-my-posh\omp.cache.13720) - 0s
[DEBUG] 18:07:23.384 terminal.go:Getenv:171 → D:\Codes\C++\my-theme.json
[TRACE] 18:07:23.384 terminal.go:Getenv(POSH_THEME) - 0s
[DEBUG] 18:07:23.384 terminal.go:resolveConfigPath:99 → config set using POSH_THEME: D:\Codes\C++\my-theme.json
[TRACE] 18:07:23.384 terminal.go:resolveConfigPath() - 0s
[TRACE] 18:07:23.384 terminal.go:SetPromptCount() - 0s
[TRACE] 18:07:23.384 terminal.go:Init() - 12.1268ms
[TRACE] 18:07:23.384 terminal.go:Flags() - 0s
[TRACE] 18:07:23.385 load.go:loadConfig() - 1.7953ms
[TRACE] 18:07:23.385 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.385 debug.go:50 → terminal program: vscode
[DEBUG] 18:07:23.385 debug.go:50 → terminal shell: shell
[DEBUG] 18:07:23.385 terminal.go:Getenv:171 → NO DATA
[TRACE] 18:07:23.385 terminal.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 18:07:23.385 terminal_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.385 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.385 terminal_windows.go:WindowsRegistryKeyValue:226 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 18:07:23.385 terminal.go:Shell() - 0s
[DEBUG] 18:07:23.385 terminal.go:Getenv:171 → 5.1.22621.3958
[TRACE] 18:07:23.385 terminal.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 18:07:23.385 debug.go:PrintDebug:23 → segment: Title
[DEBUG] 18:07:23.385 text.go:Render:80 → rendering template:
[TRACE] 18:07:23.385 terminal.go:Flags() - 0s
[TRACE] 18:07:23.385 terminal.go:Shell() - 0s
[DEBUG] 18:07:23.385 terminal.go:Getenv:171 → 1
[TRACE] 18:07:23.385 terminal.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 18:07:23.385 terminal.go:Getenv:171 → 1
[TRACE] 18:07:23.385 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 18:07:23.385 terminal.go:Flags() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.387 terminal.go:Pwd:201 → D:\Codes\C++
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 segment.go:SetEnabled:115 → segment: Root
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.387 segment.go:SetEnabled:115 → segment: Os
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 os.go:Enabled:34 → 
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 segment.go:SetEnabled:115 → segment: Git
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal_windows.go:Root() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal_windows.go:Root() - 0s
[TRACE] 18:07:23.387 terminal.go:Shell() - 0s
[TRACE] 18:07:23.387 terminal.go:StatusCodes() - 0s
[DEBUG] 18:07:23.387 segment.go:SetEnabled:115 → segment: Path
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.387 terminal.go:Getenv:171 → C:\Users\great\AppData\Local        
[DEBUG] 18:07:23.387 path.go:128 → display_cygpath: false
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:PathSeparator() - 0s
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:Shell() - 0s
[DEBUG] 18:07:23.387 segment.go:SetEnabled:115 → segment: Node
[TRACE] 18:07:23.387 terminal.go:Shell() - 0s
[TRACE] 18:07:23.387 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.387 path.go:replaceMappedLocations:514 → mapped_locations_enabled: true
[DEBUG] 18:07:23.387 path.go:replaceMappedLocations:515 → 
[DEBUG] 18:07:23.387 path.go:replaceMappedLocations:516 → 
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 path.go:replaceMappedLocations:517 → ~
[DEBUG] 18:07:23.387 language.go:Enabled:109 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[DEBUG] 18:07:23.387 language.go:Enabled:110 → folders: []
[DEBUG] 18:07:23.387 language.go:Enabled:117 → home_enabled: false
[DEBUG] 18:07:23.387 path.go:replaceMappedLocations:522 → mapped_locations: map[] 
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[DEBUG] 18:07:23.387 language.go:Enabled:129 → files
[DEBUG] 18:07:23.387 node.go:loadContext:56 → fetch_package_manager: false        
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 terminal.go:TemplateCache:660 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\great\AppData\Roaming CHROME_CRASHPAD_PIPE_NAME=\\.\pipe\crashpad_5276_ATQTALIVECMRCMRX CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(Arm)=C:\Program Files (Arm)\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=WIN11-ARM ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DriverData=C:\Windows\System32\Drivers\DriverData EFC_6056=1 HOMEDRIVE=C: HOMEPATH=\Users\great LOCALAPPDATA=C:\Users\great\AppData\Local LOGONSERVER=\\WIN11-ARM MSYS2=D:\Greens\msys2 NUMBER_OF_PROCESSORS=8 OneDrive=C:\Users\great\OneDrive OneDriveConsumer=C:\Users\great\OneDrive ORIGINAL_XDG_CURRENT_DESKTOP=undefined OS=Windows_NT Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\great\AppData\Local\Programs\Python\Python311-arm64\Scripts\;C:\Users\great\AppData\Local\Programs\Python\Python311-arm64\;C:\Users\great\AppData\Local\Microsoft\WindowsApps;C:\Users\great\AppData\Local\Programs\Microsoft VS Code\bin;D:\Greens\msys2\ucrt64\bin;;C:\Users\great\AppData\Local\Programs\oh-my-posh\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=1 POSH_INSTALLER=manual POSH_PID=13720 POSH_SHELL_VERSION=5.1.22621.3958 POSH_THEME=D:\Codes\C++\my-theme.json POSH_THEMES_PATH=C:\Users\great\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=ARM64 PROCESSOR_IDENTIFIER=ARMv8 (64-bit) Family 8 Model 805 Revision D0E, Qualcomm Technologies Inc PROCESSOR_LEVEL=2053 PROCESSOR_REVISION=0d0e ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(Arm)=C:\Program Files (Arm) ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\great\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\great\AppData\Local\Temp TMP=C:\Users\great\AppData\Local\Temp USERDOMAIN=WIN11-ARM USERDOMAIN_ROAMINGPROFILE=WIN11-ARM USERNAME=great USERPROFILE=C:\Users\great windir=C:\WINDOWS TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.92.1 LANG=zh_CN.UTF-8 COLORTERM=truecolor VSCODE_INJECTION=1]
[TRACE] 18:07:23.387 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.387 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.387 terminal_windows.go:IsWsl() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 terminal.go:User:339 → great
[TRACE] 18:07:23.387 terminal.go:User() - 0s
[DEBUG] 18:07:23.387 terminal.go:Host:356 → Win11-ARM
[TRACE] 18:07:23.387 terminal.go:Host() - 0s
[TRACE] 18:07:23.387 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.387 terminal.go:Getenv:171 → NO DATA
[TRACE] 18:07:23.387 terminal.go:Getenv(SHLVL) - 0s
[TRACE] 18:07:23.387 terminal.go:TemplateCache() - 689.5µs
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.388 path.go:makeFolderFormatMap:838 → NO DATA
[DEBUG] 18:07:23.388 path.go:setStyle:195 → folder
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.388 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:HasFilesInDir(*.js) - 1.4861ms
[TRACE] 18:07:23.388 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.388 path.go:colorizePath:712 → cycle: []
[DEBUG] 18:07:23.388 path.go:getFolderSeparator:250 → NO DATA
[DEBUG] 18:07:23.388 path.go:getFolderSeparator:252 → \
[DEBUG] 18:07:23.388 path.go:colorizePath:715 → cycle_folder_separator: false     
[DEBUG] 18:07:23.388 path.go:colorizePath:716 → %s
[DEBUG] 18:07:23.388 path.go:colorizePath:718 → %s
[DEBUG] 18:07:23.388 path.go:colorizePath:719 → %s
[DEBUG] 18:07:23.388 path.go:colorizePath:720 → %s
[DEBUG] 18:07:23.388 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.388 terminal.go:HasFilesInDir(*.ts) - 0s
[TRACE] 18:07:23.388 terminal.go:Pwd() - 0s
[TRACE] 18:07:23.388 terminal.go:TemplateCache() - 0s
[TRACE] 18:07:23.388 terminal.go:GOOS() - 0s
[TRACE] 18:07:23.388 terminal.go:StackCount() - 0s
[TRACE] 18:07:23.388 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.388 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.388 terminal.go:HasFilesInDir(package.json) - 0s
[TRACE] 18:07:23.388 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.388 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.388 terminal.go:HasFilesInDir(.nvmrc) - 0s
[TRACE] 18:07:23.388 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.389 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.389 terminal.go:HasFilesInDir(pnpm-workspace.yaml) - 564.8µs     
[TRACE] 18:07:23.389 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.389 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.389 terminal.go:HasFilesInDir(.pnpmfile.cjs) - 0s
[TRACE] 18:07:23.389 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.389 terminal.go:HasFilesInDir:254 → false
[TRACE] 18:07:23.389 terminal.go:HasFilesInDir(.vue) - 58.9µs
[DEBUG] 18:07:23.389 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 18:07:23.389 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 18:07:23.389 win32_windows.go:isWriteable:313 → user has write access     
[TRACE] 18:07:23.389 terminal_windows.go:DirIsWritable() - 1.2753ms
[TRACE] 18:07:23.389 terminal.go:TemplateCache() - 0s
[ERROR] 18:07:23.393 terminal.go:CommandPath:402 → The system cannot find the file specified.
[TRACE] 18:07:23.393 terminal.go:CommandPath(git.exe) - 6.4743ms
[TRACE] 18:07:23.393 terminal.go:HasCommand(git.exe) - 6.4743ms
[DEBUG] 18:07:23.393 text.go:Render:80 → rendering template:   {{ .PWD }}        
[TRACE] 18:07:23.393 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.393 text.go:Render:80 → rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}}
[TRACE] 18:07:23.393 terminal.go:Flags() - 0s
[TRACE] 18:07:23.393 terminal.go:TemplateCache() - 0s
[TRACE] 18:07:23.393 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.393 text.go:Render:80 → rendering template: powerline
[TRACE] 18:07:23.393 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.393 text.go:Render:80 → rendering template: powerline
[TRACE] 18:07:23.393 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.393 text.go:Render:80 → rendering template: powerline
[TRACE] 18:07:23.393 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.393 text.go:Render:80 → rendering template: diamond
[TRACE] 18:07:23.393 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.394 text.go:Render:80 → rendering template: powerline
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.394 terminal.go:Shell() - 0s
[TRACE] 18:07:23.394 terminal.go:Shell() - 0s
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.394 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.394 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.394 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.394 status.go:Init:53 → {{ .Code }}
[DEBUG] 18:07:23.394 segment.go:SetEnabled:115 → segment: Time
[TRACE] 18:07:23.394 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.394 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.394 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.394 time.go:Enabled:29 → 15:04:05 
[DEBUG] 18:07:23.394 segment.go:SetEnabled:115 → segment: Status
[TRACE] 18:07:23.394 terminal.go:TemplateCache() - 0s
[TRACE] 18:07:23.394 terminal.go:StatusCodes() - 0s
[DEBUG] 18:07:23.394 text.go:Render:80 → rendering template: {{ .Code }}
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.394 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.394 status.go:Enabled:42 → always_enabled: true
[TRACE] 18:07:23.394 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.394 text.go:Render:80 → rendering template:  {{ .CurrentDate | date .Format }}
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.394 text.go:Render:80 → rendering template: {{ if gt .Code 0 }} {{ .Code }} ✖{{ else }} ✔ {{ end }}
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.394 terminal.go:TemplateCache() - 0s
[TRACE] 18:07:23.394 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.394 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}1{{ end }}
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.394 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.394 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}3{{ end }}
[TRACE] 18:07:23.394 terminal.go:Flags() - 0s
[TRACE] 18:07:23.395 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.395 text.go:Render:80 → rendering template: diamond
[TRACE] 18:07:23.395 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.395 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}1{{ end }}
[TRACE] 18:07:23.395 terminal.go:Flags() - 0s
[TRACE] 18:07:23.396 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.396 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}3{{ end }}
[TRACE] 18:07:23.396 terminal.go:Flags() - 0s
[TRACE] 18:07:23.397 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.397 text.go:Render:80 → rendering template: diamond
[TRACE] 18:07:23.397 terminal.go:Flags() - 0s
[DEBUG] 18:07:23.397 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}1{{ end }}
[TRACE] 18:07:23.397 terminal.go:Flags() - 0s
[TRACE] 18:07:23.397 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.397 terminal_windows.go:TerminalWidth:116 → terminal width: 82   
[TRACE] 18:07:23.397 terminal_windows.go:TerminalWidth() - 617.4µs
[TRACE] 18:07:23.397 terminal.go:Shell() - 0s
[TRACE] 18:07:23.397 terminal.go:Shell() - 0s
[TRACE] 18:07:23.397 terminal.go:Flags() - 0s
[TRACE] 18:07:23.397 terminal.go:Pwd() - 0s
[DEBUG] 18:07:23.397 terminal_windows.go:58 → C:\Users\great
[TRACE] 18:07:23.397 terminal.go:GOOS() - 0s
[DEBUG] 18:07:23.397 segment.go:SetEnabled:115 → segment: Text
[TRACE] 18:07:23.397 terminal.go:TemplateCache() - 0s
[DEBUG] 18:07:23.397 text.go:Render:80 → rendering template: ➜
[TRACE] 18:07:23.397 terminal.go:Flags() - 0s
[TRACE] 18:07:23.397 terminal.go:Shell() - 0s
[DEBUG] 18:07:23.397 text.go:Render:80 → rendering template: plain
[TRACE] 18:07:23.397 terminal.go:Flags() - 0s
[TRACE] 18:07:23.397 terminal.go:Shell() - 0s
[TRACE] 18:07:23.397 terminal.go:Shell() - 0s
[TRACE] 18:07:23.397 terminal.go:Shell() - 0s
[DEBUG] 18:07:23.397 terminal.go:Getenv:171 → C:\Users\great\AppData\Local        
[TRACE] 18:07:23.397 terminal.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:07:23.397 terminal_windows.go:CachePath() - 0s
[TRACE] 18:07:23.397 terminal.go:Flags() - 0s
JanDeDobbeleer commented 1 month ago

@zsd2024 update PSReadLine, or create a bug on their end if the issue persists. Nothing we can solve about that on our end.