Transient Prompt: Error accepts 1 arg, received 198 #6522
Unanswered
lsig
asked this question in
Troubleshoot
Replies: 1 comment 2 replies
-
|
@lsig This bug was fixed in #6524. Just wait for the next release. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I just update oh-my-posh to the newest version (26.4.1). After that I get an error for each shell command I try to execute, and for some strange reason they are executed twice as well (see picture and trace below).
I am on macOS sequoia 15.0.1, using Ghostty 1.1.3. Error persists with and without tmux.
link to config: https://github.com/lsig/dotfiles/blob/main/.config/ohmyposh/conf.toml
.zshrc initiliztion: eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/conf.toml)"
Trace
Segments:
ConsoleTitle(true) - 0 ms
Path(true) - 0 ms
Git(false) - 0 ms
Executiontime(false) - 0 ms
Text(true) - 0 ms
Run duration: 8.551041ms
Cache path: /Users/xxx/.cache/oh-my-posh
Config path: /Users/xxx/.config/ohmyposh/conf.toml
Logs:
[DEBUG] 15:20:09.742 debug.go:36 → debug mode enabled
[DEBUG] 15:20:09.742 load.go:Path:79 → config set using POSH_THEME: /Users/xxx/.config/ohmyposh/conf.toml
[TRACE] 15:20:09.742 load.go:Path() - 10.25µs
[TRACE] 15:20:09.742 load.go:loadConfig() - 170.209µs
[TRACE] 15:20:09.742 load.go:Load() - 176.458µs
[DEBUG] 15:20:09.742 home.go:12 → /Users/xxx
[TRACE] 15:20:09.742 path.go:Path() - 32.458µs
[DEBUG] 15:20:09.742 file.go:Init:26 → loading cache file: /Users/xxx/.cache/oh-my-posh/omp.cache
[DEBUG] 15:20:09.742 file.go:Init:47 → loading cache key: INITVERSIONZSH
[DEBUG] 15:20:09.742 file.go:Init:47 → loading cache key: is_wsl
[TRACE] 15:20:09.742 file.go:Init(/Users/xxx/.cache/oh-my-posh/omp.cache) - 63.333µs
[DEBUG] 15:20:09.742 home.go:12 → /Users/xxx
[TRACE] 15:20:09.742 path.go:Path() - 13.5µs
[DEBUG] 15:20:09.742 file.go:Init:26 → loading cache file: /Users/xxx/.cache/oh-my-posh/omp.cache.9ce09cb9-cc87-4dff-a9e2-07735cc82d8e
[DEBUG] 15:20:09.742 file.go:Init:47 → loading cache key: prompt_count_cache
[DEBUG] 15:20:09.742 file.go:Init:47 → loading cache key: template_cache
[TRACE] 15:20:09.742 file.go:Init(/Users/xxx/.cache/oh-my-posh/omp.cache.9ce09cb9-cc87-4dff-a9e2-07735cc82d8e) - 42.75µs
[DEBUG] 15:20:09.742 file.go:Get:80 → getting cache key: prompt_count_cache with value: 22
[TRACE] 15:20:09.742 terminal.go:setPromptCount() - 5.667µs
[TRACE] 15:20:09.742 terminal.go:GOOS() - 83ns
[DEBUG] 15:20:09.742 terminal.go:setPwd:118 → /Users/xxx/foo
[TRACE] 15:20:09.742 terminal.go:setPwd() - 11.042µs
[TRACE] 15:20:09.742 terminal.go:Init() - 198.166µs
[TRACE] 15:20:09.742 terminal.go:Shell() - 84ns
[TRACE] 15:20:09.742 terminal.go:Flags() - 41ns
[DEBUG] 15:20:09.742 file.go:Get:80 → getting cache key: template_cache with value: {"SegmentsCache":{"Path":{"Segment":{"Text":"
/foo","Index":0},"Location":"/Users/xxx/foo","Path":"/foo","Folders":[{"Name":"foo","Path":"/foo","Display":false}],"StackCount":0,"Writable":true,"RootDir":false},"Text":{"Segment":{"Text":"❯","Index":0}}},"Segments":{},"Var":{},"PWD":"/foo","Folder":"foo","PSWD":"","UserName":"xxx","HostName":"xxx","ShellVersion":"5.9","Shell":"zsh","AbsolutePWD":"/Users/xxx/foo","OS":"xxx","Version":"26.4.1","PromptCount":22,"SHLVL":2,"Jobs":0,"Code":0,"WSL":false,"Root":false}[TRACE] 15:20:09.742 cache.go:restoreCache() - 48.083µs
[DEBUG] 15:20:09.742 writer.go:Init:106 → terminal program: tmux
[DEBUG] 15:20:09.742 writer.go:Init:107 → terminal shell: shell
[DEBUG] 15:20:09.742 terminal.go:Getenv:80 → NO DATA
[TRACE] 15:20:09.742 terminal.go:Getenv(OMP_CACHE_DISABLED) - 7.208µs
[DEBUG] 15:20:09.742 file.go:Get:75 → cache key not found: accent_color
[ERROR] 15:20:09.749 terminal.go:RunCommand:293 → exit status 1
[DEBUG] 15:20:09.749 terminal.go:RunCommand:296 ↓
2025-06-08 15:20:09.749 defaults[87386:28119242]
The domain/default pair of (kCFPreferencesAnyApplication, AppleAccentColor) does not exist
[TRACE] 15:20:09.749 terminal.go:RunCommand(defaults read -g AppleAccentColor) - 6.925833ms
[ERROR] 15:20:09.749 colors_darwin.go:GetAccentColor:14 → exit status 1
[TRACE] 15:20:09.749 colors.go:SetAccentColor() - 6.947333ms
[TRACE] 15:20:09.749 terminal.go:Shell() - 334ns
[DEBUG] 15:20:09.749 terminal.go:Getenv:80 → 5.9
[TRACE] 15:20:09.749 terminal.go:Getenv(POSH_SHELL_VERSION) - 4.125µs
[DEBUG] 15:20:09.749 debug.go:PrintDebug:24 → segment: Title
[DEBUG] 15:20:09.749 text.go:patchTemplate:125 → {{ .Shell }} in {{ .Folder }}
[TRACE] 15:20:09.749 text.go:Render({{ .Shell }} in {{ .Folder }}) - 209.166µs
[TRACE] 15:20:09.749 terminal.go:Flags() - 42ns
[DEBUG] 15:20:09.749 terminal.go:Getenv:80 → NO DATA
[TRACE] 15:20:09.749 terminal.go:Getenv(POSH_CURSOR_LINE) - 3.167µs
[DEBUG] 15:20:09.749 terminal.go:Getenv:80 → NO DATA
[TRACE] 15:20:09.749 terminal.go:Getenv(POSH_CURSOR_COLUMN) - 1.959µs
[TRACE] 15:20:09.749 terminal.go:Flags() - 0s
[TRACE] 15:20:09.749 terminal.go:Flags() - 42ns
[TRACE] 15:20:09.749 terminal.go:Flags() - 41ns
[DEBUG] 15:20:09.749 home.go:12 → /Users/xxx
[TRACE] 15:20:09.749 terminal.go:GOOS() - 41ns
[DEBUG] 15:20:09.749 segment.go:Execute:112 → segment: Git
[DEBUG] 15:20:09.749 file.go:Get:75 → cache key not found: toggle_cache
[TRACE] 15:20:09.749 terminal.go:Flags() - 125ns
[DEBUG] 15:20:09.749 segment.go:isToggled:229 → no toggles found
[DEBUG] 15:20:09.749 file.go:Get:80 → getting cache key: is_wsl with value: false
[DEBUG] 15:20:09.749 home.go:12 → /Users/xxx
[TRACE] 15:20:09.749 terminal.go:GOOS() - 42ns
[DEBUG] 15:20:09.749 terminal_unix.go:IsWsl:32 → false
[DEBUG] 15:20:09.749 segment.go:Execute:112 → segment: Path
[TRACE] 15:20:09.749 terminal_unix.go:IsWsl() - 9.917µs
[TRACE] 15:20:09.749 terminal_unix.go:IsWsl2() - 13.125µs
[DEBUG] 15:20:09.749 file.go:Get:75 → cache key not found: toggle_cache
[DEBUG] 15:20:09.749 segment.go:isToggled:229 → no toggles found
[TRACE] 15:20:09.749 terminal.go:GOOS() - 42ns
[TRACE] 15:20:09.750 terminal.go:GOOS() - 41ns
[DEBUG] 15:20:09.750 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 15:20:09.750 properties.go:GetString:28 → windows_registry_icon:
[DEBUG] 15:20:09.750 properties.go:GetString:28 → windows_registry_icon:
[DEBUG] 15:20:09.750 home.go:12 → /Users/xxx
[TRACE] 15:20:09.750 separator.go:Separator() - 0s
[TRACE] 15:20:09.750 terminal.go:GOOS() - 42ns
[TRACE] 15:20:09.750 terminal.go:GOOS() - 42ns
[DEBUG] 15:20:09.750 properties.go:GetString:28 → home_icon: ~
[DEBUG] 15:20:09.750 terminal.go:CommandPath:320 → /usr/bin/git
[DEBUG] 15:20:09.750 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 15:20:09.750 terminal.go:CommandPath(git) - 69.5µs
[TRACE] 15:20:09.750 separator.go:Separator() - 42ns
[TRACE] 15:20:09.750 terminal.go:HasCommand(git) - 71.667µs
[TRACE] 15:20:09.750 terminal.go:GOOS() - 41ns
[TRACE] 15:20:09.750 terminal.go:GOOS() - 42ns
[TRACE] 15:20:09.750 separator.go:Separator() - 41ns
[DEBUG] 15:20:09.750 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 15:20:09.750 terminal.go:GOOS() - 42ns
[TRACE] 15:20:09.750 terminal.go:GOOS() - 0s
[TRACE] 15:20:09.750 terminal.go:GOOS() - 0s
[TRACE] 15:20:09.750 terminal.go:GOOS() - 0s
[TRACE] 15:20:09.750 terminal.go:GOOS() - 41ns
[DEBUG] 15:20:09.750 terminal.go:ResolveSymlink:211 → /Users/xxx/foo
[TRACE] 15:20:09.750 terminal.go:ResolveSymlink(/Users/xxx/foo) - 15.75µs
[DEBUG] 15:20:09.750 properties.go:GetString:28 → gitdir_format:
[DEBUG] 15:20:09.750 properties.go:GetString:28 → style: full
[DEBUG] 15:20:09.750 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 15:20:09.750 properties.go:GetString:28 → folder_separator_template:
[DEBUG] 15:20:09.750 properties.go:GetString:28 → folder_separator_icon: /
[DEBUG] 15:20:09.750 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 15:20:09.750 properties.go:GetString:28 → folder_format: %s
[ERROR] 15:20:09.750 terminal.go:HasParentFilePath:479 → stat .git: no such file or directory
[DEBUG] 15:20:09.750 properties.go:GetString:28 → edge_format: %s
[TRACE] 15:20:09.750 terminal.go:HasParentFilePath(.git) - 40.334µs
[DEBUG] 15:20:09.750 properties.go:GetString:28 → left_format: %s
[DEBUG] 15:20:09.750 properties.go:GetString:28 → right_format: %s
[TRACE] 15:20:09.750 text.go:Render(~/foo) - 125ns
[TRACE] 15:20:09.750 terminal.go:Flags() - 41ns
[TRACE] 15:20:09.750 terminal.go:GOOS() - 0s
[TRACE] 15:20:09.750 terminal.go:StackCount() - 42ns
[TRACE] 15:20:09.750 terminal_unix.go:DirIsWritable(/Users/xxx/foo) - 12.042µs
[DEBUG] 15:20:09.750 text.go:patchTemplate:125 → {{ .Data.Path }}
[TRACE] 15:20:09.750 text.go:Render({{ .Path }}) - 81.542µs
[TRACE] 15:20:09.750 text.go:Render(plain) - 125ns
[TRACE] 15:20:09.750 text.go:Render(plain) - 84ns
[TRACE] 15:20:09.750 terminal.go:Flags() - 41ns
[TRACE] 15:20:09.750 terminal.go:Shell() - 83ns
[TRACE] 15:20:09.750 terminal.go:Shell() - 41ns
[TRACE] 15:20:09.750 terminal.go:Flags() - 41ns
[DEBUG] 15:20:09.750 home.go:12 → /Users/xxx
[TRACE] 15:20:09.750 terminal.go:GOOS() - 0s
[DEBUG] 15:20:09.750 segment.go:Execute:112 → segment: Executiontime
[DEBUG] 15:20:09.750 file.go:Get:75 → cache key not found: toggle_cache
[DEBUG] 15:20:09.750 segment.go:isToggled:229 → no toggles found
[DEBUG] 15:20:09.750 properties.go:GetBool:22 → always_enabled: false
[TRACE] 15:20:09.750 terminal.go:ExecutionTime() - 83ns
[DEBUG] 15:20:09.750 properties.go:GetFloat64:34 → threshold: 5000.000000
[TRACE] 15:20:09.750 text.go:Render(plain) - 167ns
[TRACE] 15:20:09.750 terminal.go:Flags() - 42ns
[DEBUG] 15:20:09.750 home.go:12 → /Users/xxx
[TRACE] 15:20:09.750 terminal.go:GOOS() - 0s
[DEBUG] 15:20:09.750 segment.go:Execute:112 → segment: Text
[DEBUG] 15:20:09.750 file.go:Get:75 → cache key not found: toggle_cache
[DEBUG] 15:20:09.750 segment.go:isToggled:229 → no toggles found
[TRACE] 15:20:09.750 text.go:Render(❯) - 125ns
[DEBUG] 15:20:09.750 text.go:patchTemplate:125 → {{if gt .Code 0}}red{{end}}
[TRACE] 15:20:09.750 text.go:Render({{if gt .Code 0}}red{{end}}) - 162.625µs
[DEBUG] 15:20:09.750 text.go:patchTemplate:125 → {{if eq .Code 0}}magenta{{end}}
[TRACE] 15:20:09.750 text.go:Render({{if eq .Code 0}}magenta{{end}}) - 24.459µs
[TRACE] 15:20:09.750 text.go:Render(plain) - 83ns
[DEBUG] 15:20:09.750 text.go:patchTemplate:125 → {{if gt .Code 0}}red{{end}}
[TRACE] 15:20:09.750 text.go:Render({{if gt .Code 0}}red{{end}}) - 13.083µs
[DEBUG] 15:20:09.750 text.go:patchTemplate:125 → {{if eq .Code 0}}magenta{{end}}
[TRACE] 15:20:09.750 text.go:Render({{if eq .Code 0}}magenta{{end}}) - 9.667µs
[TRACE] 15:20:09.750 terminal.go:Flags() - 41ns
[TRACE] 15:20:09.750 terminal.go:Shell() - 42ns
[TRACE] 15:20:09.750 terminal.go:Shell() - 0s
[TRACE] 15:20:09.750 terminal.go:Flags() - 42ns
[DEBUG] 15:20:09.750 text.go:patchTemplate:125 → {{ .Shell }} in {{ .Folder }}
[TRACE] 15:20:09.750 text.go:Render({{ .Shell }} in {{ .Folder }}) - 9.459µs
[TRACE] 15:20:09.750 terminal.go:Shell() - 0s
[TRACE] 15:20:09.750 terminal.go:Flags() - 0s
[DEBUG] 15:20:09.750 home.go:12 → /Users/xxx
[TRACE] 15:20:09.750 path.go:Path() - 11.708µs
[TRACE] 15:20:09.750 terminal.go:Flags() - 42ns
Beta Was this translation helpful? Give feedback.
All reactions