JanDeDobbeleer / oh-my-posh

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

Not adjusting line width when working with Python virtualenv #4376

Closed Junzki closed 11 months ago

Junzki commented 11 months ago

Code of Conduct

What happened?

I'm using:

After activating a Python virtualenv, the row width will not be automatically adjusted, the clock and the input area will be broken into another line.

For example:

  1. Before activate
    image
  2. After
    image
  3. Deactive image

Theme

robbyrussel

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 18.15.0

Shell: pwsh (7.3.8)

Prompt:

顐?username 顐邦偘 瞠?~ 顐邦偘 飥?顐?7                                                                             in pwsh at 14:47:258

Segments:

ConsoleTitle(true)                        -   0 ms
Session(true)                             -   1 ms
Path(true)                                -   2 ms
Git(false)                                -   7 ms
Root(false)                               -   1 ms
Exit(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: 20.6098ms

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

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

Logs:

[DEBUG] 14:47:25.905 shell.go:Getenv:392 鈫?NO DATA
[TRACE] 14:47:25.905 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 14:47:25.905 shell.go:Getenv:392 鈫?C:\Users\username\AppData\Local
[TRACE] 14:47:25.905 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 14:47:25.905 shell_windows.go:CachePath() - 0s
[DEBUG] 14:47:25.906 shell.go:Getenv:392 鈫?NO DATA
[TRACE] 14:47:25.906 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 14:47:25.906 shell.go:resolveConfigPath:318 鈫?No config set, fallback to default config
[TRACE] 14:47:25.906 shell.go:resolveConfigPath() - 0s
[TRACE] 14:47:25.906 shell.go:Init() - 608.2碌s
[TRACE] 14:47:25.906 shell.go:Flags() - 0s
[DEBUG] 14:47:25.906 config.go:loadConfig:129 鈫?no config file specified, using default
[TRACE] 14:47:25.906 config.go:loadConfig() - 0s
[TRACE] 14:47:25.906 shell.go:Flags() - 0s
[DEBUG] 14:47:25.906 shell.go:Getenv:392 鈫?NO DATA
[TRACE] 14:47:25.906 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 14:47:25.906 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[TRACE] 14:47:25.906 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.906 shell_windows.go:WindowsRegistryKeyValue:215 鈫?ColorizationColor(DWORD): 0xC40F3F66
[DEBUG] 14:47:25.906 shell.go:Shell:646 鈫?no shell name provided in flags, trying to detect it
[DEBUG] 14:47:25.915 shell.go:Shell:654 鈫?process name: pwsh.exe
[TRACE] 14:47:25.915 shell.go:Shell() - 9.0843ms
[DEBUG] 14:47:25.915 shell.go:Getenv:392 鈫?7.3.8
[TRACE] 14:47:25.915 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 14:47:25.915 debug.go:PrintDebug:22 鈫?Segment: Title
[DEBUG] 14:47:25.915 text.go:Render:70 鈫?Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 14:47:25.915 shell_windows.go:Root() - 0s
[TRACE] 14:47:25.915 shell.go:Shell() - 0s
[TRACE] 14:47:25.915 shell.go:StatusCodes() - 0s
[TRACE] 14:47:25.915 shell_windows.go:IsWsl() - 0s
[DEBUG] 14:47:25.915 shell.go:TemplateCache:827 鈫?environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\username\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133408151573955938 ChocolateyToolsLocation=C:\tools CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=usernameXF3KLNDE ComSpec=C:\windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False COR_ENABLE_PROFILING=1 COR_PROFILER={B74E4EB1-99CB-4B76-AF5F-2A0A973DC9A9} DriverData=C:\Windows\System32\Drivers\DriverData GETTEXTCLDRDIR=C:\Program Files\gettext-iconv\lib\gettext GOPATH=C:\Users\username\go GOPROXY=https://goproxy.io,direct HOMEDRIVE=C: HOMEPATH=\Users\username LDMS_LOCAL_DIR=C:\Program Files (x86)\LANDesk\LDClient\Data LDMS_PREFERRED_SERVER=PEKWPLDPS01 LOCALAPPDATA=C:\Users\username\AppData\Local LOGONSERVER=\\PEKWPADDNS01 NUMBER_OF_PROCESSORS=8 NVM_HOME=C:\ProgramData\nvm NVM_SYMLINK=C:\Program Files\nodejs OneDrive=D:\OneDrive - Lenovo OneDriveCommercial=D:\OneDrive - Lenovo OneDriveConsumer=D:\OneDrive OS=Windows_NT Path=C:\Users\username\venv\Scripts;C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.8.0_x64__8wekyb3d8bbwe;C:\Python310\Scripts\;C:\Python310\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files\Calibre2\;C:\Program Files\7-Zip\;C:\Program Files\gettext-iconv\bin;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files\Git\cmd;C:\Program Files\Go\bin;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\AppData\Local\JetBrains\Toolbox\scripts;C:\Users\username\AppData\Local\Programs\oh-my-posh\bin;C:\Users\username\AppData\Local\Pandoc\;C:\ProgramData\nvm;C:\Program Files\nodejs;C:\Users\username\go\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=30 POSH_GIT_ENABLED=False POSH_INSTALLER=manual POSH_PID=31292 POSH_SHELL_VERSION=7.3.8 POSH_THEMES_PATH=C:\Users\username\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 140 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=8c01 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\username\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\windowsapps\microsoft.powershell_7.3.8.0_x64__8wekyb3d8bbwe\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SESSIONNAME=Console STTASKFOLDERPATH=Ivanti\PatchSDK\Deployments SystemDrive=C: SystemRoot=C:\windows TEMP=C:\Users\username\AppData\Local\Temp TMP=C:\Users\username\AppData\Local\Temp USERDNSDOMAIN=LENOVO.COM USERDOMAIN=LENOVO USERDOMAIN_ROAMINGPROFILE=LENOVO USERNAME=username USERPROFILE=C:\Users\username VIRTUAL_ENV=C:\Users\username\venv VIRTUAL_ENV_PROMPT=venv windir=C:\windows WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=d4e2fce7-c97a-4226-870c-45446bf68599 ZES_ENABLE_SYSMAN=1 _OLD_VIRTUAL_PATH=C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.8.0_x64__8wekyb3d8bbwe;C:\Python310\Scripts\;C:\Python310\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files\Calibre2\;C:\Program Files\7-Zip\;C:\Program Files\gettext-iconv\bin;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files\Git\cmd;C:\Program Files\Go\bin;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C:\Users\username\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\username\AppData\Local\JetBrains\Toolbox\scripts;C:\Users\username\AppData\Local\Programs\oh-my-posh\bin;C:\Users\username\AppData\Local\Pandoc\;C:\ProgramData\nvm;C:\Program Files\nodejs;C:\Users\username\go\bin __PSLockDownPolicy=0]
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 shell.go:Pwd:422 鈫?C:\Users\username
[TRACE] 14:47:25.915 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.915 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 shell.go:User:557 鈫?username
[TRACE] 14:47:25.915 shell.go:User() - 0s
[DEBUG] 14:47:25.915 shell.go:Host:569 鈫?usernameXF3KLNDE
[TRACE] 14:47:25.915 shell.go:Host() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 shell.go:Getenv:392 鈫?NO DATA
[TRACE] 14:47:25.915 shell.go:Getenv(SHLVL) - 0s
[TRACE] 14:47:25.915 shell.go:TemplateCache() - 0s
[DEBUG] 14:47:25.915 shell.go:Getenv:392 鈫?30
[TRACE] 14:47:25.915 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 14:47:25.915 shell.go:Getenv:392 鈫?1
[TRACE] 14:47:25.915 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[TRACE] 14:47:25.915 shell.go:Shell() - 0s
[TRACE] 14:47:25.915 shell.go:Shell() - 0s
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[DEBUG] 14:47:25.915 properties.go:GetString:28 鈫?{{ .Code }}
[TRACE] 14:47:25.915 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.915 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 segment.go:SetEnabled:497 鈫?Segment: Exit
[TRACE] 14:47:25.915 shell.go:StatusCodes() - 0s
[DEBUG] 14:47:25.915 text.go:Render:70 鈫?Rendering template: {{ .Code }}
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[TRACE] 14:47:25.915 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.915 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 segment.go:SetEnabled:497 鈫?Segment: Path
[TRACE] 14:47:25.915 shell.go:Pwd() - 0s
[TRACE] 14:47:25.915 shell.go:Shell() - 0s
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[DEBUG] 14:47:25.915 properties.go:GetBool:22 鈫?mapped_locations_enabled: true
[DEBUG] 14:47:25.915 properties.go:GetString:28 鈫?飥?[DEBUG] 14:47:25.915 properties.go:GetString:28 鈫?飥?[DEBUG] 14:47:25.915 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 properties.go:GetString:28 鈫?~
[TRACE] 14:47:25.915 shell.go:TemplateCache() - 0s
[DEBUG] 14:47:25.915 properties.go:GetKeyValueMap:46 鈫?mapped_locations: map[]
[TRACE] 14:47:25.915 shell.go:PathSeparator() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 properties.go:GetBool:22 鈫?always_enabled: true
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[TRACE] 14:47:25.915 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.915 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.915 segment.go:SetEnabled:497 鈫?Segment: Git
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:Flags() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:PathSeparator() - 0s
[TRACE] 14:47:25.915 shell.go:PathSeparator() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:PathSeparator() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[TRACE] 14:47:25.915 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.917 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.917 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.917 segment.go:SetEnabled:497 鈫?Segment: Session
[DEBUG] 14:47:25.917 shell.go:Getenv:392 鈫?NO DATA
[TRACE] 14:47:25.917 shell.go:Getenv(SSH_CONNECTION) - 0s
[TRACE] 14:47:25.917 shell.go:PathSeparator() - 0s
[DEBUG] 14:47:25.917 shell.go:Getenv:392 鈫?NO DATA
[TRACE] 14:47:25.917 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 14:47:25.917 shell.go:GOOS() - 0s
[TRACE] 14:47:25.917 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.917 shell.go:GOOS() - 0s
[TRACE] 14:47:25.917 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.917 segment.go:SetEnabled:497 鈫?Segment: Root
[TRACE] 14:47:25.917 shell.go:GOOS() - 0s
[TRACE] 14:47:25.917 shell.go:PathSeparator() - 0s
[TRACE] 14:47:25.917 shell.go:Pwd() - 0s
[TRACE] 14:47:25.917 shell_windows.go:IsWsl() - 0s
[TRACE] 14:47:25.917 shell.go:StackCount() - 0s
[TRACE] 14:47:25.917 shell_windows.go:Root() - 0s
[DEBUG] 14:47:25.918 win32_windows.go:isWriteable:299 鈫?not current user or in group
[DEBUG] 14:47:25.918 win32_windows.go:isWriteable:303 鈫?current user is member of S-1-5-32-544
[DEBUG] 14:47:25.918 win32_windows.go:isWriteable:311 鈫?    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 14:47:25.918 win32_windows.go:isWriteable:313 鈫?user has write access
[TRACE] 14:47:25.918 shell_windows.go:DirIsWritable() - 1.6266ms
[TRACE] 14:47:25.918 shell.go:TemplateCache() - 0s
[DEBUG] 14:47:25.923 shell.go:CommandPath:608 鈫?C:\Program Files\Git\cmd\git.exe
[TRACE] 14:47:25.923 shell.go:CommandPath(git.exe) - 7.7277ms
[TRACE] 14:47:25.923 shell.go:HasCommand(git.exe) - 7.7277ms
[TRACE] 14:47:25.923 shell.go:Pwd() - 0s
[ERROR] 14:47:25.923 shell.go:HasParentFilePath:742 鈫?CreateFile .git: The system cannot find the file specified.
[TRACE] 14:47:25.923 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 14:47:25.923 properties.go:GetBool:22 鈫?fetch_bare_info: false
[DEBUG] 14:47:25.923 text.go:Render:70 鈫?Rendering template:  {{ if gt .Code 0 }}飥峽{ else }}飥寋{ end }} 
[DEBUG] 14:47:25.923 text.go:Render:70 鈫?Rendering template:  瞠?{{ path .Path .Location }} 
[TRACE] 14:47:25.923 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template:  {{ if .SSHSession }}町?{{ end }}{{ .UserName }} 
[TRACE] 14:47:25.924 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[TRACE] 14:47:25.924 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: diamond
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: powerline
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: powerline
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: powerline
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 14:47:25.924 shell.go:TemplateCache() - 0s
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: diamond
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[TRACE] 14:47:25.924 shell.go:Flags() - 0s
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.924 segment.go:SetEnabled:497 鈫?Segment: Time
[DEBUG] 14:47:25.924 properties.go:GetString:28 鈫?15:04:05
[TRACE] 14:47:25.924 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.924 shell.go:Flags() - 0s
[DEBUG] 14:47:25.924 properties.go:GetString:28 鈫?files
[TRACE] 14:47:25.924 shell.go:Flags() - 0s
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.924 segment.go:SetEnabled:497 鈫?Segment: Python
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 properties.go:GetStringArray:52 鈫?extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 14:47:25.924 properties.go:GetStringArray:52 鈫?folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.924 properties.go:GetBool:22 鈫?home_enabled: false
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 segment.go:SetEnabled:497 鈫?Segment: Go
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:Flags() - 0s
[DEBUG] 14:47:25.924 properties.go:GetStringArray:52 鈫?extensions: [*.go go.mod]
[DEBUG] 14:47:25.924 properties.go:GetStringArray:52 鈫?folders: []
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 properties.go:GetBool:22 鈫?home_enabled: false
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:Flags() - 0s
[TRACE] 14:47:25.924 shell.go:GOOS() - 0s
[DEBUG] 14:47:25.924 segment.go:SetEnabled:497 鈫?Segment: Shell
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 properties.go:GetKeyValueMap:46 鈫?mapped_shell_names: map[]
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[TRACE] 14:47:25.924 shell.go:GOOS() - 0s
[TRACE] 14:47:25.924 shell.go:Shell() - 0s
[DEBUG] 14:47:25.924 segment.go:SetEnabled:497 鈫?Segment: Node
[TRACE] 14:47:25.924 shell.go:Flags() - 0s
[TRACE] 14:47:25.924 shell.go:TemplateCache() - 0s
[DEBUG] 14:47:25.924 properties.go:GetStringArray:52 鈫?extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 14:47:25.924 properties.go:GetStringArray:52 鈫?folders: []
[DEBUG] 14:47:25.924 properties.go:GetBool:22 鈫?home_enabled: false
[TRACE] 14:47:25.924 shell.go:Pwd() - 0s
[DEBUG] 14:47:25.924 shell_windows.go:56 鈫?C:\Users\username
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
[DEBUG] 14:47:25.924 text.go:Render:70 鈫?Rendering template: in <p:blue><b>{{ .Name }}</b></> 
[TRACE] 14:47:25.925 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.925 shell.go:Shell() - 0s
[TRACE] 14:47:25.925 shell.go:TemplateCache() - 0s
[TRACE] 14:47:25.925 shell.go:Shell() - 0s
[DEBUG] 14:47:25.925 text.go:Render:70 鈫?Rendering template: plain
[DEBUG] 14:47:25.925 text.go:Render:70 鈫?Rendering template: plain
[DEBUG] 14:47:25.925 text.go:Render:70 鈫?Rendering template: plain
[DEBUG] 14:47:25.925 text.go:Render:70 鈫?Rendering template: plain
[DEBUG] 14:47:25.925 text.go:Render:70 鈫?Rendering template: plain
[TRACE] 14:47:25.925 shell.go:Shell() - 0s
[TRACE] 14:47:25.925 shell.go:Flags() - 0s
[TRACE] 14:47:25.925 shell.go:Shell() - 0s
[TRACE] 14:47:25.925 shell.go:Shell() - 0s
[DEBUG] 14:47:25.926 shell_windows.go:TerminalWidth:109 鈫?terminal width: 120
[TRACE] 14:47:25.926 shell_windows.go:TerminalWidth() - 506.4碌s
[DEBUG] 14:47:25.926 shell.go:Getenv:392 鈫?C:\Users\username\AppData\Local
[TRACE] 14:47:25.926 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 14:47:25.926 shell_windows.go:CachePath() - 0s
[TRACE] 14:47:25.926 shell.go:Flags() - 0s
JanDeDobbeleer commented 11 months ago

@Junzki this isn't a bug. The python env tool you use overrides the prompt and prepends the prompt string we created after calculating the available width. You need to disable the built in prompt hijacking and use oh-my-posh' virtual env functionality in the python segment.

Junzki commented 11 months ago

I found it. Thank you for responding. <3

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