JanDeDobbeleer / oh-my-posh

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

Funky formatting and pws errors #4532

Closed xRedCrystalx closed 10 months ago

xRedCrystalx commented 10 months ago

Code of Conduct

What happened?

I have 2 issues.

One issue is when I try to load any theme or just execute . $PROFILE, I get powershell error:

Get-PSReadLineKeyHandler : A parameter cannot be found that matches parameter name 'Key'.
At line:465 char:43
+             if ((Get-PSReadLineKeyHandler -Key Spacebar).Function -eq ...
+                                           ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-PSReadLineKeyHandler], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.GetKeyHandlerCommand

Get-PSReadLineKeyHandler : A parameter cannot be found that matches parameter name 'Key'.
At line:468 char:43
+             if ((Get-PSReadLineKeyHandler -Key Enter).Function -eq 'O ...
+                                           ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-PSReadLineKeyHandler], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.GetKeyHandlerCommand

Get-PSReadLineKeyHandler : A parameter cannot be found that matches parameter name 'Key'.
At line:471 char:43
+             if ((Get-PSReadLineKeyHandler -Key Ctrl+c).Function -eq ' ...
+                                           ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-PSReadLineKeyHandler], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.GetKeyHandlerCommand

Second Issue is with custom formatting. Sometimes formatting just dies:

image to: image

AND by resizing console window, everything gets funky. Normal: image

when resized: image image

Theme

Every

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 19.2.1

Shell: powershell (5.1.22621.2506)

Prompt:

 domen   ~   
Segments:

ConsoleTitle(true)                        -   0 ms
Session(true)                             -   0 ms
Path(true)                                -   1 ms
Git(false)                                -   6 ms
Root(false)                               -   0 ms
Status(true)                              -   0 ms
Node(false)                               -   0 ms
Go(false)                                 -   0 ms
Python(false)                             -   0 ms
Shell(true)                               -   0 ms
Time(true)                                -   0 ms

Run duration: 23.0193ms

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

Config path: no --config set, using default built-in configuration

Logs:

