Closed Heleboel closed 2 years ago
@Heleboel found an issue, will fix.
Updating to version 12.0.0 fixed the problem, thanks!
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.
Code of Conduct
What happened?
The prompt is showing "cannot get version" in the python part of the prompt. As far as I can see, Python is not installed on my system, however, there are some tools that use Python and might have it installed along their other files.
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "segments": [ { "background": "#61AFEF", "foreground": "#ffffff", "leading_diamond": "\ue0b6", "style": "diamond", "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} ", "trailing_diamond": "\ue0b0", "type": "session" }, { "background": "#C678DD", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "style": "full" }, "style": "powerline", "template": " {{ .Path }} ", "type": "path" }, { "type": "git", "style": "powerline", "powerline_symbol": "\ue0b0", "background": "#95ffa4", "foreground": "#193549", "properties": { "fetch_status": true, "fetch_upstream_icon": true, "template": "[{{ .UpstreamIcon }} {{ .HEAD }}]({{ .UpstreamURL }}){{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} " } }, { "background": "#FF6471", "foreground": "#ffffff", "style": "diamond", "template": "\ue0b0 </>{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ",
"trailing_diamond": "\ue0b4",
"type": "python"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"foreground": "#ffffff",
"style": "plain",
"template": "[{{ .CurrentDate | date .Format }}]",
"type": "time"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "#007ACC",
"style": "plain",
"template": "\u276f",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
}
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output