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

Command not executed while loading #5524

Closed
1 task done
n9iels opened this issue Aug 27, 2024 · 15 comments
Closed
1 task done

Command not executed while loading #5524

n9iels opened this issue Aug 27, 2024 · 15 comments
Assignees
Labels
🐛 bug Something isn't working

Comments

@n9iels
Copy link

n9iels commented Aug 27, 2024

Code of Conduct

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

What happened?

Sicne the last upgrade command are not getting executing while the terminal is still loading. The issue is similair to this older issue: #4072. I used to have disable_cursor_positioning = true in my config and this worked. After the upgrade enable_cursor_positioning should be false to my understanding.

Theme

custom

What OS are you seeing the problem on?

macOS

Which shell are you using?

zsh

Log output

Version: 23.8.0

Shell: zsh (5.9)

Prompt:


  ~/Documents/frontend    master ≡    

Segments:

ConsoleTitle(true)                         -   0 ms
Path(true)                                 -   0 ms
Git(true)                                  -  31 ms
Status(true)                               -   0 ms
Executiontime(false)                       -   0 ms

Run duration: 36.896417ms

Cache path: /Users/niels.van.der.veer/.cache/oh-my-posh

Config path: /Users/niels.van.der.veer/.ohmyposh.toml

Logs:

[DEBUG] 14:44:25.088 debug.go:42 → debug mode enabled
[DEBUG] 14:44:25.088 debug.go:42 → plain mode enabled
[DEBUG] 14:44:25.088 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.088 terminal.go:Getenv(OMP_CACHE_DIR) - 237.25µs
[DEBUG] 14:44:25.088 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.088 terminal.go:Getenv(XDG_CACHE_HOME) - 2.375µs
[TRACE] 14:44:25.088 terminal_unix.go:CachePath() - 278.625µs
[DEBUG] 14:44:25.088 terminal.go:70 → loading cache file: /Users/niels.van.der.veer/.cache/oh-my-posh/omp.cache
[DEBUG] 14:44:25.088 terminal.go:70 → loading cache key: environment_platform
[DEBUG] 14:44:25.088 terminal.go:70 → loading cache key: is_wsl
[TRACE] 14:44:25.088 terminal.go(/Users/niels.van.der.veer/.cache/oh-my-posh/omp.cache) - 98µs
[DEBUG] 14:44:25.088 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.088 terminal.go:Getenv(OMP_CACHE_DIR) - 4.333µs
[DEBUG] 14:44:25.088 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.088 terminal.go:Getenv(XDG_CACHE_HOME) - 1.625µs
[TRACE] 14:44:25.088 terminal_unix.go:CachePath() - 16.459µs
[DEBUG] 14:44:25.088 terminal.go:70 → loading cache file: /Users/niels.van.der.veer/.cache/oh-my-posh/omp.cache.70182
[DEBUG] 14:44:25.088 terminal.go:70 → loading cache key: template_cache
[TRACE] 14:44:25.088 terminal.go(/Users/niels.van.der.veer/.cache/oh-my-posh/omp.cache.70182) - 76.333µs
[DEBUG] 14:44:25.088 terminal.go:Getenv:165 → /Users/niels.van.der.veer/.ohmyposh.toml
[TRACE] 14:44:25.088 terminal.go:Getenv(POSH_THEME) - 2.334µs
[DEBUG] 14:44:25.088 terminal.go:ResolveConfigPath:97 → config set using POSH_THEME: /Users/niels.van.der.veer/.ohmyposh.toml
[TRACE] 14:44:25.088 terminal.go:ResolveConfigPath() - 7.083µs
[TRACE] 14:44:25.088 terminal.go:SetPromptCount() - 250ns
[TRACE] 14:44:25.088 terminal.go:Init() - 1.026125ms
[TRACE] 14:44:25.088 terminal.go:Flags() - 41ns
[TRACE] 14:44:25.088 load.go:loadConfig() - 124.5µs
[TRACE] 14:44:25.089 terminal.go:Flags() - 42ns
[DEBUG] 14:44:25.089 debug.go:50 → terminal program: vscode
[DEBUG] 14:44:25.089 debug.go:50 → terminal shell: shell
[DEBUG] 14:44:25.089 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.089 terminal.go:Getenv(OMP_CACHE_DISABLED) - 2µs
[TRACE] 14:44:25.089 terminal.go:Shell() - 125ns
[DEBUG] 14:44:25.089 terminal.go:Getenv:165 → 5.9
[TRACE] 14:44:25.089 terminal.go:Getenv(POSH_SHELL_VERSION) - 3.375µs
[DEBUG] 14:44:25.089 debug.go:PrintDebug:23 → segment: Title
[DEBUG] 14:44:25.089 text.go:Render:80 → rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 14:44:25.089 terminal.go:Flags() - 41ns
[TRACE] 14:44:25.089 terminal_unix.go:Root() - 667ns
[TRACE] 14:44:25.089 terminal.go:Shell() - 41ns
[TRACE] 14:44:25.089 terminal.go:StatusCodes() - 125ns
[DEBUG] 14:44:25.089 terminal_unix.go:IsWsl:35 → false
[TRACE] 14:44:25.089 terminal_unix.go:IsWsl() - 2.958µs
[DEBUG] 14:44:25.089 terminal.go:TemplateCache:654 → environment: [MallocNanoZone=0 USER=niels.van.der.veer COMMAND_MODE=unix2003 __CFBundleIdentifier=com.microsoft.VSCode PATH=/Users/niels.van.der.veer/.local/state/fnm_multishells/70215_1724762431919/bin:/Users/niels.van.der.veer/Library/Application Support/fnm:/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/bin:/Users/niels.van.der.veer/.local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/niels.van.der.veer/.local/state/fnm_multishells/58296_1724761208020/bin:/Users/niels.van.der.veer/Library/Application Support/fnm:/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/bin:/Users/niels.van.der.veer/.local/bin:/opt/homebrew/sbin:/Users/niels.van.der.veer/Library/Android/sdk/emulator:/Users/niels.van.der.veer/Library/Android/sdk/platform-tools:/Users/niels.van.der.veer/Library/Android/sdk/emulator:/Users/niels.van.der.veer/Library/Android/sdk/platform-tools LOGNAME=niels.van.der.veer SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.q5u6d6uoJz/Listeners HOME=/Users/niels.van.der.veer SHELL=/bin/zsh TMPDIR=/var/folders/5d/2h53mf7165xdw5tz8t666_rm0000gn/T/ __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x5 XPC_SERVICE_NAME=0 XPC_FLAGS=0x0 ORIGINAL_XDG_CURRENT_DESKTOP=undefined SHLVL=1 PWD=/Users/niels.van.der.veer/Documents/frontend OLDPWD=/Users/niels.van.der.veer/Documents/frontend HOMEBREW_PREFIX=/opt/homebrew HOMEBREW_CELLAR=/opt/homebrew/Cellar HOMEBREW_REPOSITORY=/opt/homebrew INFOPATH=/opt/homebrew/share/info:/opt/homebrew/share/info: ZSH=/Users/niels.van.der.veer/.oh-my-zsh PAGER=less LESS=-R LSCOLORS=Gxfxcxdxbxegedabagacad LS_COLORS=di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43 JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home ANDROID_HOME=/Users/niels.van.der.veer/Library/Android/sdk FNM_VERSION_FILE_STRATEGY=local FNM_ARCH=arm64 FNM_DIR=/Users/niels.van.der.veer/.local/share/fnm FNM_COREPACK_ENABLED=false FNM_NODE_DIST_MIRROR=https://nodejs.org/dist FNM_LOGLEVEL=info FNM_RESOLVE_ENGINES=false FNM_MULTISHELL_PATH=/Users/niels.van.der.veer/.local/state/fnm_multishells/70215_1724762431919 POSH_THEME=/Users/niels.van.der.veer/.ohmyposh.toml POSH_SHELL_VERSION=5.9 POSH_PID=70182 POWERLINE_COMMAND=oh-my-posh CONDA_PROMPT_MODIFIER=false POSH_PROMPT_COUNT=8 ZLE_RPROMPT_INDENT=0 OSTYPE=darwin23.0 TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.92.2 LANG=en_US.UTF-8 COLORTERM=truecolor GIT_ASKPASS=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh VSCODE_GIT_ASKPASS_NODE=/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) VSCODE_GIT_ASKPASS_EXTRA_ARGS= VSCODE_GIT_ASKPASS_MAIN=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_IPC_HANDLE=/var/folders/5d/2h53mf7165xdw5tz8t666_rm0000gn/T/vscode-git-03051e0af7.sock VSCODE_INJECTION=1 ZDOTDIR=/Users/niels.van.der.veer USER_ZDOTDIR=/Users/niels.van.der.veer TERM=xterm-256color _=/opt/homebrew/bin/oh-my-posh]
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[DEBUG] 14:44:25.089 terminal.go:Pwd:195 → /Users/niels.van.der.veer/Documents[TRACE] 14:44:25.089 terminal.go:Pwd() - 21.916µs
[DEBUG] 14:44:25.089 terminal_unix.go:IsWsl:35 → false
[TRACE] 14:44:25.089 terminal_unix.go:IsWsl() - 5.291µs
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 41ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 0s
[TRACE] 14:44:25.089 terminal.go:GOOS() - 0s
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 0s
[TRACE] 14:44:25.089 terminal.go:GOOS() - 41ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[DEBUG] 14:44:25.089 terminal.go:User:333 → niels.van.der.veer
[TRACE] 14:44:25.089 terminal.go:User() - 2.166µs
[DEBUG] 14:44:25.089 terminal.go:Host:350 → MBP-van-Niels
[TRACE] 14:44:25.089 terminal.go:Host() - 9.583µs
[TRACE] 14:44:25.089 terminal.go:GOOS() - 0s
[DEBUG] 14:44:25.089 terminal.go:Getenv:165 → 1
[TRACE] 14:44:25.089 terminal.go:Getenv(SHLVL) - 2.167µs
[TRACE] 14:44:25.089 terminal.go:TemplateCache() - 143.5µs
[TRACE] 14:44:25.089 terminal.go:Shell() - 42ns
[DEBUG] 14:44:25.089 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.089 terminal.go:Getenv(POSH_CURSOR_LINE) - 3.042µs
[DEBUG] 14:44:25.089 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.089 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 1.75µs
[TRACE] 14:44:25.089 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.089 terminal.go:Flags() - 41ns
[TRACE] 14:44:25.089 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.089 terminal.go:Flags() - 125ns
[DEBUG] 14:44:25.089 status.go:Init:53 → {{ .Code }}
[TRACE] 14:44:25.089 terminal.go:Pwd() - 83ns
[TRACE] 14:44:25.089 terminal.go:Pwd() - 125ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[DEBUG] 14:44:25.089 segment.go:SetEnabled:115 → segment: Status
[DEBUG] 14:44:25.089 segment.go:SetEnabled:115 → segment: Git
[TRACE] 14:44:25.089 terminal.go:StatusCodes() - 0s
[DEBUG] 14:44:25.089 text.go:Render:80 → rendering template: {{ .Code }}
[TRACE] 14:44:25.089 terminal.go:Flags() - 42ns
[DEBUG] 14:44:25.089 terminal_unix.go:IsWsl:35 → false
[TRACE] 14:44:25.089 terminal_unix.go:IsWsl() - 2.667µs
[TRACE] 14:44:25.089 terminal_unix.go:IsWsl2() - 5.084µs
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:Flags() - 125ns
[TRACE] 14:44:25.089 terminal.go:Pwd() - 125ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 83ns
[DEBUG] 14:44:25.089 segment.go:SetEnabled:115 → segment: Path
[DEBUG] 14:44:25.089 path.go:128 → display_cygpath: false
[TRACE] 14:44:25.089 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.089 terminal.go:PathSeparator() - 41ns
[TRACE] 14:44:25.089 terminal.go:Pwd() - 41ns
[TRACE] 14:44:25.089 terminal.go:Shell() - 84ns
[TRACE] 14:44:25.089 terminal.go:Shell() - 41ns
[TRACE] 14:44:25.089 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.089 terminal.go:Pwd() - 42ns
[DEBUG] 14:44:25.089 path.go:replaceMappedLocations:514 → mapped_locations_enabled: true
[DEBUG] 14:44:25.089 segment.go:SetEnabled:115 → segment: Root
[DEBUG] 14:44:25.089 path.go:replaceMappedLocations:515 → 
[DEBUG] 14:44:25.089 path.go:replaceMappedLocations:516 → 
[TRACE] 14:44:25.089 terminal_unix.go:Root() - 375ns
[TRACE] 14:44:25.089 terminal.go:GOOS() - 0s
[DEBUG] 14:44:25.089 path.go:replaceMappedLocations:517 → ~
[DEBUG] 14:44:25.090 path.go:replaceMappedLocations:522 → mapped_locations: map[]
[DEBUG] 14:44:25.090 terminal.go:CommandPath:392 → /usr/bin/git
[TRACE] 14:44:25.090 terminal.go:CommandPath(git) - 98µs
[TRACE] 14:44:25.090 terminal.go:HasCommand(git) - 100.542µs
[DEBUG] 14:44:25.090 git.go:shouldDisplay:285 → fetch_bare_info: false
[TRACE] 14:44:25.090 terminal.go:Pwd() - 42ns
[DEBUG] 14:44:25.090 terminal.go:ResolveSymlink:292 → /Users/niels.van.der.veer/Documents[TRACE] 14:44:25.090 terminal.go:ResolveSymlink(/Users/niels.van.der.veer/Documents) - 398.125µs
[TRACE] 14:44:25.090 terminal.go:GOOS() - 41ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 41ns
[DEBUG] 14:44:25.090 path.go:makeFolderFormatMap:838 → NO DATA
[DEBUG] 14:44:25.090 path.go:setStyle:195 → full
[DEBUG] 14:44:25.090 path.go:colorizePath:712 → cycle: []
[DEBUG] 14:44:25.090 path.go:getFolderSeparator:250 → NO DATA
[DEBUG] 14:44:25.090 path.go:getFolderSeparator:252 → /
[DEBUG] 14:44:25.090 path.go:colorizePath:715 → cycle_folder_separator: false
[DEBUG] 14:44:25.090 path.go:colorizePath:716 → %s
[DEBUG] 14:44:25.090 path.go:colorizePath:718 → %s
[DEBUG] 14:44:25.090 path.go:colorizePath:719 → %s
[DEBUG] 14:44:25.090 path.go:colorizePath:720 → %s
[TRACE] 14:44:25.090 terminal.go:Pwd() - 83ns
[TRACE] 14:44:25.090 terminal.go:HasParentFilePath(.git) - 452.25µs
[TRACE] 14:44:25.090 terminal.go:TemplateCache() - 83ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 0s
[TRACE] 14:44:25.090 terminal.go:StackCount() - 41ns
[DEBUG] 14:44:25.090 scm.go:shouldIgnoreRootRepository:150 → exclude_folders: []
[TRACE] 14:44:25.090 terminal.go:GOOS() - 41ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[DEBUG] 14:44:25.090 git.go:Enabled:169 → fetch_user: false
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 41ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 41ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.090 terminal_unix.go:DirIsWritable(/Users/niels.van.der.veer/Documents) - 37.917µs
[TRACE] 14:44:25.090 terminal.go:TemplateCache() - 42ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 42ns
[TRACE] 14:44:25.090 terminal.go:GOOS() - 0s
[DEBUG] 14:44:25.090 git.go:Enabled:184 → cli
[DEBUG] 14:44:25.090 git.go:Enabled:189 → fetch_status: true
[DEBUG] 14:44:25.090 git.go:shouldIgnoreStatus:427 → ignore_status: []
[TRACE] 14:44:25.090 terminal.go:GOOS() - 41ns
[DEBUG] 14:44:25.090 git.go:setGitStatus:565 → status_formats: map[]
[DEBUG] 14:44:25.090 git.go:getSwitchMode:864 → untracked_modes: map[]
[DEBUG] 14:44:25.090 git.go:getSwitchMode:864 → ignore_submodules: map[]
[TRACE] 14:44:25.090 terminal.go:TemplateCache() - 84ns
[DEBUG] 14:44:25.090 status.go:Enabled:42 → always_enabled: true
[TRACE] 14:44:25.090 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.121 terminal.go:RunCommand:370 ↓
    # branch.oid 5cca43c1b5c0de1a2081cbc3beb6cfdbf74c26ec
    # branch.head master
    # branch.upstream origin/master
    # branch.ab +0 -0
[TRACE] 14:44:25.121 terminal.go:RunCommand(git -C /Users/niels.van.der.veer/Documents/frontend --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 30.907833ms
[DEBUG] 14:44:25.121 git.go:setGitHEADContext:624 → 
[DEBUG] 14:44:25.121 scm.go:formatBranch:114 → mapped_branches: map[]
[DEBUG] 14:44:25.121 scm.go:formatBranch:130 → full_branch_path: true
[DEBUG] 14:44:25.121 scm.go:formatBranch:136 → branch_max_length: 25
[DEBUG] 14:44:25.121 terminal.go:HasFolder:277 → false
[TRACE] 14:44:25.121 terminal.go:HasFolder(/Users/niels.van.der.veer/Documents/frontend/.git/rebase-merge) - 10.875µs
[DEBUG] 14:44:25.121 terminal.go:HasFolder:277 → false
[TRACE] 14:44:25.121 terminal.go:HasFolder(/Users/niels.van.der.veer/Documents/frontend/.git/rebase-apply) - 2.417µs
[DEBUG] 14:44:25.121 git.go:setGitHEADContext:675 → 
[DEBUG] 14:44:25.121 terminal.go:HasFilesInDir:248 → false
[TRACE] 14:44:25.121 terminal.go:HasFilesInDir(MERGE_MSG) - 70.333µs
[DEBUG] 14:44:25.121 terminal.go:HasFilesInDir:248 → false
[TRACE] 14:44:25.121 terminal.go:HasFilesInDir(CHERRY_PICK_HEAD) - 3.125µs
[DEBUG] 14:44:25.121 terminal.go:HasFilesInDir:248 → false
[TRACE] 14:44:25.121 terminal.go:HasFilesInDir(REVERT_HEAD) - 2.333µs
[DEBUG] 14:44:25.121 terminal.go:HasFilesInDir:248 → false
[TRACE] 14:44:25.121 terminal.go:HasFilesInDir(sequencer/todo) - 2.625µs
[DEBUG] 14:44:25.121 git.go:446 → ≡
[DEBUG] 14:44:25.121 git.go:Enabled:200 → fetch_upstream_icon: true
[DEBUG] 14:44:25.121 git.go:getUpstreamIcon:502 → upstream_icons: map[]
[DEBUG] 14:44:25.121 git.go:getUpstreamIcon:523 →  
[TRACE] 14:44:25.121 terminal.go:TemplateCache() - 208ns
[DEBUG] 14:44:25.121 text.go:Render:80 → rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }} 
[TRACE] 14:44:25.121 terminal.go:Flags() - 41ns
[DEBUG] 14:44:25.121 text.go:Render:80 → rendering template:   {{ path .Path .Location }} 
[TRACE] 14:44:25.121 terminal.go:Flags() - 83ns
[DEBUG] 14:44:25.121 text.go:Render:80 → rendering template:  {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} 
[TRACE] 14:44:25.121 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 41ns
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 42ns
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 41ns
[TRACE] 14:44:25.122 terminal.go:Shell() - 83ns
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: powerline
[TRACE] 14:44:25.122 terminal.go:Flags() - 0s
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: diamond
[TRACE] 14:44:25.122 terminal.go:Flags() - 42ns
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}
[TRACE] 14:44:25.122 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}
[TRACE] 14:44:25.122 terminal.go:Flags() - 41ns
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: {{ if or (gt .Ahead 0) (gt .Behind 0) }}p:purple{{ end }}
[TRACE] 14:44:25.122 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 83ns
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}
[TRACE] 14:44:25.122 terminal.go:Flags() - 0s
[TRACE] 14:44:25.122 terminal.go:TemplateCache() - 84ns
[DEBUG] 14:44:25.122 text.go:Render:80 → rendering template: {{ if or (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}
[TRACE] 14:44:25.122 terminal.go:Flags() - 0s
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if gt .Ahead 0 }}p:white{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 41ns
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: powerline
[TRACE] 14:44:25.123 terminal.go:Flags() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 0s
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 41ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if or (gt .Ahead 0) (gt .Behind 0) }}p:purple{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 0s
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 41ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 41ns
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if or (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if gt .Ahead 0 }}p:white{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 0s
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 41ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.123 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: diamond
[TRACE] 14:44:25.123 terminal.go:Flags() - 0s
[DEBUG] 14:44:25.123 text.go:Render:80 → rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}
[TRACE] 14:44:25.123 terminal.go:Flags() - 0s
[TRACE] 14:44:25.124 terminal.go:TemplateCache() - 0s
[DEBUG] 14:44:25.124 text.go:Render:80 → rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}
[TRACE] 14:44:25.124 terminal.go:Flags() - 0s
[TRACE] 14:44:25.124 terminal.go:TemplateCache() - 0s
[DEBUG] 14:44:25.124 text.go:Render:80 → rendering template: {{ if or (gt .Ahead 0) (gt .Behind 0) }}p:purple{{ end }}
[TRACE] 14:44:25.124 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.124 terminal.go:TemplateCache() - 42ns
[DEBUG] 14:44:25.124 text.go:Render:80 → rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 14:44:25.124 terminal.go:Flags() - 0s
[TRACE] 14:44:25.124 terminal.go:TemplateCache() - 83ns
[TRACE] 14:44:25.124 terminal.go:Shell() - 83ns
[TRACE] 14:44:25.124 terminal.go:Shell() - 41ns
[TRACE] 14:44:25.124 terminal.go:Flags() - 0s
[TRACE] 14:44:25.124 terminal.go:Pwd() - 167ns
[TRACE] 14:44:25.124 terminal.go:GOOS() - 0s
[DEBUG] 14:44:25.124 segment.go:SetEnabled:115 → segment: Executiontime
[DEBUG] 14:44:25.124 executiontime.go:Enabled:57 → always_enabled: false
[TRACE] 14:44:25.124 terminal.go:ExecutionTime() - 125ns
[DEBUG] 14:44:25.124 executiontime.go:Enabled:59 → threshold: 2000.000000
[TRACE] 14:44:25.124 terminal.go:Shell() - 42ns
[TRACE] 14:44:25.124 terminal.go:Shell() - 42ns
[TRACE] 14:44:25.124 terminal.go:Flags() - 42ns
[TRACE] 14:44:25.124 terminal.go:Shell() - 0s
[TRACE] 14:44:25.124 terminal.go:Flags() - 41ns
[DEBUG] 14:44:25.124 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.124 terminal.go:Getenv(OMP_CACHE_DIR) - 1.792µs
[DEBUG] 14:44:25.124 terminal.go:Getenv:165 → NO DATA
[TRACE] 14:44:25.124 terminal.go:Getenv(XDG_CACHE_HOME) - 1.125µs
[TRACE] 14:44:25.124 terminal_unix.go:CachePath() - 12.25µs
[TRACE] 14:44:25.124 terminal.go:Flags() - 42ns
@n9iels n9iels added the 🐛 bug Something isn't working label Aug 27, 2024
@JanDeDobbeleer
Copy link
Owner

@lewis-yeung something in your changes that influence this?

@lewis-yeung
Copy link
Contributor

lewis-yeung commented Aug 27, 2024

@n9iels What is the last working version for you? Is it v23.7.2?

@n9iels
Copy link
Author

n9iels commented Aug 27, 2024

@n9iels What is the last working version for you? Is it v23.7.2?

Yes I believe so, but not 100% sure... let me try to figure out how to revert to a previous version tomorrow to be sure.

Bit more context, this bug appears in situations where you spwan a terminal from either executing a script or running a test from VSCode.

@lewis-yeung
Copy link
Contributor

@JanDeDobbeleer Can you reproduce this? I don't have a macOS environment to test it out.

@JanDeDobbeleer
Copy link
Owner

@lewis-yeung didn't check yet, still on low holiday mode

@Saywa94
Copy link

Saywa94 commented Sep 6, 2024

Yes. I'm having the same issue. I run Ubuntu and start my tmux sessions from a script, but the commands are being outputed as text before the prompt appears and none of them are being executed. I happened right after updating oh-my-posh.

@feekApp
Copy link

feekApp commented Sep 9, 2024

similar issues with tmux right here on macOS (mentioned in this issue )

@desdic
Copy link

desdic commented Sep 10, 2024

and same on linux

@ehawman-rosenberg
Copy link
Contributor

Another confirmation that this is happening on MacOS. Commands are echoed rather than executed.

/Users/ehawman/test.command; exit
Last login: Wed Sep 11 15:10:57 on ttys003
 ═  zsh  ehawman@myhostname  Wed | 15:11:08  0ms 
 ╚   󰋜 ⠀

With the omp eval line in my .zshrc commented out:

/Users/ehawman/test.command; exit
Last login: Wed Sep 11 15:12:07 on ttys002
ehawman@myhostname ~ % /Users/ehawman/test.command; exit
This test has been a success
Press enter to continue

I also tested changing my default shell to bash and confirmed the same behavior. I tested using both Iterm2 and the default Terminal application and confirmed the same behavior.

@JanDeDobbeleer
Copy link
Owner

JanDeDobbeleer commented Sep 13, 2024

So, this isn't a bug per se but an incompatibility issue. It's the upgrade notice that breaks this. It seem to be one or the other, when we execute the logic to check for an upgrade, anything which is entered isn't executed. The following settings re-enables that behaviour, with the downside of not seeing upgrade notifications:

"disable_notice": true,
"auto_upgrade": false

@feekApp
Copy link

feekApp commented Sep 13, 2024

@JanDeDobbeleer I can confirm your additional settings solves my issues

@ehawman-rosenberg
Copy link
Contributor

