Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt stuck when cd -ing into a large git repository #5126

Closed
1 task done
TheChilledBuffalo opened this issue Jun 19, 2024 · 2 comments
Closed
1 task done

Prompt stuck when cd -ing into a large git repository #5126

TheChilledBuffalo opened this issue Jun 19, 2024 · 2 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@TheChilledBuffalo
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

What happened?

If you are working on a pretty big git project and the git plugin is enabled in oh-my-posh, changing the current directory to that repository can cause the prompt to get stuck for a few seconds until it determines the branch we are on. And determining the branch can be slow when the repo is quite big.

The log below shows 1446ms, but at times when the system is under heavy load or a project is building in the background, it can take a lot more. My suggestion would be, if the plugin takes, for example, more than 300ms to determine the branch, it skips the check and updates it later when the process is done. Slightly related to #5036

Theme

tokyonight_storm

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 21.13.1

Shell: powershell (5.1.22621.3672)

Prompt:

➜ Floorp ⚡( ESR115)                                                                                           22.2.0
▶

Segments:

ConsoleTitle(true)                        -   1 ms
Text(true)                                -   0 ms
Path(true)                                -   1 ms
Git(true)                                 - 1446 ms
Status(false)                             -   0 ms
Node(true)                                -  44 ms
Php(false)                                -   1 ms
Python(false)                             -  13 ms
Julia(false)                              -   1 ms
Ruby(false)                               -   1 ms
Go(false)                                 -   1 ms
Command(false)                            - 274 ms
Text(true)                                -   0 ms

Run duration: 1.7421698s

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

Config path: C:\Users\Abhishek\Documents\tokyonight_storm.omp.json

Logs:

