There are two versions of the Oh-My-Posh application after a Winget update #6028
-
Code of Conduct
What happened?1.After upgrading Oh-My-Posh using 2.Use the Themetheme: agnoster.minimal What OS are you seeing the problem on?Windows Which shell are you using?powershell Log outputXIN@LAPTOP-LITMOWISE ~ oh-my-posh debug --plain
Version: 24.13.1
Shell: pwsh (7.5.0-rc.1)
Prompt:
XIN@LAPTOP-LITMOWISE ~
Segments:
ConsoleTitle(false) - 0 ms
Status(false) - 1 ms
Root(false) - 0 ms
Session(true) - 0 ms
Path(true) - 1 ms
Git(false) - 12 ms
Text(true) - 0 ms
Run duration: 33.8797ms
Cache path: C:\Users\XIN\AppData\Local\oh-my-posh
Config path: C:\Users\XIN\AppData\Local\Programs\oh-my-posh\themes\agnoster.minimal.omp.json
Logs:
[DEBUG] 13:02:29.039 command.go:execute:989 → debug mode enabled
[DEBUG] 13:02:29.057 debug.go:40 → config set using POSH_THEME: C:\Users\XIN\AppData\Local\Programs\oh-my-posh\themes\agnoster.minimal.omp.json
[TRACE] 13:02:29.057 debug.go() - 0s
[TRACE] 13:02:29.058 load.go:Load() - 1.0688ms
[TRACE] 13:02:29.058 debug.go() - 1.0688ms
[DEBUG] 13:02:29.059 debug.go:52 → plain mode enabled
[TRACE] 13:02:29.059 terminal.go() - 0s
[DEBUG] 13:02:29.059 terminal.go:59 → loading cache file: C:\Users\XIN\AppData\Local\oh-my-posh\omp.cache
[TRACE] 13:02:29.059 terminal.go(C:\Users\XIN\AppData\Local\oh-my-posh\omp.cache) - 0s
[TRACE] 13:02:29.059 terminal.go() - 0s
[DEBUG] 13:02:29.059 terminal.go:59 → loading cache file: C:\Users\XIN\AppData\Local\oh-my-posh\omp.cache.6592ef83-d04f-409a-98ad-e5d48354d6ad
[DEBUG] 13:02:29.059 terminal.go:59 → loading cache key: prompt_count_cache
[TRACE] 13:02:29.059 terminal.go(C:\Users\XIN\AppData\Local\oh-my-posh\omp.cache.6592ef83-d04f-409a-98ad-e5d48354d6ad) - 523.8µs
[TRACE] 13:02:29.059 terminal.go:Init() - 0s
[TRACE] 13:02:29.059 terminal.go() - 0s
[DEBUG] 13:02:29.059 terminal.go:Init:67 → C:\Users\XIN
[TRACE] 13:02:29.059 terminal.go:Init() - 0s
[TRACE] 13:02:29.059 debug.go() - 1.0457ms
[TRACE] 13:02:29.059 init.go:Init() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[DEBUG] 13:02:29.059 home.go:Home:26 → C:\Users\XIN
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[DEBUG] 13:02:29.059 cache.go:loadCache:60 → XIN
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[DEBUG] 13:02:29.059 cache.go:loadCache:61 → LAPTOP-LITMOWISE
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[TRACE] 13:02:29.059 cache.go:loadCache() - 0s
[DEBUG] 13:02:29.059 cache.go:loadCache:71 → NO DATA
[TRACE] 13:02:29.059 cache.go:loadCache(SHLVL) - 0s
[DEBUG] 13:02:29.059 debug.go:61 → terminal program: Windows Terminal
[DEBUG] 13:02:29.059 debug.go:61 → terminal shell: shell
[DEBUG] 13:02:29.059 config.go:MakeColors:58 → NO DATA
[TRACE] 13:02:29.059 config.go:MakeColors(OMP_CACHE_DISABLED) - 0s
[TRACE] 13:02:29.059 colors_windows.go:GetAccentColor(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[DEBUG] 13:02:29.060 colors_windows.go:GetAccentColor:19 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 13:02:29.060 colors.go:SetAccentColor() - 520µs
[TRACE] 13:02:29.060 colors.go:MakeColors() - 520µs
[TRACE] 13:02:29.060 debug.go:PrintDebug() - 0s
[DEBUG] 13:02:29.060 debug.go:PrintDebug:16 → 7.5.0-rc.1
[TRACE] 13:02:29.060 debug.go:PrintDebug(POSH_SHELL_VERSION) - 0s
[DEBUG] 13:02:29.060 debug.go:72 → segment: Title
[TRACE] 13:02:29.060 engine.go:getTitleTemplateText() - 0s
[TRACE] 13:02:29.060 primary.go:needsPrimaryRightPrompt() - 0s
[DEBUG] 13:02:29.060 terminal.go:CursorPosition:583 → 2
[TRACE] 13:02:29.060 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 0s
[DEBUG] 13:02:29.060 terminal.go:CursorPosition:587 → 1
[TRACE] 13:02:29.060 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 0s
[TRACE] 13:02:29.060 primary.go:writePrimaryPrompt() - 0s
[TRACE] 13:02:29.060 primary.go:writePrimaryPrompt() - 0s
[TRACE] 13:02:29.060 segment.go:Execute() - 0s
[TRACE] 13:02:29.060 segment.go:Execute() - 0s
[DEBUG] 13:02:29.060 home.go:Home:26 → C:\Users\XIN
[DEBUG] 13:02:29.060 home.go:Home:26 → C:\Users\XIN
[TRACE] 13:02:29.060 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 13:02:29.060 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 13:02:29.060 segment.go:Execute:110 → segment: Text
[DEBUG] 13:02:29.060 segment.go:Execute:110 → segment: Status
[TRACE] 13:02:29.060 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 13:02:29.060 segment.go:Execute:112 → no toggles found
[DEBUG] 13:02:29.060 segment.go:Execute:110 → segment: Session
[DEBUG] 13:02:29.060 segment.go:Execute:112 → no toggles found
[TRACE] 13:02:29.060 segment.go:Execute() - 0s
[TRACE] 13:02:29.060 status.go:Enabled() - 0s
[DEBUG] 13:02:29.060 session.go:activeSSHSession:31 → NO DATA
[TRACE] 13:02:29.060 session.go:activeSSHSession(SSH_CONNECTION) - 0s
[DEBUG] 13:02:29.060 status.go:formatStatus:45 → {{ .Code }}
[DEBUG] 13:02:29.060 session.go:activeSSHSession:31 → NO DATA
[DEBUG] 13:02:29.060 home.go:Home:26 → C:\Users\XIN
[TRACE] 13:02:29.060 session.go:activeSSHSession(SSH_CLIENT) - 0s
[TRACE] 13:02:29.060 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 13:02:29.060 segment.go:Execute:110 → segment: Path
[TRACE] 13:02:29.060 segment.go:Execute() - 0s
[DEBUG] 13:02:29.060 segment.go:Execute:112 → no toggles found
[DEBUG] 13:02:29.060 home.go:Home:26 → C:\Users\XIN
[TRACE] 13:02:29.060 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 13:02:29.060 segment.go:Execute:110 → segment: Root
[DEBUG] 13:02:29.060 segment.go:Execute:112 → no toggles found
[DEBUG] 13:02:29.060 path.go:147 → display_cygpath: false
[TRACE] 13:02:29.060 path.go:setPaths() - 0s
[TRACE] 13:02:29.060 path.go:setPaths() - 0s
[TRACE] 13:02:29.060 path.go:setPaths() - 0s
[TRACE] 13:02:29.060 path.go:setPaths() - 0s
[TRACE] 13:02:29.060 path.go:parsePath() - 0s
[TRACE] 13:02:29.060 root.go:Enabled() - 0s
[TRACE] 13:02:29.060 segment.go:Execute() - 0s
[DEBUG] 13:02:29.060 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 13:02:29.060 path.go:setMappedLocations:558 →
[DEBUG] 13:02:29.060 path.go:setMappedLocations:559 →
[DEBUG] 13:02:29.060 home.go:Home:26 → C:\Users\XIN
[TRACE] 13:02:29.060 clean.go:Clean() - 0s
[TRACE] 13:02:29.060 path.go:normalize() - 0s
[DEBUG] 13:02:29.060 home.go:Home:26 → C:\Users\XIN
[TRACE] 13:02:29.060 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 13:02:29.060 segment.go:Execute:110 → segment: Git
[DEBUG] 13:02:29.060 segment.go:Execute:112 → no toggles found
[TRACE] 13:02:29.060 scm.go:hasCommand() - 0s
[DEBUG] 13:02:29.060 path.go:setMappedLocations:565 → mapped_locations: map[]
[TRACE] 13:02:29.060 clean.go:Clean() - 0s
[TRACE] 13:02:29.060 path.go:normalize() - 0s
[TRACE] 13:02:29.060 clean.go:Clean() - 0s
[TRACE] 13:02:29.060 path.go:normalize() - 0s
[TRACE] 13:02:29.060 path.go:parsePath() - 0s
[TRACE] 13:02:29.060 path.go:parsePath() - 0s
[TRACE] 13:02:29.060 path.go:parsePath() - 0s
[TRACE] 13:02:29.060 path.go:setStyle() - 0s
[DEBUG] 13:02:29.060 path.go:colorizePath:734 → cycle: []
[DEBUG] 13:02:29.060 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 13:02:29.060 path.go:getFolderSeparator:269 →
[DEBUG] 13:02:29.060 path.go:colorizePath:737 → cycle_folder_separator: false
[DEBUG] 13:02:29.060 path.go:colorizePath:738 → %s
[DEBUG] 13:02:29.061 path.go:colorizePath:740 → %s
[DEBUG] 13:02:29.061 path.go:colorizePath:741 → %s
[DEBUG] 13:02:29.061 path.go:colorizePath:742 → %s
[TRACE] 13:02:29.061 path.go:Enabled() - 0s
[TRACE] 13:02:29.061 path.go:Enabled() - 0s
[TRACE] 13:02:29.061 path.go:Enabled() - 0s
[TRACE] 13:02:29.061 status.go:formatStatus({{ .Code }}) - 1.0415ms
[DEBUG] 13:02:29.061 status.go:Enabled:37 → always_enabled: false
[TRACE] 13:02:29.061 segment.go:resolve(plain) - 0s
[TRACE] 13:02:29.061 segment.go:resolve(plain) - 0s
[TRACE] 13:02:29.061 segment.go:string({{ .UserName }}@{{ .HostName }} ) - 519.9µs
[TRACE] 13:02:29.061 segment.go:resolve(plain) - 0s
[DEBUG] 13:02:29.061 terminal_windows.go:DirIsWritable:216 → not current user or in group
[DEBUG] 13:02:29.061 terminal_windows.go:DirIsWritable:216 → current user is member of S-1-5-32-544
[DEBUG] 13:02:29.061 win32_windows.go:isWriteable:271 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 13:02:29.061 terminal_windows.go:DirIsWritable:216 → user has write access
[TRACE] 13:02:29.061 path.go:Enabled() - 519.9µs
[TRACE] 13:02:29.062 segment.go:string(<transparent></> {{ .Path }} ) - 524.4µs
[TRACE] 13:02:29.062 segment.go:resolve(plain) - 0s
[DEBUG] 13:02:29.072 terminal.go:HasCommand:323 → C:\Program Files\Git\cmd\git.exe
[TRACE] 13:02:29.072 terminal.go:HasCommand(git.exe) - 11.8913ms
[TRACE] 13:02:29.072 scm.go:hasCommand(git.exe) - 11.8913ms
[DEBUG] 13:02:29.072 git.go:shouldDisplay:328 → fetch_bare_info: false
[DEBUG] 13:02:29.073 terminal.go:HasParentFilePath:446 → C:\Users\XIN
[TRACE] 13:02:29.073 terminal.go:HasParentFilePath(C:\Users\XIN) - 999.4µs
[ERROR] 13:02:29.073 git.go:shouldDisplay:338 → CreateFile .git: The system cannot find the file specified.
[TRACE] 13:02:29.073 git.go:shouldDisplay(.git) - 999.4µs
[TRACE] 13:02:29.073 segment.go:resolve(plain) - 0s
[TRACE] 13:02:29.073 segment.go:string( ) - 0s
[TRACE] 13:02:29.073 segment.go:resolve(plain) - 0s
[TRACE] 13:02:29.073 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 13:02:29.073 primary.go:Primary() - 0s
[TRACE] 13:02:29.073 debug.go:PrintDebug() - 0s
[TRACE] 13:02:29.073 debug.go:PrintDebug() - 0s |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 27 replies
-
Probably related to this is the fact that I'm unable to upgrade oh-my-posh via winget. A newer version was found, but the install technology is different from the current version installed. Please uninstall the package and install the newer version. I managed to upgrade using oh-my-posh straight away: oh-my-posh upgrade
oh-my-posh version
24.13.1 However, winget is still messed up, apparently: winget upgrade
...
Oh My Posh JanDeDobbeleer.OhMyPosh 24.12.0 24.13.1 winget
... |
Beta Was this translation helpful? Give feedback.
-
@litmowise could it be you installed as admin/user first then switched? Because an MSI installer can't be used for the two contexts. |
Beta Was this translation helpful? Give feedback.
-
Have the same issue, and confirm it happens with the versions using msi. |
Beta Was this translation helpful? Give feedback.
@litmowise this is a
winget
bug. When using upgrade it doesn't respect the previously usedscope
and installs system wide. You can see this because it pops UAC, which install (default touser
) doesn't do. I created an issue on their end.Evidence
Install v27.17.0