[DEBUG] 22:10:45.955 shell.go:Getenv:399 → NO DATA
[TRACE] 22:10:45.955 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 22:10:45.955 shell.go:Getenv:399 → C:\Users\domen\AppData\Local
[TRACE] 22:10:45.955 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:10:45.956 shell_windows.go:CachePath() - 0s
[DEBUG] 22:10:45.960 shell.go:Getenv:399 → NO DATA
[TRACE] 22:10:45.960 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 22:10:45.960 shell.go:resolveConfigPath:319 → No config set, fallback to default config
[TRACE] 22:10:45.960 shell.go:resolveConfigPath() - 0s
[TRACE] 22:10:45.960 shell.go:Init() - 4.5032ms
[TRACE] 22:10:45.960 shell.go:Flags() - 0s
[DEBUG] 22:10:45.960 config.go:loadConfig:129 → no config file specified, using default
[TRACE] 22:10:45.960 config.go:loadConfig() - 500.6µs
[TRACE] 22:10:45.960 shell.go:Flags() - 0s
[DEBUG] 22:10:45.960 shell.go:Getenv:399 → NO DATA
[TRACE] 22:10:45.960 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 22:10:45.960 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[TRACE] 22:10:45.960 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.960 shell_windows.go:WindowsRegistryKeyValue:215 → ColorizationColor(DWORD): 0xC4FF0004
[DEBUG] 22:10:45.960 shell.go:Shell:662 → no shell name provided in flags, trying to detect it
[DEBUG] 22:10:45.971 shell.go:Shell:670 → process name: powershell.exe
[TRACE] 22:10:45.971 shell.go:Shell() - 10.5092ms
[DEBUG] 22:10:45.971 shell.go:Getenv:399 → 5.1.22621.2506
[TRACE] 22:10:45.971 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 22:10:45.971 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 22:10:45.971 text.go:Render:70 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 22:10:45.971 shell_windows.go:Root() - 0s
[TRACE] 22:10:45.971 shell.go:Shell() - 0s
[TRACE] 22:10:45.971 shell.go:StatusCodes() - 0s
[TRACE] 22:10:45.971 shell_windows.go:IsWsl() - 0s
[DEBUG] 22:10:45.971 shell.go:TemplateCache:843 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\domen\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133414159019687803 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=RED ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2 CUDA_PATH_V12_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2 DriverData=C:\Windows\System32\Drivers\DriverData EFC_11236=1 HOMEDRIVE=C: HOMEPATH=\Users\domen LOCALAPPDATA=C:\Users\domen\AppData\Local LOGONSERVER=\\RED NUMBER_OF_PROCESSORS=24 OneDrive=C:\Users\domen\OneDrive OneDriveConsumer=C:\Users\domen\OneDrive OS=Windows_NT Path=C:\Program Files (x86)\VMware\VMware Player\bin\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.2\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\PuTTY\;C:\Program Files\Mullvad VPN\resources;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\Nsight Compute 2023.2.2\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\domen\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\domen\AppData\Local\Programs\Python\Python312\;C:\Users\domen\AppData\Local\Microsoft\WindowsApps;;C:\Users\domen\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\domen\AppData\Roaming\npm;C:\Users\domen\AppData\Local\Programs\oh-my-posh\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=34 POSH_GIT_ENABLED=False POSH_INSTALLER=manual POSH_PID=31072 POSH_SHELL_VERSION=5.1.22621.2506 POSH_THEMES_PATH=C:\Users\domen\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 25 Model 33 Stepping 2, AuthenticAMD PROCESSOR_LEVEL=25 PROCESSOR_REVISION=2102 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\domen\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\domen\AppData\Local\Temp TMP=C:\Users\domen\AppData\Local\Temp USERDOMAIN=RED USERDOMAIN_ROAMINGPROFILE=RED USERNAME=domen USERPROFILE=C:\Users\domen windir=C:\Windows]
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.971 shell.go:Pwd:429 → C:\Users\domen
[TRACE] 22:10:45.971 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.971 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.971 shell.go:User:564 → domen
[TRACE] 22:10:45.971 shell.go:User() - 0s
[DEBUG] 22:10:45.971 shell.go:Host:576 → Red
[TRACE] 22:10:45.971 shell.go:Host() - 0s
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.971 shell.go:Getenv:399 → NO DATA
[TRACE] 22:10:45.971 shell.go:Getenv(SHLVL) - 0s
[TRACE] 22:10:45.971 shell.go:TemplateCache() - 0s
[DEBUG] 22:10:45.971 shell.go:Getenv:399 → 34
[TRACE] 22:10:45.971 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 22:10:45.971 shell.go:Getenv:399 → 1
[TRACE] 22:10:45.971 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[TRACE] 22:10:45.971 shell.go:Shell() - 0s
[TRACE] 22:10:45.971 shell.go:Shell() - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[TRACE] 22:10:45.971 shell.go:Pwd() - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[TRACE] 22:10:45.971 shell.go:Flags() - 0s
[DEBUG] 22:10:45.971 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.971 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.971 properties.go:GetString:28 → {{ .Code }}
[TRACE] 22:10:45.971 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.972 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:Pwd() - 0s
[TRACE] 22:10:45.972 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.972 segment.go:SetEnabled:512 → Segment: Status
[DEBUG] 22:10:45.972 segment.go:SetEnabled:512 → Segment: Session
[TRACE] 22:10:45.972 shell.go:StatusCodes() - 0s
[DEBUG] 22:10:45.972 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.972 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.972 text.go:Render:70 → Rendering template: {{ .Code }}
[DEBUG] 22:10:45.972 shell.go:Getenv:399 → NO DATA
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 22:10:45.972 segment.go:SetEnabled:512 → Segment: Git
[DEBUG] 22:10:45.972 shell.go:Getenv:399 → NO DATA
[DEBUG] 22:10:45.972 segment.go:SetEnabled:512 → Segment: Root
[TRACE] 22:10:45.972 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 22:10:45.972 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.972 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.972 segment.go:SetEnabled:512 → Segment: Path
[TRACE] 22:10:45.972 shell.go:Pwd() - 0s
[TRACE] 22:10:45.972 shell.go:Shell() - 0s
[TRACE] 22:10:45.972 shell.go:Shell() - 0s
[TRACE] 22:10:45.972 shell.go:Flags() - 0s
[TRACE] 22:10:45.972 shell_windows.go:Root() - 0s
[DEBUG] 22:10:45.972 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 22:10:45.972 properties.go:GetString:28 → 
[DEBUG] 22:10:45.972 properties.go:GetString:28 → 
[DEBUG] 22:10:45.972 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.972 properties.go:GetString:28 → ~
[DEBUG] 22:10:45.972 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 22:10:45.972 shell.go:PathSeparator() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:TemplateCache() - 0s
[DEBUG] 22:10:45.972 properties.go:GetBool:22 → always_enabled: true
[TRACE] 22:10:45.972 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:PathSeparator() - 0s
[TRACE] 22:10:45.972 shell.go:PathSeparator() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:PathSeparator() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:PathSeparator() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:GOOS() - 0s
[TRACE] 22:10:45.972 shell.go:PathSeparator() - 0s
[TRACE] 22:10:45.972 shell.go:Pwd() - 0s
[TRACE] 22:10:45.972 shell_windows.go:IsWsl() - 0s
[TRACE] 22:10:45.972 shell.go:StackCount() - 0s
[DEBUG] 22:10:45.973 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 22:10:45.973 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 22:10:45.973 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 22:10:45.973 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 22:10:45.973 shell_windows.go:DirIsWritable() - 1.0003ms
[TRACE] 22:10:45.973 shell.go:TemplateCache() - 0s
[DEBUG] 22:10:45.977 shell.go:CommandPath:615 → C:\Program Files\Git\cmd\git.exe
[TRACE] 22:10:45.977 shell.go:CommandPath(git.exe) - 5.0036ms
[TRACE] 22:10:45.977 shell.go:HasCommand(git.exe) - 5.0036ms
[TRACE] 22:10:45.977 shell.go:Pwd() - 0s
[ERROR] 22:10:45.977 shell.go:HasParentFilePath:758 → CreateFile .git: The system cannot find the file specified.
[TRACE] 22:10:45.977 shell.go:HasParentFilePath(.git) - 500.4µs
[DEBUG] 22:10:45.977 properties.go:GetBool:22 → fetch_bare_info: false
[DEBUG] 22:10:45.977 text.go:Render:70 → Rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}
[DEBUG] 22:10:45.977 text.go:Render:70 → Rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }}
[DEBUG] 22:10:45.977 text.go:Render:70 → Rendering template:   {{ path .Path .Location }}
[TRACE] 22:10:45.977 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.977 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.977 shell.go:Shell() - 0s
[TRACE] 22:10:45.977 shell.go:Shell() - 0s
[TRACE] 22:10:45.977 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.977 shell.go:Shell() - 0s
[DEBUG] 22:10:45.977 text.go:Render:70 → Rendering template: diamond
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: powerline
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 22:10:45.978 shell.go:TemplateCache() - 0s
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: diamond
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.978 shell.go:GOOS() - 0s
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.978 segment.go:SetEnabled:512 → Segment: Time
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[TRACE] 22:10:45.978 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.978 segment.go:SetEnabled:512 → Segment: Go
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.978 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.978 properties.go:GetString:28 → 15:04:05
[DEBUG] 22:10:45.978 segment.go:SetEnabled:512 → Segment: Node
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.978 shell.go:GOOS() - 0s
[TRACE] 22:10:45.978 shell.go:TemplateCache() - 0s
[DEBUG] 22:10:45.978 segment.go:SetEnabled:512 → Segment: Shell
[DEBUG] 22:10:45.978 properties.go:GetString:28 → files
[DEBUG] 22:10:45.978 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 22:10:45.978 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 22:10:45.978 properties.go:GetStringArray:52 → folders: []
[DEBUG] 22:10:45.978 properties.go:GetStringArray:52 → folders: []
[DEBUG] 22:10:45.978 properties.go:GetKeyValueMap:46 → mapped_shell_names: map[]
[DEBUG] 22:10:45.978 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 22:10:45.978 properties.go:GetBool:22 → home_enabled: false
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.978 shell.go:TemplateCache() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[TRACE] 22:10:45.978 shell.go:GOOS() - 0s
[DEBUG] 22:10:45.978 segment.go:SetEnabled:512 → Segment: Python
[DEBUG] 22:10:45.978 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 22:10:45.978 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 22:10:45.978 properties.go:GetBool:22 → home_enabled: false
[TRACE] 22:10:45.978 shell.go:Pwd() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:56 → C:\Users\domen
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: in <p:blue><b>{{ .Name }}</b></>
[TRACE] 22:10:45.978 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:TemplateCache() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: plain
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: plain
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: plain
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: plain
[DEBUG] 22:10:45.978 text.go:Render:70 → Rendering template: plain
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Flags() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[TRACE] 22:10:45.978 shell.go:Shell() - 0s
[DEBUG] 22:10:45.978 shell_windows.go:TerminalWidth:109 → terminal width: 254
[TRACE] 22:10:45.978 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 22:10:45.978 shell.go:Getenv:399 → C:\Users\domen\AppData\Local
[TRACE] 22:10:45.979 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:10:45.979 shell_windows.go:CachePath() - 500.6µs
[TRACE] 22:10:45.979 shell.go:Flags() - 0s
xRedCrystalx commented 10 months ago

Gets even funkier inside VS Code integrated pwsh terminal:

image

JanDeDobbeleer commented 10 months ago

The first one is because PSReadLine is outdated, you can upgrade that. The second one is perfectly normal and happens in every shell.

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