[DEBUG] 22:18:19.726 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:19.727 shell.go:Getenv(TERM_PROGRAM) - 709.3µs
[DEBUG] 22:18:19.727 shell.go:Getenv:326 → C:\Users\Abhishek\AppData\Local
[TRACE] 22:18:19.727 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:18:19.727 shell_windows.go:CachePath() - 0s
[DEBUG] 22:18:19.728 shell.go:Getenv:326 → C:\Users\Abhishek\Documents\tokyonight_storm.omp.json
[TRACE] 22:18:19.728 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 22:18:19.728 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 22:18:19.739 shell.go:Shell:609 → process name: powershell.exe
[TRACE] 22:18:19.739 shell.go:Shell() - 10.694ms
[TRACE] 22:18:19.739 shell.go:resolveConfigPath() - 10.694ms
[TRACE] 22:18:19.739 shell.go:Init() - 12.5542ms
[TRACE] 22:18:19.739 shell.go:Flags() - 0s
[TRACE] 22:18:19.742 config.go:loadConfig() - 3.3023ms
[TRACE] 22:18:19.742 shell.go:Flags() - 0s
[DEBUG] 22:18:19.742 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:19.742 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 22:18:19.742 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[TRACE] 22:18:19.742 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.742 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC40078D4
[DEBUG] 22:18:19.742 text.go:Render:72 → Rendering template: p:t-background
[TRACE] 22:18:19.742 shell.go:Shell() - 0s
[DEBUG] 22:18:19.742 shell.go:Getenv:326 → 5.1.22621.3672
[TRACE] 22:18:19.742 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 22:18:19.742 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 22:18:19.742 text.go:Render:72 → Rendering template:  {{ .Folder }} :: {{if .Root}}Admin{{end}}
[TRACE] 22:18:19.744 shell_windows.go:Root() - 0s
[TRACE] 22:18:19.744 shell.go:Shell() - 0s
[TRACE] 22:18:19.744 shell.go:StatusCodes() - 0s
[TRACE] 22:18:19.744 shell_windows.go:IsWsl() - 0s
[DEBUG] 22:18:19.744 shell.go:TemplateCache:782 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Abhishek\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=ABHISHEKLOQ ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DriverData=C:\Windows\System32\Drivers\DriverData HOMEDRIVE=C: HOMEPATH=\Users\Abhishek LOCALAPPDATA=C:\Users\Abhishek\AppData\Local LOGONSERVER=\\ABHISHEKLOQ NUMBER_OF_PROCESSORS=16 NVM_HOME=C:\Users\Abhishek\AppData\Roaming\nvm NVM_SYMLINK=C:\Program Files\nodejs OneDrive=C:\Users\Abhishek\OneDrive OS=Windows_NT Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files\GitHub CLI\;C:\Users\Abhishek\AppData\Local\pnpm;C:\Users\Abhishek\.cargo\bin;C:\Users\Abhishek\AppData\Local\Microsoft\WindowsApps;C:\Users\Abhishek\AppData\Local\JetBrains\Toolbox\scripts;C:\Users\Abhishek\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Users\Abhishek\AppData\Local\GitHubDesktop\bin;C:\Users\Abhishek\AppData\Local\Programs\oh-my-posh\bin;C:\Users\Abhishek\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Abhishek\AppData\Local\Microsoft\WinGet\Links;C:\Users\Abhishek\AppData\Local\Microsoft\WinGet\Packages\Spicetify.Spicetify_Microsoft.Winget.Source_8wekyb3d8bbwe; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL PNPM_HOME=C:\Users\Abhishek\AppData\Local\pnpm POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=2 POSH_GIT_ENABLED=False POSH_INSTALLER=winget POSH_PID=25472 POSH_SHELL_VERSION=5.1.22621.3672 POSH_THEME=C:\Users\Abhishek\Documents\tokyonight_storm.omp.json POSH_THEMES_PATH=C:\Users\Abhishek\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 25 Model 116 Stepping 1, AuthenticAMD PROCESSOR_LEVEL=25 PROCESSOR_REVISION=7401 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\Abhishek\Documents\WindowsPowerShell\Modules;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\Abhishek\AppData\Local\Temp TMP=C:\Users\Abhishek\AppData\Local\Temp USERDOMAIN=ABHISHEKLOQ USERDOMAIN_ROAMINGPROFILE=ABHISHEKLOQ USERNAME=Abhishek USERPROFILE=C:\Users\Abhishek windir=C:\Windows WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf} WT_SESSION=7b3df015-145d-4331-8c76-3fff30b14089]
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 shell.go:Pwd:356 → F:\Floorp
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[DEBUG] 22:18:19.744 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:19.744 shell_windows.go:IsWsl() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 shell.go:User:494 → Abhishek
[TRACE] 22:18:19.744 shell.go:User() - 0s
[DEBUG] 22:18:19.744 shell.go:Host:511 → AbhishekLOQ
[TRACE] 22:18:19.744 shell.go:Host() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:19.744 shell.go:Getenv(SHLVL) - 0s
[TRACE] 22:18:19.744 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:19.744 shell.go:Getenv:326 → 2
[TRACE] 22:18:19.744 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 22:18:19.744 shell.go:Getenv:326 → 1
[TRACE] 22:18:19.744 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[TRACE] 22:18:19.744 shell.go:Shell() - 0s
[TRACE] 22:18:19.744 shell.go:Shell() - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[DEBUG] 22:18:19.744 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:19.744 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[DEBUG] 22:18:19.744 segment.go:SetEnabled:557 → Segment: Text
[TRACE] 22:18:19.744 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:19.744 properties.go:GetString:28 → {{ .Code }}
[DEBUG] 22:18:19.744 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:19.744 segment.go:SetEnabled:557 → Segment: Git
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 segment.go:SetEnabled:557 → Segment: Status
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:StatusCodes() - 0s
[DEBUG] 22:18:19.744 segment.go:SetEnabled:557 → Segment: Path
[DEBUG] 22:18:19.744 text.go:Render:72 → Rendering template: {{ .Code }}
[DEBUG] 22:18:19.744 shell.go:Getenv:326 → C:\Users\Abhishek\AppData\Local
[TRACE] 22:18:19.744 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[TRACE] 22:18:19.744 shell.go:Shell() - 0s
[TRACE] 22:18:19.744 shell.go:Shell() - 0s
[TRACE] 22:18:19.744 shell.go:Flags() - 0s
[DEBUG] 22:18:19.744 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 22:18:19.744 properties.go:GetString:28 → 
[DEBUG] 22:18:19.744 properties.go:GetString:28 → 
[DEBUG] 22:18:19.744 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 properties.go:GetString:28 → ~
[DEBUG] 22:18:19.744 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:TemplateCache() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.744 properties.go:GetBool:22 → always_enabled: false
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[DEBUG] 22:18:19.744 properties.go:GetString:28 → NO DATA
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[DEBUG] 22:18:19.744 properties.go:GetString:28 → folder
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:GOOS() - 0s
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[DEBUG] 22:18:19.744 properties.go:GetString:28 → NO DATA
[TRACE] 22:18:19.744 shell.go:PathSeparator() - 0s
[DEBUG] 22:18:19.744 properties.go:GetString:28 → \
[TRACE] 22:18:19.744 shell.go:Pwd() - 0s
[TRACE] 22:18:19.744 shell.go:TemplateCache() - 0s
[TRACE] 22:18:19.744 shell.go:StackCount() - 0s
[DEBUG] 22:18:19.745 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 22:18:19.745 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 22:18:19.745 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 22:18:19.745 shell_windows.go:DirIsWritable() - 1.0522ms
[TRACE] 22:18:19.745 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:19.747 shell.go:CommandPath:553 → C:\Program Files\Git\cmd\git.exe
[TRACE] 22:18:19.747 shell.go:CommandPath(git.exe) - 2.8026ms
[TRACE] 22:18:19.747 shell.go:HasCommand(git.exe) - 2.8026ms
[TRACE] 22:18:19.747 shell.go:Pwd() - 0s
[TRACE] 22:18:19.747 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 22:18:19.747 properties.go:GetStringArray:52 → exclude_folders: []
[DEBUG] 22:18:19.747 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.747 properties.go:GetBool:22 → fetch_user: false
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.747 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:19.747 shell.go:Getenv(POSH_GIT_STATUS) - 0s
[DEBUG] 22:18:19.747 properties.go:GetBool:22 → fetch_status: true
[DEBUG] 22:18:19.747 properties.go:GetStringArray:52 → ignore_status: []
[DEBUG] 22:18:19.747 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:19.747 shell.go:GOOS() - 0s
[DEBUG] 22:18:19.747 properties.go:GetKeyValueMap:46 → status_formats: map[]
[DEBUG] 22:18:19.747 properties.go:GetKeyValueMap:46 → untracked_modes: map[]
[DEBUG] 22:18:19.747 properties.go:GetKeyValueMap:46 → ignore_submodules: map[]
[DEBUG] 22:18:21.190 shell.go:RunCommand:531 ↓
    # branch.oid 9b56cbb01fedcf034386d570785ec338fc8ca760
    # branch.head ESR115
    # branch.upstream origin/ESR115
    # branch.ab +0 -0