I work IT and oversee a Mac that other employees use intermittently. A month ago the machine works fine. I come in to do some tweaks and suddenly the scripts aren't working. I spent a long time looking under the wrong rugs: Testing different terminal emulators, different shells, different .command files, seeing if an update to Sonoma changed behavior, maybe a different shebang, etc. I finally discovered it was OMP by commenting out my .zshrc and uncommenting line by line. Could I have discovered the cause more quickly? Absolutely. Did it take me a while? Also yes.

I fear that this silent, esoteric failure will entrap someone else in the future.

Is there anything we can do to give future me's a helping hand in identifying/preventing it?

Obviously the most optimal thing would be to figure out how to keep the upgrade feature and execute these externally launched commands, but barring that what if:

  • OMP detects that a command has been suppressed and notifies the user about this problem. (Probably impossible)
  • OMP identifies OS on install and defaults to disabling upgrade on affected systems.
  • Upgrade defaults to disabled and is enabled by setting options.
  • Documentation highlights this issue in relevant location(s).

Personally, I feel that OMP should prioritize seamless terminal behavior over augmenting the upgrade process, esp since that overlaps with package managers. It's a great feature but not at the cost of silently breaking workflows.

I'm not mad about it and I don't want to come off as a whiner or ungrateful for this awesome tool. I just want to save someone else the headache going forward.

@JanDeDobbeleer
Copy link
Owner

Upgrade defaults to disabled and is enabled by setting options.

@ehawman-rosenberg I feel like this is the only correct option, I have a branch open for breaking changes, will add that one there as well.

@n9iels
Copy link
Author

n9iels commented Sep 16, 2024

So, this isn't a bug per se but an incompatibility issue. It's the upgrade notice that breaks this. It seem to be one or the other, when we execute the logic to check for an upgrade, anything which is entered isn't executed. The following settings re-enables that behaviour, with the downside of not seeing upgrade notifications:

"disable_notice": true,
"auto_upgrade": false

I can confirm this resolves this issue 🥳 I personally have no problems with disabling the upgrade and notice. Thanks for the little investigation!

@Wason1797
Copy link

HI! Thanks a lot for the solution. I was having issues in VSCode with my python virtual env not getting activated. Similar to this. The command was issued but somehow suppressed.

If anyone is having a similar problem, changing these configurations also fixes it.

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

8 participants