-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
🐛 bugSomething isn't workingSomething isn't working
Description
Code of Conduct
- I agree to follow this project's Code of Conduct
What happened?
Since the most recent oh-my-posh upgrade, the negligible theme broke.
S:\..\..\render-service :: main | 18.20.8 | 99 | 13:50:16
is all that's rendered, with a single empty column after the :16, which is where the cursor is (on line 1).
It's supposed to 'newline' and print the red-or-green -> on the next line.
Gemini has fixed it for me (locally) by changing the last block from:
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "lightGreen",
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"options": {
"always_enabled": true
},
"style": "powerline",
"template": "\u279c ",
"type": "status"
}
],
"type": "prompt"
}to:
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "lightGreen",
"foreground_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
],
"style": "plain",
"template": "\u279c ",
"type": "text"
}
],
"type": "prompt"
}For Info - I asked Gemini to refer to multiverse-neon because it's similar and does still work.
Theme
Negligible
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
...
[TRACE] 13:54:24.673 terminal.go:FileContent(.nvmrc) - 0s
[DEBUG] 13:54:24.673 text.go:patchTemplate:149 → | {{ if .Data.PackageManagerIcon }}{{ .Data.PackageManagerIcon }} {{ end }}{{ .Data.Full }}
[TRACE] 13:54:24.682 terminal_windows_nix.go:BatteryState() - 51.8691ms
[DEBUG] 13:54:24.682 properties.go:GetString:46 → charged_icon:
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → | {{ if not .Data.Error }}{{ .Data.Icon }}{{ .Data.Percentage }}{{ end }}{{ .Data.Error }}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{if eq "Charging" .Data.State.String}}#4caf50{{end}}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{if eq "Discharging" .Data.State.String}}#40c4ff{{end}}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{if eq "Full" .Data.State.String}}#ff0000{{end}}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{if eq "Charging" .Data.State.String}}#4caf50{{end}}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{if eq "Discharging" .Data.State.String}}#40c4ff{{end}}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{if eq "Full" .Data.State.String}}#ff0000{{end}}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → | {{ .Data.CurrentDate | date .Data.Format }}
[DEBUG] 13:54:24.682 terminal_windows.go:TerminalWidth:99 → terminal width: 222
[TRACE] 13:54:24.682 terminal_windows.go:TerminalWidth() - 0s
[TRACE] 13:54:24.682 terminal.go:Shell() - 0s
[TRACE] 13:54:24.682 terminal.go:Flags() - 0s
[DEBUG] 13:54:24.682 home.go:12 → C:\Users\bartd
[TRACE] 13:54:24.682 terminal.go:GOOS() - 0s
[DEBUG] 13:54:24.682 segment.go:Execute:108 → segment: Status
[DEBUG] 13:54:24.682 store.go:]:137 → (session) key not found: toggle_cache
[TRACE] 13:54:24.682 store.go:](session toggle_cache) - 0s
[DEBUG] 13:54:24.682 segment.go:isToggled:229 → no toggles found
[TRACE] 13:54:24.682 terminal.go:StatusCodes() - 0s
[DEBUG] 13:54:24.682 properties.go:GetString:46 → status_template: {{ .Code }}
[DEBUG] 13:54:24.682 text.go:patchTemplate:149 → {{ .Code }}
[DEBUG] 13:54:24.682 properties.go:GetBool:40 → always_enabled: false
[TRACE] 13:54:24.682 terminal.go:Shell() - 0s
[TRACE] 13:54:24.683 path.go:Path() - 0s
with the fix applied:
...
[TRACE] 13:55:37.485 terminal.go:FileContent(.nvmrc) - 512.2µs
[DEBUG] 13:55:37.485 text.go:patchTemplate:149 → | {{ if .Data.PackageManagerIcon }}{{ .Data.PackageManagerIcon }} {{ end }}{{ .Data.Full }}
[TRACE] 13:55:37.487 terminal_windows_nix.go:BatteryState() - 51.1882ms
[DEBUG] 13:55:37.487 properties.go:GetString:46 → charged_icon:
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → | {{ if not .Data.Error }}{{ .Data.Icon }}{{ .Data.Percentage }}{{ end }}{{ .Data.Error }}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{if eq "Charging" .Data.State.String}}#4caf50{{end}}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{if eq "Discharging" .Data.State.String}}#40c4ff{{end}}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{if eq "Full" .Data.State.String}}#ff0000{{end}}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{if eq "Charging" .Data.State.String}}#4caf50{{end}}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{if eq "Discharging" .Data.State.String}}#40c4ff{{end}}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{if eq "Full" .Data.State.String}}#ff0000{{end}}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → | {{ .Data.CurrentDate | date .Data.Format }}
[DEBUG] 13:55:37.487 terminal_windows.go:TerminalWidth:99 → terminal width: 222
[TRACE] 13:55:37.487 terminal_windows.go:TerminalWidth() - 0s
[TRACE] 13:55:37.487 terminal.go:Shell() - 0s
[TRACE] 13:55:37.487 terminal.go:Flags() - 0s
[DEBUG] 13:55:37.487 home.go:12 → C:\Users\bartd
[TRACE] 13:55:37.487 terminal.go:GOOS() - 0s
[DEBUG] 13:55:37.487 segment.go:Execute:108 → segment: Text
[DEBUG] 13:55:37.487 store.go:]:137 → (session) key not found: toggle_cache
[TRACE] 13:55:37.487 store.go:](session toggle_cache) - 0s
[DEBUG] 13:55:37.487 segment.go:isToggled:229 → no toggles found
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{ if gt .Code 0 }}red{{ end }}
[DEBUG] 13:55:37.487 text.go:patchTemplate:149 → {{ if gt .Code 0 }}red{{ end }}
[TRACE] 13:55:37.487 terminal.go:Shell() - 0s
[TRACE] 13:55:37.487 terminal.go:Shell() - 0s
[TRACE] 13:55:37.487 path.go:Path() - 0sReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 bugSomething isn't workingSomething isn't working