[TRACE] 22:18:21.190 shell.go:RunCommand(git.exe -C F:/Floorp --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 1.4429852s
[DEBUG] 22:18:21.190 properties.go:GetString:28 → 
[DEBUG] 22:18:21.190 properties.go:GetInt:40 → branch_max_length: 0
[DEBUG] 22:18:21.190 shell.go:HasFolder:438 → false
[TRACE] 22:18:21.190 shell.go:HasFolder(F:\Floorp\.git/rebase-merge) - 0s
[DEBUG] 22:18:21.190 shell.go:HasFolder:438 → false
[TRACE] 22:18:21.190 shell.go:HasFolder(F:\Floorp\.git/rebase-apply) - 0s
[DEBUG] 22:18:21.190 properties.go:GetString:28 → 
[DEBUG] 22:18:21.190 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.190 shell.go:HasFilesInDir(MERGE_MSG) - 0s
[DEBUG] 22:18:21.190 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.190 shell.go:HasFilesInDir(CHERRY_PICK_HEAD) - 0s
[DEBUG] 22:18:21.190 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.190 shell.go:HasFilesInDir(REVERT_HEAD) - 0s
[DEBUG] 22:18:21.190 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.190 shell.go:HasFilesInDir(sequencer/todo) - 0s
[DEBUG] 22:18:21.190 properties.go:GetString:28 → ≡
[DEBUG] 22:18:21.190 properties.go:GetBool:22 → fetch_upstream_icon: false
[TRACE] 22:18:21.190 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.190 text.go:Render:72 → Rendering template: <b>{{ .Path }}</b> <p:light-sky-blue></>
[DEBUG] 22:18:21.190 text.go:Render:72 → Rendering template: ➜
[DEBUG] 22:18:21.190 text.go:Render:72 → Rendering template: ({{ .HEAD}})
[TRACE] 22:18:21.191 shell.go:TemplateCache() - 0s
[TRACE] 22:18:21.191 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.191 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.191 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.191 text.go:Render:72 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:terminal-red{{ end }}
[TRACE] 22:18:21.191 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.192 text.go:Render:72 → Rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0)}}p:light-sky-blue {{ end }}
[TRACE] 22:18:21.193 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.193 text.go:Render:72 → Rendering template: {{ if gt .Ahead 0 }}p:terminal-blue{{ end }}
[TRACE] 22:18:21.193 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.193 text.go:Render:72 → Rendering template: {{ if gt .Behind 0 }}p:celeste-blue{{ end }}
[TRACE] 22:18:21.193 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.193 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.193 text.go:Render:72 → Rendering template: plain
[TRACE] 22:18:21.193 shell.go:Shell() - 0s
[TRACE] 22:18:21.193 shell.go:Shell() - 0s
[TRACE] 22:18:21.193 shell.go:Shell() - 0s
[TRACE] 22:18:21.193 shell.go:Shell() - 0s
[TRACE] 22:18:21.193 shell.go:Flags() - 0s
[TRACE] 22:18:21.193 shell.go:Flags() - 0s
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[TRACE] 22:18:21.193 shell.go:Flags() - 0s
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 properties.go:GetString:28 → environment
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 segment.go:SetEnabled:557 → Segment: Command
[TRACE] 22:18:21.193 shell.go:Flags() - 0s
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.193 shell.go:GOOS() - 0s
[DEBUG] 22:18:21.193 properties.go:GetString:28 → bash
[TRACE] 22:18:21.193 shell.go:GOOS() - 0s
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 segment.go:SetEnabled:557 → Segment: Python
[DEBUG] 22:18:21.193 segment.go:SetEnabled:557 → Segment: Node
[DEBUG] 22:18:21.193 shell.go:Getenv:326 → C:\Users\Abhishek\AppData\Local
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[TRACE] 22:18:21.193 shell.go:Flags() - 0s
[TRACE] 22:18:21.193 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.193 shell.go:GOOS() - 0s
[TRACE] 22:18:21.193 shell.go:GOOS() - 0s
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .vue]
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 segment.go:SetEnabled:557 → Segment: Ruby
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → folders: []
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → home_enabled: false
[TRACE] 22:18:21.193 shell.go:GOOS() - 0s
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → folders: []
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → extensions: [*.rb Rakefile Gemfile]
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 segment.go:SetEnabled:557 → Segment: Php
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → folders: []
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 22:18:21.193 properties.go:GetString:28 → files
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → extensions: [*.php composer.json composer.lock .php-version blade.php]
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → folders: []
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 properties.go:GetString:28 → files
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 22:18:21.193 shell.go:Getenv:326 → C:\Users\Abhishek\AppData\Local
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[TRACE] 22:18:21.193 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 22:18:21.193 properties.go:GetString:28 → files
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → fetch_package_manager: false
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 properties.go:GetString:28 → files
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[TRACE] 22:18:21.193 shell.go:Flags() - 0s
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.193 shell.go:GOOS() - 0s
[DEBUG] 22:18:21.193 segment.go:SetEnabled:557 → Segment: Julia
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → extensions: [*.jl]
[DEBUG] 22:18:21.193 properties.go:GetStringArray:52 → folders: []
[DEBUG] 22:18:21.193 properties.go:GetBool:22 → home_enabled: false
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.193 shell_windows.go:58 → C:\Users\Abhishek
[DEBUG] 22:18:21.193 properties.go:GetString:28 → files
[TRACE] 22:18:21.193 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(*.rb) - 1.0605ms
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(Rakefile) - 0s
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(Gemfile) - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:404 → true
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(*.js) - 1.0605ms
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[DEBUG] 22:18:21.195 properties.go:GetBool:22 → fetch_version: true
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(*.go) - 1.0605ms
[DEBUG] 22:18:21.195 properties.go:GetBool:22 → cache_version: false
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:Getenv:326 → C:\Users\Abhishek\AppData\Local
[TRACE] 22:18:21.195 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(*.php) - 1.0605ms
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(composer.json) - 0s
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(composer.lock) - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(*.jl) - 1.0605ms
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(.php-version) - 0s
[TRACE] 22:18:21.195 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.195 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.195 shell.go:HasFilesInDir(blade.php) - 0s
[DEBUG] 22:18:21.206 shell.go:CommandPath:553 → C:\Program Files\WindowsApps\MicrosoftCorporationII.WindowsSubsystemForLinux_2.2.4.0_x64__8wekyb3d8bbwe\wsl.exe
[DEBUG] 22:18:21.206 shell.go:CommandPath:553 → C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_1.22.11261.0_x64__8wekyb3d8bbwe\AppInstallerPythonRedirector.exe
[TRACE] 22:18:21.207 shell.go:CommandPath(bash) - 13.2057ms
[TRACE] 22:18:21.207 shell.go:HasCommand(bash) - 13.2057ms
[TRACE] 22:18:21.207 shell.go:CommandPath(python) - 13.2057ms
[DEBUG] 22:18:21.207 properties.go:GetString:28 → git log --pretty=format:%cr -1 || date +%H:%M:%S
[DEBUG] 22:18:21.207 properties.go:GetBool:22 → interpret: true
[DEBUG] 22:18:21.207 shell.go:HasFilesInDir:409 → false
[TRACE] 22:18:21.207 shell.go:HasFilesInDir(pyvenv.cfg) - 0s
[ERROR] 22:18:21.207 shell.go:HasFilesInDir:378 → open .: Access is denied.
[DEBUG] 22:18:21.207 shell.go:HasFilesInDir:379 → false
[TRACE] 22:18:21.207 shell.go:HasFilesInDir(pyvenv.cfg) - 0s
[DEBUG] 22:18:21.207 properties.go:GetBool:22 → folder_name_fallback: true
[DEBUG] 22:18:21.207 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:21.207 shell.go:Getenv(VIRTUAL_ENV) - 0s
[DEBUG] 22:18:21.207 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:21.207 shell.go:Getenv(CONDA_ENV_PATH) - 0s
[DEBUG] 22:18:21.207 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:21.207 shell.go:Getenv(CONDA_DEFAULT_ENV) - 0s
[DEBUG] 22:18:21.207 shell.go:CommandPath:553 → C:\Program Files\nodejs\node.exe
[TRACE] 22:18:21.207 shell.go:CommandPath(node) - 12.6865ms
[TRACE] 22:18:21.207 shell.go:HasCommand(node) - 12.6865ms
[DEBUG] 22:18:21.236 shell.go:RunCommand:531 → v22.2.0
[TRACE] 22:18:21.238 shell.go:RunCommand(node --version) - 30.4882ms
[DEBUG] 22:18:21.238 properties.go:GetString:28 → https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[DEBUG] 22:18:21.238 text.go:Render:72 → Rendering template: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[TRACE] 22:18:21.238 shell.go:TemplateCache() - 0s
[TRACE] 22:18:21.238 shell.go:Pwd() - 0s
[ERROR] 22:18:21.238 shell.go:FileContent:464 → open F:\Floorp\.nvmrc: The system cannot find the file specified.
[TRACE] 22:18:21.238 shell.go:FileContent(.nvmrc) - 507.8µs
[TRACE] 22:18:21.238 shell.go:TemplateCache() - 0s
[ERROR] 22:18:21.317 shell.go:RunCommand:529 → exit status 0xffffffff
[DEBUG] 22:18:21.317 shell.go:RunCommand:531 → NO DATA
[TRACE] 22:18:21.317 shell.go:RunCommand(bash -c git log --pretty=format:%cr -1) - 110.6715ms
[TRACE] 22:18:21.317 shell.go:RunShellCommand() - 110.6715ms
[ERROR] 22:18:21.391 shell.go:RunCommand:529 → exit status 0xffffffff
[DEBUG] 22:18:21.391 shell.go:RunCommand:531 → NO DATA
[TRACE] 22:18:21.391 shell.go:RunCommand(bash -c date +%H:%M:%S) - 74.1412ms
[TRACE] 22:18:21.391 shell.go:RunShellCommand() - 74.1412ms
[ERROR] 22:18:21.466 shell.go:RunCommand:529 → exit status 0xffffffff
[DEBUG] 22:18:21.468 shell.go:RunCommand:531 → NO DATA
[TRACE] 22:18:21.468 shell.go:RunCommand(bash -c git log --pretty=format:%cr -1 || date +%H:%M:%S) - 76.1458ms
[TRACE] 22:18:21.468 shell.go:RunShellCommand() - 76.1458ms
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template:  {{ .Full }}
[TRACE] 22:18:21.468 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[DEBUG] 22:18:21.468 shell_windows.go:TerminalWidth:111 → terminal width: 120
[TRACE] 22:18:21.468 shell_windows.go:TerminalWidth() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Flags() - 0s
[TRACE] 22:18:21.468 shell.go:Pwd() - 0s
[DEBUG] 22:18:21.468 shell_windows.go:58 → C:\Users\Abhishek
[TRACE] 22:18:21.468 shell.go:GOOS() - 0s
[DEBUG] 22:18:21.468 segment.go:SetEnabled:557 → Segment: Text
[TRACE] 22:18:21.468 shell.go:TemplateCache() - 0s
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: ▶
[DEBUG] 22:18:21.468 shell.go:Getenv:326 → NO DATA
[TRACE] 22:18:21.468 shell.go:Getenv(TERM_PROGRAM) - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[DEBUG] 22:18:21.468 text.go:Render:72 → Rendering template: plain
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Flags() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[TRACE] 22:18:21.468 shell.go:Shell() - 0s
[DEBUG] 22:18:21.468 shell.go:Getenv:326 → C:\Users\Abhishek\AppData\Local
[TRACE] 22:18:21.468 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 22:18:21.468 shell_windows.go:CachePath() - 0s
[TRACE] 22:18:21.468 shell.go:Flags() - 0s
@JanDeDobbeleer
Copy link
Owner

@TheChilledBuffalo the only solution for this is to disable fetching the status for those repos using ignore_status. It's git being slow, not oh-my-posh.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants