Closed jaliyaudagedara closed 1 week ago
dotnet segment showing incorrect version.
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "console_title_template": "{{ .Shell }} in {{ .Folder }}", "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "properties": { "display_mode": "always", "home_enabled": true }, "style": "powerline", "template": " \ue77f {{ .Full }} ", "foreground": "#000000", "powerline_symbol": "\ue0b0", "background": "#00ffff", "type": "dotnet" } ] } ], "version": 3, "auto_upgrade": true, "final_space": true }
Windows
powershell
oh-my-posh debug --plain pwsh 06:35:33 Version: 24.5.1 Shell: pwsh (7.4.6) Prompt: Jaliya 9.0.100-rc.2.24474.11 ~ pwsh 06:39:16 Segments: ConsoleTitle(true) - 0 ms Session(true) - 1 ms Dotnet(true) - 1 ms Path(true) - 1 ms Git(false) - 12 ms Node(false) - 0 ms Go(false) - 0 ms Julia(false) - 0 ms Python(false) - 0 ms Ruby(false) - 0 ms Azfunc(false) - 0 ms Aws(false) - 1 ms Root(true) - 0 ms Status(true) - 0 ms Shell(true) - 0 ms Ytm(false) - 1 ms Time(true) - 0 ms Run duration: 21.265ms Cache path: C:\Users\Jaliya\AppData\Local\oh-my-posh Config path: C:\Users\Jaliya\Documents\PowerShell\Modules\oh-my-posh\themes\jaliyaudagedara.omp.json Logs: [DEBUG] 06:39:16.156 command.go:execute:989 → debug mode enabled [DEBUG] 06:39:16.157 debug.go:40 → config set using POSH_THEME: C:\Users\Jaliya\Documents\PowerShell\Modules\oh-my-posh\themes\jaliyaudagedara.omp.json [TRACE] 06:39:16.157 debug.go() - 0s [TRACE] 06:39:16.157 load.go:Load() - 559.3µs [TRACE] 06:39:16.157 debug.go() - 559.3µs [DEBUG] 06:39:16.157 debug.go:52 → plain mode enabled [TRACE] 06:39:16.158 terminal.go() - 65.8µs [DEBUG] 06:39:16.158 terminal.go:59 → loading cache file: C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache [DEBUG] 06:39:16.158 terminal.go:59 → loading cache key: version_node [DEBUG] 06:39:16.162 terminal.go:59 → loading cache key: upgrade_check [DEBUG] 06:39:16.162 terminal.go:59 → loading cache key: version_dotnet [TRACE] 06:39:16.162 terminal.go(C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache) - 4.1862ms [TRACE] 06:39:16.162 terminal.go() - 66.4µs [DEBUG] 06:39:16.162 terminal.go:59 → loading cache file: C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache.909f1572-3b69-4bd9-a9e3-151bbe8738df [DEBUG] 06:39:16.162 terminal.go:59 → loading cache key: prompt_count_cache [TRACE] 06:39:16.162 terminal.go(C:\Users\Jaliya\AppData\Local\oh-my-posh\omp.cache.909f1572-3b69-4bd9-a9e3-151bbe8738df) - 0s [TRACE] 06:39:16.162 terminal.go:Init() - 0s [TRACE] 06:39:16.162 terminal.go() - 0s [DEBUG] 06:39:16.162 terminal.go:Init:67 → C:\Users\Jaliya [TRACE] 06:39:16.162 terminal.go:Init() - 0s [TRACE] 06:39:16.162 debug.go() - 4.8233ms [TRACE] 06:39:16.162 init.go:Init() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [DEBUG] 06:39:16.162 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [DEBUG] 06:39:16.162 cache.go:loadCache:60 → Jaliya [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [DEBUG] 06:39:16.162 cache.go:loadCache:61 → RAVANA-TPP15 [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [TRACE] 06:39:16.162 cache.go:loadCache() - 0s [DEBUG] 06:39:16.162 cache.go:loadCache:71 → NO DATA [TRACE] 06:39:16.162 cache.go:loadCache(SHLVL) - 0s [DEBUG] 06:39:16.162 debug.go:61 → terminal program: Windows Terminal [DEBUG] 06:39:16.162 debug.go:61 → terminal shell: shell [DEBUG] 06:39:16.162 config.go:MakeColors:56 → NO DATA [TRACE] 06:39:16.162 config.go:MakeColors(OMP_CACHE_DISABLED) - 0s [TRACE] 06:39:16.162 colors_windows.go:GetAccentColor(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s [DEBUG] 06:39:16.162 colors_windows.go:GetAccentColor:19 → ColorizationColor(DWORD): 0xC40078D4 [TRACE] 06:39:16.162 colors.go:SetAccentColor() - 0s [TRACE] 06:39:16.162 colors.go:MakeColors() - 0s [TRACE] 06:39:16.162 debug.go:PrintDebug() - 0s [DEBUG] 06:39:16.162 debug.go:PrintDebug:16 → 7.4.6 [TRACE] 06:39:16.162 debug.go:PrintDebug(POSH_SHELL_VERSION) - 0s [DEBUG] 06:39:16.162 debug.go:72 → segment: Title [TRACE] 06:39:16.163 engine.go:getTitleTemplateText({{ .Shell }} in {{ .Folder }}) - 1.1064ms [TRACE] 06:39:16.163 primary.go:needsPrimaryRightPrompt() - 0s [DEBUG] 06:39:16.163 terminal.go:CursorPosition:590 → 6 [TRACE] 06:39:16.163 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 0s [DEBUG] 06:39:16.163 terminal.go:CursorPosition:594 → 1 [TRACE] 06:39:16.163 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 0s [TRACE] 06:39:16.163 primary.go:writePrimaryPrompt() - 0s [TRACE] 06:39:16.163 primary.go:writePrimaryPrompt() - 0s [TRACE] 06:39:16.163 segment.go:Execute() - 0s [TRACE] 06:39:16.163 segment.go:Execute() - 0s [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Status [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [TRACE] 06:39:16.163 status.go:Enabled() - 0s [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Node [DEBUG] 06:39:16.163 status.go:formatStatus:45 → {{ .Code }} [TRACE] 06:39:16.163 segment.go:Execute() - 0s [DEBUG] 06:39:16.163 language.go:Enabled:117 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue] [DEBUG] 06:39:16.163 language.go:Enabled:118 → folders: [] [DEBUG] 06:39:16.163 language.go:Enabled:125 → home_enabled: false [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.163 segment.go:Execute() - 0s [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Dotnet [TRACE] 06:39:16.163 segment.go:Execute() - 0s [TRACE] 06:39:16.163 segment.go:Execute() - 0s [TRACE] 06:39:16.163 segment.go:Execute() - 0s [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Ruby [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Git [TRACE] 06:39:16.163 scm.go:hasCommand() - 0s [DEBUG] 06:39:16.163 language.go:Enabled:117 → extensions: [*.rb Rakefile Gemfile] [DEBUG] 06:39:16.163 language.go:Enabled:118 → folders: [] [DEBUG] 06:39:16.163 language.go:Enabled:125 → home_enabled: false [DEBUG] 06:39:16.163 language.go:Enabled:117 → extensions: [*.cs *.csx *.vb *.sln *.slnf *.csproj *.vbproj *.fs *.fsx *.fsproj global.json] [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.163 home.go:Home:26 → C:\Users\Jaliya [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Path [DEBUG] 06:39:16.163 language.go:Enabled:118 → folders: [] [TRACE] 06:39:16.163 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.163 language.go:Enabled:125 → home_enabled: true [DEBUG] 06:39:16.163 segment.go:Execute:109 → segment: Session [DEBUG] 06:39:16.163 path.go:147 → display_cygpath: false [TRACE] 06:39:16.163 path.go:setPaths() - 0s [TRACE] 06:39:16.163 path.go:setPaths() - 0s [TRACE] 06:39:16.163 path.go:setPaths() - 0s [TRACE] 06:39:16.163 path.go:setPaths() - 0s [TRACE] 06:39:16.164 path.go:parsePath() - 0s [DEBUG] 06:39:16.164 path.go:setMappedLocations:557 → mapped_locations_enabled: true [DEBUG] 06:39:16.164 path.go:setMappedLocations:558 → [DEBUG] 06:39:16.164 path.go:setMappedLocations:559 → [TRACE] 06:39:16.164 status.go:formatStatus({{ .Code }}) - 585.6µs [DEBUG] 06:39:16.164 status.go:Enabled:37 → always_enabled: true [DEBUG] 06:39:16.164 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.164 clean.go:Clean() - 0s [TRACE] 06:39:16.164 segment.go:Execute() - 0s [DEBUG] 06:39:16.164 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.164 terminal.go:DirMatchesOneOf() - 0s [TRACE] 06:39:16.164 path.go:normalize() - 0s [DEBUG] 06:39:16.164 segment.go:Execute:109 → segment: Aws [DEBUG] 06:39:16.164 session.go:activeSSHSession:31 → NO DATA [DEBUG] 06:39:16.164 path.go:setMappedLocations:560 → ~ [TRACE] 06:39:16.164 session.go:activeSSHSession(SSH_CONNECTION) - 1.0898ms [DEBUG] 06:39:16.164 session.go:activeSSHSession:31 → NO DATA [DEBUG] 06:39:16.164 path.go:setMappedLocations:565 → mapped_locations: map[] [TRACE] 06:39:16.164 session.go:activeSSHSession(SSH_CLIENT) - 0s [DEBUG] 06:39:16.164 aws.go:Enabled:35 → display_default: false [TRACE] 06:39:16.164 segment.go:Execute() - 0s [DEBUG] 06:39:16.164 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.164 clean.go:Clean() - 0s [TRACE] 06:39:16.164 path.go:normalize() - 0s [DEBUG] 06:39:16.164 language.go:Enabled:137 → always [TRACE] 06:39:16.164 clean.go:Clean() - 0s [DEBUG] 06:39:16.164 language.go:Enabled:156 → fetch_version: true [TRACE] 06:39:16.164 path.go:normalize() - 0s [TRACE] 06:39:16.164 path.go:parsePath() - 0s [TRACE] 06:39:16.164 path.go:parsePath() - 0s [TRACE] 06:39:16.164 path.go:parsePath() - 0s [TRACE] 06:39:16.164 path.go:setStyle() - 0s [DEBUG] 06:39:16.164 path.go:colorizePath:734 → cycle: [] [DEBUG] 06:39:16.164 path.go:getFolderSeparator:267 → NO DATA [DEBUG] 06:39:16.164 path.go:getFolderSeparator:269 → [DEBUG] 06:39:16.164 path.go:colorizePath:737 → cycle_folder_separator: false [DEBUG] 06:39:16.164 path.go:colorizePath:738 → %s [DEBUG] 06:39:16.164 path.go:colorizePath:740 → %s [DEBUG] 06:39:16.164 path.go:colorizePath:741 → %s [DEBUG] 06:39:16.164 path.go:colorizePath:742 → %s [TRACE] 06:39:16.164 path.go:Enabled() - 0s [TRACE] 06:39:16.164 path.go:Enabled() - 0s [TRACE] 06:39:16.164 path.go:Enabled() - 0s [ERROR] 06:39:16.165 aws.go:getConfigFileInfo:60 → open C:\Users\Jaliya/.aws/config: The system cannot find the file specified. [TRACE] 06:39:16.165 aws.go:getConfigFileInfo(C:\Users\Jaliya/.aws/config) - 521.8µs [TRACE] 06:39:16.165 segment.go:string( {{ .UserName }} ) - 584.2µs [TRACE] 06:39:16.165 segment.go:resolve(diamond) - 0s [TRACE] 06:39:16.165 segment.go:string( {{ .Full }} ) - 0s [TRACE] 06:39:16.165 segment.go:resolve(powerline) - 0s [DEBUG] 06:39:16.165 terminal_windows.go:DirIsWritable:216 → not current user or in group [DEBUG] 06:39:16.165 terminal_windows.go:DirIsWritable:216 → current user is member of S-1-5-32-544 [DEBUG] 06:39:16.165 win32_windows.go:isWriteable:271 ↓ WRITE_DAC WRITE_OWNER SYNCHRONIZE DELETE READ_CONTROL [DEBUG] 06:39:16.165 terminal_windows.go:DirIsWritable:216 → user has write access [TRACE] 06:39:16.165 path.go:Enabled() - 584.2µs [TRACE] 06:39:16.165 segment.go:string( {{ .Path }} ) - 0s [TRACE] 06:39:16.165 segment.go:resolve(powerline) - 0s [DEBUG] 06:39:16.175 terminal.go:HasCommand:323 → C:\Program Files\Git\cmd\git.exe [TRACE] 06:39:16.175 terminal.go:HasCommand(git.exe) - 12.0269ms [TRACE] 06:39:16.175 scm.go:hasCommand(git.exe) - 12.0269ms [DEBUG] 06:39:16.175 git.go:shouldDisplay:328 → fetch_bare_info: false [DEBUG] 06:39:16.175 terminal.go:HasParentFilePath:453 → C:\Users\Jaliya [TRACE] 06:39:16.175 terminal.go:HasParentFilePath(C:\Users\Jaliya) - 0s [ERROR] 06:39:16.175 git.go:shouldDisplay:338 → CreateFile .git: The system cannot find the file specified. [TRACE] 06:39:16.175 git.go:shouldDisplay(.git) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:string( ) - 0s [TRACE] 06:39:16.175 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.175 segment.go:string(<parentBackground></> ) - 0s [TRACE] 06:39:16.175 list.go:FirstMatch({{ if gt .Code 0 }}#e91e63{{ end }}) - 0s [TRACE] 06:39:16.175 segment.go:resolve(diamond) - 0s [TRACE] 06:39:16.175 list.go:FirstMatch({{ if gt .Code 0 }}#e91e63{{ end }}) - 0s [TRACE] 06:39:16.175 engine.go:applyPowerShellBleedPatch() - 0s [TRACE] 06:39:16.176 segment.go:Execute() - 0s [DEBUG] 06:39:16.176 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.176 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.176 segment.go:Execute:109 → segment: Time [TRACE] 06:39:16.176 segment.go:Execute() - 0s [TRACE] 06:39:16.176 segment.go:Execute() - 0s [DEBUG] 06:39:16.176 home.go:Home:26 → C:\Users\Jaliya [TRACE] 06:39:16.176 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.176 home.go:Home:26 → C:\Users\Jaliya [DEBUG] 06:39:16.176 segment.go:Execute:109 → segment: Ytm [TRACE] 06:39:16.176 terminal.go:DirMatchesOneOf() - 0s [DEBUG] 06:39:16.176 segment.go:Execute:109 → segment: Shell [DEBUG] 06:39:16.176 ytm.go:setStatus:63 → http://127.0.0.1:9863 [DEBUG] 06:39:16.176 shell.go:Enabled:26 → mapped_shell_names: map[] [TRACE] 06:39:16.176 shell.go:Enabled() - 0s [DEBUG] 06:39:16.176 ytm.go:setStatus:64 → api_url: 20 [TRACE] 06:39:16.176 shell.go:Enabled() - 0s [TRACE] 06:39:16.176 segment.go:string(<#0077c2,transparent></> {{ .Name }} <transparent,#0077c2></>) - 0s [TRACE] 06:39:16.176 segment.go:resolve(plain) - 0s [DEBUG] 06:39:16.176 ytm.go:setStatus:65 ↓ GET /query HTTP/1.1 Host: 127.0.0.1:9863 User-Agent: Go-http-client/1.1 Accept-Encoding: gzip [ERROR] 06:39:16.177 ytm.go:setStatus:65 → Get "http://127.0.0.1:9863/query": dial tcp 127.0.0.1:9863: connectex: No connection could be made because the target machine actively refused it. [TRACE] 06:39:16.177 ytm.go:setStatus(http://127.0.0.1:9863/query) - 1.1782ms [TRACE] 06:39:16.177 segment.go:resolve(powerline) - 0s [TRACE] 06:39:16.177 segment.go:string( {{ .CurrentDate | date .Format }} ) - 0s [TRACE] 06:39:16.177 segment.go:resolve(diamond) - 0s [TRACE] 06:39:16.177 engine.go:applyPowerShellBleedPatch() - 0s [TRACE] 06:39:16.177 primary.go:writePrimaryPrompt() - 0s [TRACE] 06:39:16.177 primary.go:Primary() - 0s [DEBUG] 06:39:16.177 terminal_windows.go:TerminalWidth:99 → terminal width: 120 [TRACE] 06:39:16.177 engine.go:canWriteRightBlock() - 0s [TRACE] 06:39:16.177 debug.go:PrintDebug() - 0s [TRACE] 06:39:16.177 debug.go:PrintDebug() - 0s
Tried disable cache, but didn't work :(
cache
@jaliyaudagedara how did you disable the cache?
Code of Conduct
What happened?
dotnet segment showing incorrect version.
Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output