JanDeDobbeleer / oh-my-posh

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

clink prints random values on error #5462

Closed BSCSSTUDENT2002 closed 2 months ago

BSCSSTUDENT2002 commented 2 months ago

Code of Conduct

What happened?

I'm using ohmyposh using Clink, when I stop my Vite server it just prints some random numbers with a red background no matter what theme I use err

Theme

jblab_2021

What OS are you seeing the problem on?

Windows

Which shell are you using?

cmd

Log output

Version: 21.26.3

Shell: cmd (clink v1.6.21.f97375)

Prompt:

   E:  ...  StoreApp  18:16  0s 

Segments:

ConsoleTitle(true)                         -   8 ms
Os(true)                                   -   0 ms
Path(true)                                 -   7 ms
Time(true)                                 -   0 ms
Executiontime(true)                        -   1 ms

Run duration: 200.5659ms

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

Config path: C:\Users\AHMAD\jblab_2021.omp.json

Logs:

[DEBUG] 18:16:22.190 os.go:Getenv:306 → C:\Users\AHMAD\AppData\Local
[TRACE] 18:16:22.191 os.go:Getenv(LOCALAPPDATA) - 67.0885ms
[TRACE] 18:16:22.191 os_windows.go:CachePath() - 67.0885ms
[DEBUG] 18:16:22.192 os.go:Getenv:306 → C:\Users\AHMAD\jblab_2021.omp.json
[TRACE] 18:16:22.192 os.go:Getenv(POSH_THEME) - 0s
[DEBUG] 18:16:22.201 os.go:Shell:581 → no shell name provided in flags, trying to detect it
[DEBUG] 18:16:22.206 os.go:Shell:589 → process name: cmd.exe
[TRACE] 18:16:22.207 os.go:Shell() - 15.3995ms
[TRACE] 18:16:22.207 os.go:resolveConfigPath() - 15.4147ms
[TRACE] 18:16:22.207 os.go:Init() - 83.5029ms
[TRACE] 18:16:22.207 os.go:Flags() - 0s
[TRACE] 18:16:22.209 load.go:loadConfig() - 1.0807ms
[TRACE] 18:16:22.209 os.go:Flags() - 0s
[DEBUG] 18:16:22.218 debug.go:44 → Terminal shell: %s shell
[DEBUG] 18:16:22.218 debug.go:44 → Terminal program: %s vscode
[DEBUG] 18:16:22.218 os.go:Getenv:306 → NO DATA
[TRACE] 18:16:22.218 os.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 18:16:22.233 os_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[TRACE] 18:16:22.233 os.go:GOOS() - 0s
[DEBUG] 18:16:22.233 os_windows.go:WindowsRegistryKeyValue:219 → ColorizationColor(DWORD): 0xC40078D7   
[TRACE] 18:16:22.250 os.go:Shell() - 0s
[DEBUG] 18:16:22.250 os.go:Getenv:306 → clink v1.6.21.f97375
[TRACE] 18:16:22.250 os.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 18:16:22.250 debug.go:PrintDebug:23 → Segment: Title
[DEBUG] 18:16:22.252 text.go:Render:73 → Rendering template: {{if .Root}} ⚡ {{end}}{{.Folder | replace "
~" "🏠"}} @ {{.HostName}}
[TRACE] 18:16:22.255 os_windows.go:Root() - 996.7µs
[TRACE] 18:16:22.255 os.go:Shell() - 0s
[TRACE] 18:16:22.255 os.go:StatusCodes() - 0s
[TRACE] 18:16:22.255 os_windows.go:IsWsl() - 0s
[DEBUG] 18:16:22.255 os.go:TemplateCache:789 → environment: [=clink.bin=C:\Program Files (x86)\clink =clink.id=2576 =clink.profile=C:\Users\AHMAD\AppData\Local\clink =clink.scripts= =E:=E:\ReactApps\StoreApp 
=ExitCode=00000000 ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\AHMAD\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133588859057568731 CLINK_DIR=C:\Program Files (x86)\clink clink_dummy_capture_env=  COLUMNS=104 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=WINDOWS ComSpec=C:\Windows\system32\cmd.exe DriverData=C:\Windows\System32\Drivers\DriverData FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default HOMEDRIVE=C: HOMEPATH=\Users\AHMAD LINES=11 LOCALAPPDATA=C:\Users\AHMAD\AppData\Local LOGONSERVER=\\WINDOWS NUMBER_OF_PROCESSORS=4 OneDrive=C:\Users\AHMAD\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:\ProgramData\chocolatey\bin;C:\Program Files (x86)\VSCodium\bin;C:\Program Files\nodejs\;C:\xampp\php;C:\composer;C:\Program Files\Git\cmd;C:\Program Files\VSCodium\bin;C:\Users\AHMAD\.console-ninja\.bin;C:\Users\AHMAD\AppData\Local\Microsoft\WindowsApps;C:\Users\AHMAD\AppData\Roaming\npm;C:\Users\AHMAD\Downloads\Compressed\aria2-1.37.0-win-64bit-build1\aria2-1.37.0-win-64bit-build1;C:\Users\AHMAD\AppData\Roaming\Composer\vendor\bin;E:\xampp\php;C:\Users\AHMAD\composer;C:\Users\AHMAD\AppData\Local\Programs\oh-my-posh\bin;C:\Program Files\Git\bin;C:\Program Files\Git\usr\bin;C:\Users\AHMAD\AppData\Local\Programs\Microsoft VS Code\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC 
POSH_CURSOR_LINE=11 POSH_INSTALLER=winget POSH_PID=9112 POSH_SHELL_VERSION=clink v1.6.21.f97375 POSH_THEME=C:\Users\AHMAD\jblab_2021.omp.json POSH_THEMES_PATH=C:\Users\AHMAD\AppData\Local\Programs\oh-my-posh\themes PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=2505 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PROMPT=$P$G PSModulePath=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\AHMAD\AppData\Local\Temp TMP=C:\Users\AHMAD\AppData\Local\Temp USERDOMAIN=WINDOWS USERDOMAIN_ROAMINGPROFILE=WINDOWS USERNAME=AHMAD USERPROFILE=C:\Users\AHMAD windir=C:\Windows TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.83.1 LANG=en_US.UTF-8 COLORTERM=truecolor GIT_ASKPASS=c:\Program Files (x86)\VSCodium\resources\app\extensions\git\dist\askpass.sh VSCODE_GIT_ASKPASS_NODE=C:\Program Files (x86)\VSCodium\VSCodium.exe VSCODE_GIT_ASKPASS_EXTRA_ARGS= VSCODE_GIT_ASKPASS_MAIN=c:\Program Files (x86)\VSCodium\resources\app\extensions\git\dist\askpass-main.js VSCODE_GIT_IPC_HANDLE=\\.\pipe\vscode-git-fb7b04151c-sock]
[TRACE] 18:16:22.255 os.go:GOOS() - 0s
[DEBUG] 18:16:22.257 os.go:Pwd:336 → E:\ReactApps\StoreApp
[TRACE] 18:16:22.258 os.go:Pwd() - 3.0517ms
[DEBUG] 18:16:22.258 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.258 os_windows.go:IsWsl() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[DEBUG] 18:16:22.258 os.go:User:474 → AHMAD
[TRACE] 18:16:22.258 os.go:User() - 0s
[DEBUG] 18:16:22.258 os.go:Host:491 → Windows
[TRACE] 18:16:22.258 os.go:Host() - 0s
[TRACE] 18:16:22.258 os.go:GOOS() - 0s
[DEBUG] 18:16:22.258 os.go:Getenv:306 → NO DATA
[TRACE] 18:16:22.258 os.go:Getenv(SHLVL) - 0s
[TRACE] 18:16:22.258 os.go:TemplateCache() - 4.0484ms
[TRACE] 18:16:22.258 os.go:Shell() - 0s
[DEBUG] 18:16:22.258 os.go:Getenv:306 → 11
[TRACE] 18:16:22.258 os.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 18:16:22.258 os.go:Getenv:306 → NO DATA
[TRACE] 18:16:22.258 os.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 18:16:22.258 os.go:Flags() - 0s
[TRACE] 18:16:22.258 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 status.go:Init:53 → {{ .Code }}
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 segment.go:SetEnabled:115 → Segment: Status
[DEBUG] 18:16:22.259 segment.go:SetEnabled:115 → Segment: Root
[DEBUG] 18:16:22.259 segment.go:SetEnabled:115 → Segment: Os
[DEBUG] 18:16:22.259 segment.go:SetEnabled:115 → Segment: Path
[TRACE] 18:16:22.259 os.go:StatusCodes() - 0s
[DEBUG] 18:16:22.259 text.go:Render:73 → Rendering template: {{ .Code }}
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 path.go:124 → display_cygpath: false
[DEBUG] 18:16:22.259 os.go:Enabled:34 → 
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[TRACE] 18:16:22.259 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.259 os.go:PathSeparator() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Shell() - 0s
[TRACE] 18:16:22.259 os.go:Shell() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 segment.go:SetEnabled:115 → Segment: Time
[DEBUG] 18:16:22.259 time.go:Enabled:29 → 15:04
[TRACE] 18:16:22.259 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 segment.go:SetEnabled:115 → Segment: Git
[TRACE] 18:16:22.259 os.go:GOOS() - 0s
[DEBUG] 18:16:22.259 os.go:Getenv:306 → C:\Users\AHMAD\AppData\Local
[TRACE] 18:16:22.259 os.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:16:22.259 os_windows.go:Root() - 0s
[TRACE] 18:16:22.259 os.go:Flags() - 0s
[TRACE] 18:16:22.259 os.go:Pwd() - 0s
[DEBUG] 18:16:22.259 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.260 os.go:GOOS() - 0s
[DEBUG] 18:16:22.260 segment.go:SetEnabled:115 → Segment: Executiontime
[DEBUG] 18:16:22.260 executiontime.go:Enabled:57 → always_enabled: false
[TRACE] 18:16:22.260 os.go:ExecutionTime() - 0s
[DEBUG] 18:16:22.260 executiontime.go:Enabled:59 → threshold: 0.000000
[DEBUG] 18:16:22.260 executiontime.go:Enabled:63 → dallas
[TRACE] 18:16:22.260 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.260 os.go:TemplateCache() - 0s
[DEBUG] 18:16:22.260 status.go:Enabled:42 → always_enabled: false
[DEBUG] 18:16:22.259 path.go:replaceMappedLocations:517 → mapped_locations_enabled: true
[DEBUG] 18:16:22.264 path.go:replaceMappedLocations:518 → 
[DEBUG] 18:16:22.264 path.go:replaceMappedLocations:519 → 
[DEBUG] 18:16:22.264 os_windows.go:58 → C:\Users\AHMAD
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[DEBUG] 18:16:22.264 path.go:replaceMappedLocations:520 → 
[DEBUG] 18:16:22.264 path.go:replaceMappedLocations:525 → mapped_locations: map[]
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[TRACE] 18:16:22.264 os.go:GOOS() - 0s
[DEBUG] 18:16:22.264 path.go:makeFolderFormatMap:841 → NO DATA
[DEBUG] 18:16:22.264 path.go:setStyle:192 → agnoster_short
[DEBUG] 18:16:22.264 path.go:getAgnosterShortPath:464 → max_depth: 1
[DEBUG] 18:16:22.264 path.go:getAgnosterShortPath:469 → ...
[DEBUG] 18:16:22.264 path.go:getAgnosterShortPath:470 → hide_root_location: false
[DEBUG] 18:16:22.265 path.go:colorizePath:715 → cycle: []
[DEBUG] 18:16:22.265 path.go:getFolderSeparator:250 → NO DATA
[DEBUG] 18:16:22.265 path.go:getFolderSeparator:252 → <transparent>  </>
[DEBUG] 18:16:22.265 path.go:colorizePath:718 → cycle_folder_separator: false
[DEBUG] 18:16:22.265 path.go:colorizePath:719 → %s
[DEBUG] 18:16:22.265 path.go:colorizePath:721 → %s
[DEBUG] 18:16:22.265 path.go:colorizePath:722 → %s
[DEBUG] 18:16:22.265 path.go:colorizePath:723 → %s
[TRACE] 18:16:22.265 os.go:Pwd() - 0s
[TRACE] 18:16:22.265 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.265 os.go:StackCount() - 0s
[DEBUG] 18:16:22.266 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 18:16:22.266 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 18:16:22.266 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 18:16:22.266 os_windows.go:DirIsWritable() - 1.0002ms
[TRACE] 18:16:22.266 os.go:TemplateCache() - 0s
[DEBUG] 18:16:22.273 os.go:CommandPath:533 → C:\Program Files\Git\cmd\git.exe
[TRACE] 18:16:22.273 os.go:CommandPath(git.exe) - 14.0385ms
[TRACE] 18:16:22.273 os.go:HasCommand(git.exe) - 14.0385ms
[TRACE] 18:16:22.273 os.go:Pwd() - 0s
[DEBUG] 18:16:22.273 os.go:ResolveSymlink:433 → E:\ReactApps\StoreApp
[TRACE] 18:16:22.273 os.go:ResolveSymlink(E:\ReactApps\StoreApp) - 0s
[ERROR] 18:16:22.322 os.go:HasParentFilePath:697 → CreateFile .git: The system cannot find the file specified.
[TRACE] 18:16:22.322 os.go:HasParentFilePath(.git) - 48.4811ms
[DEBUG] 18:16:22.322 git.go:shouldDisplay:284 → fetch_bare_info: false
[DEBUG] 18:16:22.322 text.go:Render:73 → Rendering template:  {{ .Icon }}
[DEBUG] 18:16:22.322 text.go:Render:73 → Rendering template:  {{ .CurrentDate | date .Format }}
[DEBUG] 18:16:22.322 text.go:Render:73 → Rendering template:  {{ .Path }}
[DEBUG] 18:16:22.322 text.go:Render:73 → Rendering template:  {{ .FormattedMs }}s
[TRACE] 18:16:22.323 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.323 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.323 os.go:TemplateCache() - 0s
[TRACE] 18:16:22.323 os.go:TemplateCache() - 0s
[DEBUG] 18:16:22.323 text.go:Render:73 → Rendering template: diamond
[DEBUG] 18:16:22.323 text.go:Render:73 → Rendering template: powerline
[DEBUG] 18:16:22.323 text.go:Render:73 → Rendering template: diamond
[DEBUG] 18:16:22.323 text.go:Render:73 → Rendering template: diamond
[DEBUG] 18:16:22.324 text.go:Render:73 → Rendering template: diamond
[DEBUG] 18:16:22.324 text.go:Render:73 → Rendering template: diamond
[DEBUG] 18:16:22.324 text.go:Render:73 → Rendering template: diamond
[TRACE] 18:16:22.324 os.go:Shell() - 0s
[TRACE] 18:16:22.324 os.go:Shell() - 0s
[TRACE] 18:16:22.324 os.go:Flags() - 0s
[TRACE] 18:16:22.324 os.go:Shell() - 0s
[TRACE] 18:16:22.324 os.go:Shell() - 0s
[DEBUG] 18:16:22.325 os.go:Getenv:306 → C:\Users\AHMAD\AppData\Local
[TRACE] 18:16:22.325 os.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 18:16:22.325 os_windows.go:CachePath() - 0s
[TRACE] 18:16:22.325 os.go:Flags() - 0s
JanDeDobbeleer commented 2 months ago

@BSCSSTUDENT2002 this is the last command's exit code, not a bug but the other tool that exits with that code.

BSCSSTUDENT2002 commented 2 months ago

Ok,Thanks