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

The `File version` of `install-amd64.exe` is always `0.0.0.0` #4485

Closed liudonghua123 closed 10 months ago

liudonghua123 commented 10 months ago

Code of Conduct

What happened?

The File version of install-amd64.exe is always 0.0.0.0.

image

Theme

Not involved.

What OS are you seeing the problem on?

Windows

Which shell are you using?

other (please specify)

Log output

oh-my-posh debug --plain Liu.D.H ~ 09:55 > oh-my-posh debug --plain Version: 18.26.1 Shell: cmd (clink v1.5.16.51802d) Prompt: Liu.D.H ~ 10:52 > Segments: ConsoleTitle(false) - 0 ms Session(true) - 1 ms Path(true) - 2 ms Git(false) - 5 ms Time(true) - 1 ms Run duration: 14.968ms Cache path: C:\Users\Liu.D.H\AppData\Local\oh-my-posh Config path: C:\Users\Liu.D.H\AppData\Local\Programs\oh-my-posh\themes\liudonghua.omp.json Logs: [DEBUG] 10:52:52.805 shell.go:Getenv:398 → NO DATA [TRACE] 10:52:52.805 shell.go:Getenv(TERM_PROGRAM) - 0s [DEBUG] 10:52:52.805 shell.go:Getenv:398 → C:\Users\Liu.D.H\AppData\Local [TRACE] 10:52:52.805 shell.go:Getenv(LOCALAPPDATA) - 0s [TRACE] 10:52:52.805 shell_windows.go:CachePath() - 0s [DEBUG] 10:52:52.805 shell.go:Getenv:398 → C:\Users\Liu.D.H\AppData\Local\Programs\oh-my-posh\themes\liudonghua.omp.json [TRACE] 10:52:52.805 shell.go:Getenv(POSH_THEME) - 0s [DEBUG] 10:52:52.805 shell.go:Shell:652 → no shell name provided in flags, trying to detect it [DEBUG] 10:52:52.812 shell.go:Shell:660 → process name: cmd.exe [TRACE] 10:52:52.812 shell.go:Shell() - 6.3631ms [TRACE] 10:52:52.812 shell.go:resolveConfigPath() - 6.3631ms [TRACE] 10:52:52.812 shell.go:Init() - 6.9933ms [TRACE] 10:52:52.812 shell.go:Flags() - 0s [TRACE] 10:52:52.813 config.go:loadConfig() - 1.0868ms [TRACE] 10:52:52.813 shell.go:Flags() - 0s [DEBUG] 10:52:52.813 shell.go:Getenv:398 → NO DATA [TRACE] 10:52:52.813 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s [TRACE] 10:52:52.813 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 shell_windows.go:WindowsRegistryKeyValue:215 → ColorizationColor(DWORD): 0xC46171B4 [TRACE] 10:52:52.813 shell.go:Shell() - 0s [DEBUG] 10:52:52.813 shell.go:Getenv:398 → clink v1.5.16.51802d [TRACE] 10:52:52.813 shell.go:Getenv(POSH_SHELL_VERSION) - 0s [DEBUG] 10:52:52.813 debug.go:PrintDebug:22 → Segment: Title [DEBUG] 10:52:52.813 text.go:Render:70 → Rendering template: [DEBUG] 10:52:52.813 shell.go:Getenv:398 → 12 [TRACE] 10:52:52.813 shell.go:Getenv(POSH_CURSOR_LINE) - 0s [DEBUG] 10:52:52.813 shell.go:Getenv:398 → NO DATA [TRACE] 10:52:52.813 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s [TRACE] 10:52:52.813 shell.go:Flags() - 0s [TRACE] 10:52:52.813 shell.go:Flags() - 0s [TRACE] 10:52:52.813 shell.go:Shell() - 0s [TRACE] 10:52:52.813 shell.go:Shell() - 0s [TRACE] 10:52:52.813 shell.go:Flags() - 0s [TRACE] 10:52:52.813 shell.go:Flags() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 shell.go:Pwd:428 → C:\Users\Liu.D.H [TRACE] 10:52:52.813 shell.go:Pwd() - 0s [DEBUG] 10:52:52.813 shell_windows.go:56 → C:\Users\Liu.D.H [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 segment.go:SetEnabled:512 → Segment: Time [TRACE] 10:52:52.813 shell.go:Flags() - 0s [DEBUG] 10:52:52.813 properties.go:GetString:28 → 15:04 [TRACE] 10:52:52.813 shell.go:Pwd() - 0s [DEBUG] 10:52:52.813 shell_windows.go:56 → C:\Users\Liu.D.H [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 segment.go:SetEnabled:512 → Segment: Path [TRACE] 10:52:52.813 shell.go:Pwd() - 0s [TRACE] 10:52:52.813 shell_windows.go:Root() - 0s [TRACE] 10:52:52.813 shell.go:Shell() - 0s [TRACE] 10:52:52.813 shell.go:Shell() - 0s [TRACE] 10:52:52.813 shell.go:Shell() - 0s [TRACE] 10:52:52.813 shell.go:StatusCodes() - 0s [TRACE] 10:52:52.813 shell_windows.go:IsWsl() - 0s [TRACE] 10:52:52.813 shell.go:Pwd() - 0s [DEBUG] 10:52:52.813 shell_windows.go:56 → C:\Users\Liu.D.H [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 segment.go:SetEnabled:512 → Segment: Git [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 properties.go:GetBool:22 → mapped_locations_enabled: true [DEBUG] 10:52:52.813 properties.go:GetString:28 →  [DEBUG] 10:52:52.813 properties.go:GetString:28 →  [DEBUG] 10:52:52.813 shell.go:TemplateCache:833 → environment: [=C:=C:\Users\Liu.D.H =clink.bin=C:\Program Files (x86)\clink =clink.id=6156 =clink.profile=C:\Users\Liu.D.H\AppData\Local\clink =clink.scripts= =ExitCode=00000000 ALLUSERSPROFILE=C:\ProgramData ANDROID_HOME=D:\apps\android_sdk APPDATA=C:\Users\Liu.D.H\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133409017362153288 CLINK_DIR=C:\Program Files (x86)\clink clink_dummy_capture_env= COLUMNS=120 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=LAPTOP-TP ComSpec=C:\WINDOWS\system32\cmd.exe DataGrip=D:\apps\JetBrains\DataGrip 2022.3.1\bin; DriverData=C:\Windows\System32\Drivers\DriverData DXSDK_DIR=C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\ FFMPEG_HOME=D:\apps\ffmpeg-2021-08-22-git-d905af0c24-full_build FLUTTER_GIT_URL=https://mirrors.tuna.tsinghua.edu.cn/git/flutter-sdk.git FLUTTER_HOME=D:\apps\flutter FLUTTER_STORAGE_BASE_URL=https://mirrors.tuna.tsinghua.edu.cn/flutter GOPATH=C:\Users\Liu.D.H\go HOMEDRIVE=C: HOMEPATH=\Users\Liu.D.H IMAGEMAGICK_HOME=D:\apps\ImageMagick-7.1.0-portable-Q16-HDRI-x64 JAVA_HOME=C:\Program Files\Java\jdk-17.0.4 LINES=18 LOCALAPPDATA=C:\Users\Liu.D.H\AppData\Local LOGONSERVER=\\LAPTOP-TP M2_HOME=D:\apps\apache-maven-3.8.6 MINIFORGE_HOME=D:\apps\mambaforge MSYS64=C:\msys64 NDK_HOME=D:\apps\android_sdk\ndk\25.0.8775105 NODE_TLS_REJECT_UNAUTHORIZED.unused=0 NUMBER_OF_PROCESSORS=8 NVM_HOME=C:\Users\Liu.D.H\AppData\Roaming\nvm NVM_SYMLINK=C:\Program Files\nodejs OneDrive=C:\Users\Liu.D.H\OneDrive OS=Windows_NT Path=C:\Users\Liu.D.H\AppData\Roaming\Composer\vendor\bin;C:\ActiveTcl\bin;C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\Liu.D.H\AppData\Roaming\nvm;C:\Program Files (x86)\NetSarang\Xshell 7\;C:\Program Files (x86)\NetSarang\Xftp 7\;C:\Program Files\Git\cmd;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;D:\apps\wasmer\bin;D:\apps\wasmer\globals\wapm_packages\.bin;C:\Program Files\dotnet\;D:\apps\sqlite;C:\Users\Liu.D.H\AppData\Roaming\nvm;C:\Program Files\nodejs;D:\apps\go\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\WasmEdge\bin;%PNPM_HOME%;C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Scripts\;C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\;C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\;C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python312\Scripts\;C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python312\;C:\Users\Liu.D.H\.cargo\bin;C:\Users\Liu.D.H\AppData\Local\Microsoft\WindowsApps;C:\Users\Liu.D.H\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Liu.D.H\AppData\Roaming\nvm;C:\Program Files\nodejs;D:\apps\android_sdk\tools;D:\apps\android_sdk\tools\bin;D:\apps\android_sdk\platform-tools;D:\apps\android_sdk\cmdline-tools\latest\bin;D:\apps\android_sdk\build-tools\29.0.3;D:\apps\android_sdk\ndk-bundle;C:\Program Files\Java\jdk-17.0.4\bin;D:\apps\flutter\bin;D:\apps\apache-maven-3.8.6\bin;D:\apps\ffmpeg-2021-08-22-git-d905af0c24-full_build\bin;D:\apps\ImageMagick-7.1.0-portable-Q16-HDRI-x64;D:\apps;D:\apps\bin;D:\apps\chromecacheview;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Users\Liu.D.H\AppData\Roaming\npm;C:\Users\Liu.D.H\AppData\Local\Programs\oh-my-posh\bin;C:\Users\Liu.D.H\AppData\Local\Pub\Cache\bin;D:\apps\Redis-x64-5.0.14.1;D:\apps\LLVM\bin;D:\apps\JetBrains\DataGrip 2022.3.1\bin;;C:\Users\Liu.D.H\.dotnet\tools;D:\apps\mambaforge;D:\apps\mambaforge\Scripts;D:\apps\mambaforge\condabin;C:\Users\Liu.D.H\go\bin;D:\Downloads\vive;C:\Users\Liu.D.H\ciphey\Scripts\;D:\apps\php-8.2.12-nts-Win32-vs16-x64;C:\Users\Liu.D.H\composer;C:\Users\Liu.D.H\AppData\Roaming\Composer\vendor\bin; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PNPM_HOME=C:\Users\Liu.D.H\AppData\Local\pnpm POSH_CURSOR_LINE=12 POSH_INSTALLER=manual POSH_SHELL_VERSION=clink v1.5.16.51802d POSH_THEME=C:\Users\Liu.D.H\AppData\Local\Programs\oh-my-posh\themes\liudonghua.omp.json POSH_THEMES_PATH=C:\Users\Liu.D.H\AppData\Local\Programs\oh-my-posh\themes PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 142 Stepping 10, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=8e0a 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 PUB_HOSTED_URL=https://mirrors.tuna.tsinghua.edu.cn/dart-pub PYTHONUTF8=1 RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\LIUD~1.H\AppData\Local\Temp TMP=C:\Users\LIUD~1.H\AppData\Local\Temp USERDOMAIN=LAPTOP-TP USERDOMAIN_ROAMINGPROFILE=LAPTOP-TP USERNAME=Liu.D.H USERPROFILE=C:\Users\Liu.D.H WASMER_CACHE_DIR=C:\Users\Liu.D.H\.wasmer\cache WASMER_DIR=D:\apps\wasmer windir=C:\WINDOWS WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={0caa0dad-35be-5f56-a8ff-afceeeaa6101} WT_SESSION=f5a802a1-017d-403b-b3d5-a77c79ca4441 ZES_ENABLE_SYSMAN=1] [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 properties.go:GetString:28 → ~ [TRACE] 10:52:52.813 shell.go:Pwd() - 0s [DEBUG] 10:52:52.813 properties.go:GetKeyValueMap:46 → mapped_locations: map[] [TRACE] 10:52:52.813 shell.go:Pwd() - 0s [TRACE] 10:52:52.813 shell.go:PathSeparator() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 shell_windows.go:56 → C:\Users\Liu.D.H [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 shell_windows.go:56 → C:\Users\Liu.D.H [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [TRACE] 10:52:52.813 shell.go:GOOS() - 0s [DEBUG] 10:52:52.813 segment.go:SetEnabled:512 → Segment: Session [DEBUG] 10:52:52.814 shell.go:Getenv:398 → NO DATA [TRACE] 10:52:52.814 shell.go:Getenv(SSH_CONNECTION) - 0s [DEBUG] 10:52:52.814 shell.go:Getenv:398 → NO DATA [TRACE] 10:52:52.814 shell.go:Getenv(SSH_CLIENT) - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [DEBUG] 10:52:52.814 shell.go:User:563 → Liu.D.H [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:User() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:PathSeparator() - 0s [TRACE] 10:52:52.814 shell.go:PathSeparator() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [DEBUG] 10:52:52.814 shell.go:Host:575 → LAPTOP-TP [TRACE] 10:52:52.814 shell.go:Host() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [DEBUG] 10:52:52.814 shell.go:Getenv:398 → NO DATA [TRACE] 10:52:52.814 shell.go:Getenv(SHLVL) - 0s [TRACE] 10:52:52.814 shell.go:TemplateCache() - 1.053ms [TRACE] 10:52:52.814 shell.go:TemplateCache() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:PathSeparator() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:PathSeparator() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:GOOS() - 0s [TRACE] 10:52:52.814 shell.go:PathSeparator() - 0s [TRACE] 10:52:52.814 shell.go:Pwd() - 0s [TRACE] 10:52:52.814 shell_windows.go:IsWsl() - 0s [TRACE] 10:52:52.814 shell.go:StackCount() - 0s [DEBUG] 10:52:52.815 win32_windows.go:isWriteable:299 → not current user or in group [DEBUG] 10:52:52.815 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544 [DEBUG] 10:52:52.815 win32_windows.go:isWriteable:311 ↓ WRITE_DAC WRITE_OWNER SYNCHRONIZE DELETE READ_CONTROL [DEBUG] 10:52:52.815 win32_windows.go:isWriteable:313 → user has write access [TRACE] 10:52:52.815 shell_windows.go:DirIsWritable() - 524µs [TRACE] 10:52:52.815 shell.go:TemplateCache() - 0s [DEBUG] 10:52:52.818 shell.go:CommandPath:614 → C:\Program Files\Git\cmd\git.exe [TRACE] 10:52:52.818 shell.go:CommandPath(git.exe) - 5.1802ms [TRACE] 10:52:52.818 shell.go:HasCommand(git.exe) - 5.1802ms [TRACE] 10:52:52.818 shell.go:Pwd() - 0s [ERROR] 10:52:52.819 shell.go:HasParentFilePath:748 → CreateFile .git: The system cannot find the file specified. [TRACE] 10:52:52.819 shell.go:HasParentFilePath(.git) - 661.5µs [DEBUG] 10:52:52.819 properties.go:GetBool:22 → fetch_bare_info: false [DEBUG] 10:52:52.819 text.go:Render:70 → Rendering template: {{ .CurrentDate | date .Format }} > [DEBUG] 10:52:52.819 text.go:Render:70 → Rendering template: {{ .Path }} [DEBUG] 10:52:52.819 text.go:Render:70 → Rendering template: {{ .UserName }} [TRACE] 10:52:52.819 shell.go:TemplateCache() - 0s [TRACE] 10:52:52.819 shell.go:TemplateCache() - 0s [TRACE] 10:52:52.819 shell.go:TemplateCache() - 0s [TRACE] 10:52:52.819 shell.go:Shell() - 0s [TRACE] 10:52:52.819 shell.go:Shell() - 0s [TRACE] 10:52:52.819 shell.go:Shell() - 0s [DEBUG] 10:52:52.819 text.go:Render:70 → Rendering template: diamond [DEBUG] 10:52:52.820 text.go:Render:70 → Rendering template: plain [DEBUG] 10:52:52.820 text.go:Render:70 → Rendering template: plain [DEBUG] 10:52:52.820 text.go:Render:70 → Rendering template: diamond [TRACE] 10:52:52.820 shell.go:Shell() - 0s [TRACE] 10:52:52.820 shell.go:Shell() - 0s [TRACE] 10:52:52.820 shell.go:Shell() - 0s [TRACE] 10:52:52.820 shell.go:Shell() - 0s [DEBUG] 10:52:52.820 shell.go:Getenv:398 → C:\Users\Liu.D.H\AppData\Local [TRACE] 10:52:52.820 shell.go:Getenv(LOCALAPPDATA) - 0s [TRACE] 10:52:52.820 shell_windows.go:CachePath() - 0s [TRACE] 10:52:52.820 shell.go:Flags() - 0s Liu.D.H ~ 10:52 > ```
liudonghua123 commented 10 months ago

I tried to fix this problem, see https://github.com/JanDeDobbeleer/oh-my-posh/pull/4486.

And it works for me locally.

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