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

git segment does not like symbolic links (possibly to volumes) #6153

Closed
1 task done
glektarssza opened this issue Feb 10, 2025 · 1 comment
Closed
1 task done

git segment does not like symbolic links (possibly to volumes) #6153

glektarssza opened this issue Feb 10, 2025 · 1 comment
Assignees
Labels
🐛 bug Something isn't working

Comments

@glektarssza
Copy link

Code of Conduct

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

What happened?

The git segment seems to really not like symbolic links, possibly to volumes?

I'm not entirely sure if it's the symbolic link here that's causing the issue, if it's the symbolic link to a volume, if it's the symbolic link to a dev drive, or if it's a symbolic link to a volume that's a dev drive. One of those is the case, though, because I'm not getting Git information when I got into my repositories from the symbolic link to my dev drive that Windows offered to set up for me.

Image

Pictured above are three terminals. The left-most terminal is inside the symbolic link to my dev drive. The right-most upper terminal is inside the dev drive normally. The right-most bottom terminal is the output of oh-my-posh debug from inside the symbolic link, focused in on the error logs that came out for brevity. They're also attached to this issue.

Theme

Full configuration at time of writing:

{
    "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
    "blocks": [
        {
            "type": "prompt",
            "alignment": "left",
            "segments": [
                {
                    "type": "session",
                    "style": "powerline",
                    "foreground": "#ffffff",
                    "background": "#c386f1",
                    "leading_powerline_symbol": "",
                    "powerline_symbol": "",
                    "template": "{{ if .SSHSession }}\uf817 {{ end }}snek@{{ .HostName }}"
                },
                {
                    "type": "root",
                    "style": "powerline",
                    "foreground": "#111111",
                    "background": "#ffff66",
                    "powerline_symbol": "",
                    "leading_powerline_symbol": "",
                    "template": ""
                },
                {
                    "type": "path",
                    "style": "powerline",
                    "foreground": "#ffffff",
                    "background": "#ff479c",
                    "powerline_symbol": "",
                    "leading_powerline_symbol": "",
                    "template": "  {{.Path}} ",
                    "properties": {
                        "style": "agnoster_full",
                        "folder_separator_icon": "/",
                        "mapped_locations_enabled": true,
                        "mapped_locations": {}
                    }
                },
                {
                    "type": "git",
                    "style": "powerline",
                    "foreground": "#ffffff",
                    "background": "#3a3a3a",
                    "background_templates": [
                        "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
                        "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
                        "{{ if gt .Ahead 0 }}#B388FF{{ end }}",
                        "{{ if gt .Behind 0 }}#B388FB{{ end }}"
                    ],
                    "powerline_symbol": "",
                    "leading_powerline_symbol": "",
                    "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} ",
                    "properties": {
                        "fetch_status": true,
                        "fetch_upstream_icon": true
                    }
                },
                {
                    "template": " \uea85 {{ .Name }} ",
                    "foreground": "#ffffff",
                    "powerline_symbol": "\ue0b0",
                    "background": "#0077c2",
                    "type": "shell",
                    "style": "powerline"
                },
                {
                    "properties": {
                        "always_enabled": true
                    },
                    "trailing_diamond": "\ue0b4",
                    "template": "{{ if gt .Code 0 }} \ue23a {{ .Meaning }} {{ else }} \ue23a {{ end }}",
                    "foreground": "#ffffff",
                    "background": "#2e9599",
                    "type": "status",
                    "style": "diamond",
                    "background_templates": [
                        "{{ if gt .Code 0 }}#e91e63{{ end }}"
                    ]
                }
            ]
        },
        {
            "type": "prompt",
            "alignment": "left",
            "segments": [
                {
                    "template": " > ",
                    "foreground": "#ffffff",
                    "type": "text",
                    "style": "plain"
                }
            ],
            "newline": true
        }
    ],
    "version": 3
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

Version: 24.19.0

Shell: pwsh (7.5.0)

Prompt:

snek@GlekPC  ~/dev/repositories/github/glektarssza/webcraft   ≢   pwsh   
 > 

Segments:

ConsoleTitle(false)                       -   0 ms
Session(true)                             -   0 ms
Root(false)                               -   0 ms
Path(true)                                -   1 ms
Git(true)                                 -  67 ms
Shell(true)                               -   0 ms
Status(true)                              -   0 ms
Text(true)                                -   0 ms

Run duration: 70.2556ms

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

Config path: C:\Users\roblo\oh-my-posh.config.json

Logs:

�[38;2;191;207;240m[DEBUG] �[38;2;156;231;201m16:09:57.231 �[0mcommand.go:execute:989�[38;2;156;231;201m ΓåÆ�[0m debug mode enabled
�[38;2;191;207;240m[DEBUG] �[38;2;156;231;201m16:09:57.231 �[0mdebug.go:40�[38;2;156;231;201m ΓåÆ�[0m config set using POSH_THEME: C:\Users\roblo\oh-my-posh.config.json
�[38;2;204;137;214m[TRACE] �[38;2;156;231;201m16:09:57.231 �[0mdebug.go() - �[38;2;156;231;201m0s�[0m
�[38;2;204;137;214m[TRACE] �[38;2;156;231;201m16:09:57.232 �[0mload.go:Load() - �[38;2;156;231;201m501.8┬╡s�[0m
�[38;2;204;137;214m[TRACE] �[38;2;156;231;201m16:09:57.232 �[0mdebug.go() - �[38;2;156;231;201m501.8┬╡s�[0m
[DEBUG] 16:09:57.232 debug.go:52 → plain mode enabled
[TRACE] 16:09:57.232 terminal.go() - 501.9┬╡s
[DEBUG] 16:09:57.232 terminal.go:59 → loading cache file: C:\Users\roblo\AppData\Local\oh-my-posh\omp.cache
[DEBUG] 16:09:57.232 terminal.go:59 → loading cache key: upgrade_check
[TRACE] 16:09:57.232 terminal.go(C:\Users\roblo\AppData\Local\oh-my-posh\omp.cache) - 0s
[TRACE] 16:09:57.232 terminal.go() - 0s
[DEBUG] 16:09:57.232 terminal.go:59 → loading cache file: C:\Users\roblo\AppData\Local\oh-my-posh\omp.cache.2bc72504-1832-4865-a43f-a6e78b6bf899
[DEBUG] 16:09:57.232 terminal.go:59 → loading cache key: prompt_count_cache
[TRACE] 16:09:57.232 terminal.go(C:\Users\roblo\AppData\Local\oh-my-posh\omp.cache.2bc72504-1832-4865-a43f-a6e78b6bf899) - 0s
[TRACE] 16:09:57.232 terminal.go:Init() - 0s
[TRACE] 16:09:57.232 terminal.go() - 0s
[DEBUG] 16:09:57.232 terminal.go:Init:67 → C:\Users\roblo\dev\repositories\github\glektarssza\webcraft
[TRACE] 16:09:57.232 terminal.go:Init() - 0s
[TRACE] 16:09:57.232 debug.go() - 501.9┬╡s
[TRACE] 16:09:57.232 init.go:Init() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[DEBUG] 16:09:57.232 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[DEBUG] 16:09:57.232 cache.go:loadCache:60 → roblo
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[DEBUG] 16:09:57.232 cache.go:loadCache:61 → GlekPC
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[TRACE] 16:09:57.232 cache.go:loadCache() - 0s
[DEBUG] 16:09:57.232 cache.go:loadCache:71 → NO DATA
[TRACE] 16:09:57.232 cache.go:loadCache(SHLVL) - 0s
[DEBUG] 16:09:57.232 debug.go:61 → terminal program: vscode
[DEBUG] 16:09:57.232 debug.go:61 → terminal shell: shell
[DEBUG] 16:09:57.232 config.go:MakeColors:58 → NO DATA
[TRACE] 16:09:57.232 config.go:MakeColors(OMP_CACHE_DISABLED) - 0s
[TRACE] 16:09:57.232 colors_windows.go:GetAccentColor(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[DEBUG] 16:09:57.232 colors_windows.go:GetAccentColor:19 → ColorizationColor(DWORD): 0xC40B406A
[TRACE] 16:09:57.232 colors.go:SetAccentColor() - 0s
[TRACE] 16:09:57.232 colors.go:MakeColors() - 0s
[TRACE] 16:09:57.232 debug.go:PrintDebug() - 0s
[DEBUG] 16:09:57.232 debug.go:PrintDebug:16 → 7.5.0
[TRACE] 16:09:57.232 debug.go:PrintDebug(POSH_SHELL_VERSION) - 0s
[DEBUG] 16:09:57.232 debug.go:72 → segment: Title
[TRACE] 16:09:57.233 engine.go:getTitleTemplateText() - 0s
[TRACE] 16:09:57.233 primary.go:needsPrimaryRightPrompt() - 0s
[DEBUG] 16:09:57.233 terminal.go:CursorPosition:583 → 18
[TRACE] 16:09:57.233 terminal.go:CursorPosition(POSH_CURSOR_LINE) - 0s
[DEBUG] 16:09:57.233 terminal.go:CursorPosition:587 → 1
[TRACE] 16:09:57.233 terminal.go:CursorPosition(POSH_CURSOR_COLUMN) - 0s
[TRACE] 16:09:57.233 primary.go:writePrimaryPrompt() - 0s
[TRACE] 16:09:57.233 primary.go:writePrimaryPrompt() - 0s
[TRACE] 16:09:57.233 segment.go:Execute() - 0s
[TRACE] 16:09:57.233 segment.go:Execute() - 0s
[DEBUG] 16:09:57.233 home.go:Home:26 → C:\Users\roblo
[DEBUG] 16:09:57.233 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.233 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 16:09:57.233 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 16:09:57.233 segment.go:Execute:110 → segment: Status
[DEBUG] 16:09:57.233 segment.go:Execute:110 → segment: Session
[DEBUG] 16:09:57.233 segment.go:Execute:112 → no toggles found
[DEBUG] 16:09:57.233 segment.go:Execute:112 → no toggles found
[DEBUG] 16:09:57.233 session.go:activeSSHSession:31 → NO DATA
[TRACE] 16:09:57.233 session.go:activeSSHSession(SSH_CONNECTION) - 0s
[DEBUG] 16:09:57.233 session.go:activeSSHSession:31 → NO DATA
[TRACE] 16:09:57.233 session.go:activeSSHSession(SSH_CLIENT) - 0s
[TRACE] 16:09:57.233 segment.go:Execute() - 0s
[DEBUG] 16:09:57.233 status.go:formatStatus:45 → {{ .Code }}
[DEBUG] 16:09:57.233 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.233 terminal.go:DirMatchesOneOf() - 0s
[TRACE] 16:09:57.233 segment.go:Execute() - 0s
[DEBUG] 16:09:57.233 segment.go:Execute:110 → segment: Git
[DEBUG] 16:09:57.233 segment.go:Execute:112 → no toggles found
[TRACE] 16:09:57.233 scm.go:hasCommand() - 0s
[DEBUG] 16:09:57.233 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.233 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 16:09:57.233 segment.go:Execute:110 → segment: Root
[DEBUG] 16:09:57.233 segment.go:Execute:112 → no toggles found
[TRACE] 16:09:57.233 root.go:Enabled() - 0s
[TRACE] 16:09:57.233 segment.go:Execute() - 0s
[DEBUG] 16:09:57.233 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.233 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 16:09:57.233 segment.go:Execute:110 → segment: Path
[DEBUG] 16:09:57.233 segment.go:Execute:112 → no toggles found
[DEBUG] 16:09:57.233 path.go:147 → display_cygpath: false
[TRACE] 16:09:57.233 path.go:setPaths() - 0s
[TRACE] 16:09:57.233 path.go:setPaths() - 0s
[TRACE] 16:09:57.233 path.go:setPaths() - 0s
[TRACE] 16:09:57.233 path.go:setPaths() - 0s
[TRACE] 16:09:57.233 path.go:parsePath() - 0s
[TRACE] 16:09:57.233 segment.go:Execute() - 0s
[DEBUG] 16:09:57.233 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.233 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 16:09:57.233 path.go:setMappedLocations:557 → mapped_locations_enabled: true
[DEBUG] 16:09:57.234 path.go:setMappedLocations:558 → 
[DEBUG] 16:09:57.234 path.go:setMappedLocations:559 → 
[DEBUG] 16:09:57.234 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.234 clean.go:Clean() - 0s
[DEBUG] 16:09:57.234 segment.go:Execute:110 → segment: Shell
[DEBUG] 16:09:57.234 segment.go:Execute:112 → no toggles found
[TRACE] 16:09:57.234 path.go:normalize() - 0s
[DEBUG] 16:09:57.234 shell.go:Enabled:26 → mapped_shell_names: map[]
[DEBUG] 16:09:57.234 path.go:setMappedLocations:560 → ~
[TRACE] 16:09:57.234 shell.go:Enabled() - 0s
[DEBUG] 16:09:57.234 path.go:setMappedLocations:565 → mapped_locations: map[]
[TRACE] 16:09:57.234 clean.go:Clean() - 0s
[TRACE] 16:09:57.234 path.go:normalize() - 0s
[TRACE] 16:09:57.234 clean.go:Clean() - 0s
[TRACE] 16:09:57.234 path.go:normalize() - 0s
[TRACE] 16:09:57.234 path.go:parsePath() - 0s
[TRACE] 16:09:57.234 path.go:parsePath() - 0s
[TRACE] 16:09:57.234 path.go:parsePath() - 0s
[DEBUG] 16:09:57.234 path.go:makeFolderFormatMap:833 → NO DATA
[DEBUG] 16:09:57.234 path.go:setStyle:213 → agnoster_full
[DEBUG] 16:09:57.234 path.go:colorizePath:734 → cycle: []
[DEBUG] 16:09:57.234 path.go:getFolderSeparator:267 → NO DATA
[DEBUG] 16:09:57.234 path.go:getFolderSeparator:269 → /
[DEBUG] 16:09:57.234 path.go:colorizePath:737 → cycle_folder_separator: false
[DEBUG] 16:09:57.234 path.go:colorizePath:738 → %s
[DEBUG] 16:09:57.234 path.go:colorizePath:740 → %s
[DEBUG] 16:09:57.234 path.go:colorizePath:741 → %s
[DEBUG] 16:09:57.234 path.go:colorizePath:742 → %s
[TRACE] 16:09:57.234 path.go:Enabled() - 0s
[TRACE] 16:09:57.234 path.go:Enabled() - 0s
[TRACE] 16:09:57.234 path.go:Enabled() - 0s
[TRACE] 16:09:57.234 status.go:formatStatus({{ .Code }}) - 997.5┬╡s
[TRACE] 16:09:57.234 segment.go:string({{ if .SSHSession }} {{ end }}snek@{{ .HostName }}) - 997.5µs
[DEBUG] 16:09:57.234 status.go:Enabled:37 → always_enabled: true
[TRACE] 16:09:57.234 segment.go:resolve(powerline) - 0s
[TRACE] 16:09:57.234 segment.go:resolve(powerline) - 0s
[DEBUG] 16:09:57.234 terminal_windows.go:DirIsWritable:216 → current user is member of S-1-5-32-544
[DEBUG] 16:09:57.234 win32_windows.go:isWriteable:271 Γåô
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 16:09:57.234 terminal_windows.go:DirIsWritable:216 → user has write access
[TRACE] 16:09:57.234 path.go:Enabled() - 499.7┬╡s
[TRACE] 16:09:57.234 segment.go:string( εù┐ {{.Path}} ) - 0s
[TRACE] 16:09:57.234 segment.go:resolve(powerline) - 0s
[DEBUG] 16:09:57.234 terminal.go:HasCommand:323 → C:\Users\roblo\scoop\shims\git.exe
[TRACE] 16:09:57.234 terminal.go:HasCommand(git.exe) - 1.4972ms
[TRACE] 16:09:57.234 scm.go:hasCommand(git.exe) - 1.4972ms
[DEBUG] 16:09:57.234 git.go:shouldDisplay:344 → fetch_bare_info: false
[DEBUG] 16:09:57.234 terminal.go:HasParentFilePath:446 → \\?\Volume{c8786022-0000-0000-0000-f0c091010000}\repositories\github\glektarssza\webcraft
[TRACE] 16:09:57.234 terminal.go:HasParentFilePath(C:\Users\roblo\dev\repositories\github\glektarssza\webcraft) - 0s
[TRACE] 16:09:57.234 git.go:shouldDisplay(.git) - 0s
[DEBUG] 16:09:57.235 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.235 git.go:setDir() - 0s
[TRACE] 16:09:57.235 scm.go:convertToWindowsPath() - 0s
[DEBUG] 16:09:57.235 git.go:Enabled:181 → fetch_user: false
[DEBUG] 16:09:57.235 git.go:Enabled:196 → cli
[DEBUG] 16:09:57.235 git.go:Enabled:201 → fetch_status: true
[DEBUG] 16:09:57.235 git.go:shouldIgnoreStatus:486 → ignore_status: []
[DEBUG] 16:09:57.235 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.235 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 16:09:57.235 git.go:setGitStatus:632 → status_formats: map[]
[DEBUG] 16:09:57.235 git.go:getSwitchMode:949 → untracked_modes: map[]
[DEBUG] 16:09:57.235 git.go:getSwitchMode:949 → ignore_submodules: map[]
[ERROR] 16:09:57.267 git.go:getGitCommandOutput:683 → exit status 128
[DEBUG] 16:09:57.267 git.go:getGitCommandOutput:683 Γåô
    fatal: cannot change to '//?/Volume{c8786022-0000-0000-0000-f0c091010000}/repositories/github/glektarssza/webcraft': No such file or directory
    
[TRACE] 16:09:57.267 git.go:getGitCommandOutput(git.exe -C //?/Volume{c8786022-0000-0000-0000-f0c091010000}/repositories/github/glektarssza/webcraft --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 31.999ms
[DEBUG] 16:09:57.267 git.go:setGitHEADContext:691 → 
[DEBUG] 16:09:57.267 scm.go:formatBranch:106 → mapped_branches: map[]
[DEBUG] 16:09:57.267 scm.go:formatBranch:122 → full_branch_path: true
[DEBUG] 16:09:57.267 scm.go:formatBranch:128 → branch_max_length: 0
[DEBUG] 16:09:57.267 git.go:setGitHEADContext:724 → false
[TRACE] 16:09:57.267 git.go:setGitHEADContext(\\?\Volume{c8786022-0000-0000-0000-f0c091010000}\repositories\github\glektarssza\webcraft\.git/rebase-merge) - 0s
[DEBUG] 16:09:57.267 git.go:setGitHEADContext:743 → false
[TRACE] 16:09:57.267 git.go:setGitHEADContext(\\?\Volume{c8786022-0000-0000-0000-f0c091010000}\repositories\github\glektarssza\webcraft\.git/rebase-apply) - 0s
[DEBUG] 16:09:57.267 git.go:setGitHEADContext:760 → 
[ERROR] 16:09:57.267 git.go:hasGitFile:839 → open .: The filename, directory name, or volume label syntax is incorrect.
[DEBUG] 16:09:57.267 git.go:hasGitFile:839 → false
[TRACE] 16:09:57.267 git.go:hasGitFile(MERGE_MSG) - 0s
[ERROR] 16:09:57.267 git.go:hasGitFile:839 → open .: The filename, directory name, or volume label syntax is incorrect.
[DEBUG] 16:09:57.267 git.go:hasGitFile:839 → false
[TRACE] 16:09:57.267 git.go:hasGitFile(CHERRY_PICK_HEAD) - 0s
[ERROR] 16:09:57.267 git.go:hasGitFile:839 → open .: The filename, directory name, or volume label syntax is incorrect.
[DEBUG] 16:09:57.267 git.go:hasGitFile:839 → false
[TRACE] 16:09:57.267 git.go:hasGitFile(REVERT_HEAD) - 0s
[ERROR] 16:09:57.267 git.go:hasGitFile:839 → open .: The filename, directory name, or volume label syntax is incorrect.
[DEBUG] 16:09:57.267 git.go:hasGitFile:839 → false
[TRACE] 16:09:57.267 git.go:hasGitFile(sequencer/todo) - 499.9┬╡s
[DEBUG] 16:09:57.267 git.go:502 → ≢
[DEBUG] 16:09:57.267 git.go:Enabled:214 → fetch_upstream_icon: true
[ERROR] 16:09:57.301 git.go:getGitCommandOutput:683 → exit status 128
[DEBUG] 16:09:57.301 git.go:getGitCommandOutput:683 Γåô
    fatal: cannot change to '//?/Volume{c8786022-0000-0000-0000-f0c091010000}/repositories/github/glektarssza/webcraft': No such file or directory
    
[TRACE] 16:09:57.301 git.go:getGitCommandOutput(git.exe -C //?/Volume{c8786022-0000-0000-0000-f0c091010000}/repositories/github/glektarssza/webcraft --no-optional-locks -c core.quotepath=false -c color.status=false remote get-url origin) - 33.2551ms
[ERROR] 16:09:57.301 scm.go:FileContents:142 → open \\?\Volume{c8786022-0000-0000-0000-f0c091010000}\repositories\github\glektarssza\webcraft\.git/logs/refs/stash: The filename, directory name, or volume label syntax is incorrect.
[TRACE] 16:09:57.301 scm.go:FileContents(\\?\Volume{c8786022-0000-0000-0000-f0c091010000}\repositories\github\glektarssza\webcraft\.git/logs/refs/stash) - 0s
[TRACE] 16:09:57.301 segment.go:string( {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} ) - 500.6µs
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Ahead 0 }}#B388FF{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Behind 0 }}#B388FB{{ end }}) - 0s
[TRACE] 16:09:57.301 segment.go:resolve(powerline) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Ahead 0 }}#B388FF{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Behind 0 }}#B388FB{{ end }}) - 0s
[TRACE] 16:09:57.301 segment.go:string(  {{ .Name }} ) - 0s
[TRACE] 16:09:57.301 segment.go:resolve(powerline) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Ahead 0 }}#B388FF{{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Behind 0 }}#B388FB{{ end }}) - 0s
[TRACE] 16:09:57.301 segment.go:string({{ if gt .Code 0 }}  {{ .Meaning }} {{ else }}  {{ end }}) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Code 0 }}#e91e63{{ end }}) - 0s
[TRACE] 16:09:57.301 segment.go:resolve(diamond) - 0s
[TRACE] 16:09:57.301 list.go:FirstMatch({{ if gt .Code 0 }}#e91e63{{ end }}) - 0s
[TRACE] 16:09:57.301 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 16:09:57.301 segment.go:Execute() - 0s
[DEBUG] 16:09:57.301 home.go:Home:26 → C:\Users\roblo
[TRACE] 16:09:57.301 terminal.go:DirMatchesOneOf() - 0s
[DEBUG] 16:09:57.301 segment.go:Execute:110 → segment: Text
[DEBUG] 16:09:57.301 segment.go:Execute:112 → no toggles found
[TRACE] 16:09:57.301 segment.go:string( > ) - 0s
[TRACE] 16:09:57.301 segment.go:resolve(plain) - 0s
[TRACE] 16:09:57.301 engine.go:applyPowerShellBleedPatch() - 0s
[TRACE] 16:09:57.301 primary.go:Primary() - 0s
[TRACE] 16:09:57.301 debug.go:PrintDebug() - 0s
[TRACE] 16:09:57.301 debug.go:PrintDebug() - 0s
@glektarssza glektarssza added the 🐛 bug Something isn't working label Feb 10, 2025
@glektarssza
Copy link
Author

glektarssza commented Feb 16, 2025

Quick follow up; it appears I still had the following environment variable set in my environment:

GODEBUG="winsymlink=0"

This makes me think that the issue iwas related to a workaround I had made in response to this change which was introduced in Go v1.23 which I had run into while using Podman (see this issue).

Removing this environment variable has fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants