oh-my-posh: Segment Project Error

Code of Conduct

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

What happened?

Segment throws unexpected end of JSON input on windows and pwsh or powershell.

Write-PoshDebug freezes powershell prompt.

Theme

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
	
    {
      "alignment": "left",
      "segments": [
    {
          "background": "#2f2f2f",
          "foreground": "#26C6DA",
          
          "properties": {
            "alpine": "\uf300",
            "arch": "\uf303",
            "centos": "\uf304",
            "debian": "\uf306",
            "elementary": "\uf309",
            "fedora": "\uf30a",
            "gentoo": "\uf30d",
            "linux": "\ue712",
            "macos": "\ue711",
            "manjaro": "\uf312",
            "mint": "\uf30f",
            "opensuse": "\uf314",
            "raspbian": "\uf315",
            "ubuntu": "\uf31c",
            "windows": "\ue70f"
          },
          "style": "diamond",
		  "leading_diamond": "\ue0c7",
          "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}<#7a7a7a> \ue0b1</>",
          "type": "os"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#fafafa",
          "properties": {
            "display_default": false
          },
          "style": "diamond",
          "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ if .Root }}\uf0e7 {{ end }}<#77f5d6>{{ .UserName }}</><#7a7a7a>\uf1fa</><#2EEFBF>{{ .HostName }}</><#7a7a7a> \ue0b1</>",
          "type": "session"
        },
		
        
        {
          "background": "#2f2f2f",
          "foreground": "#fafafa",
          "properties": {
            "folder_icon": "<#B5B2C2>\ue5fe </>",
            "folder_separator_icon": "<#B5B2C2>\ue0bf </>",
            "home_icon": "\uf015",
            "style": "agnoster_short"
          },
          "style": "powerline",
		  "powerline_symbol": "\uE0B0",
		  
          "template": "<#f2f200> \ue5ff </>{{ .Path }} ",
          "type": "path"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#ffeb3b",
          "foreground_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb3b{{ end }}",
            "{{ if gt .Ahead 0 }}#8A4FFF{{ end }}",
            "{{ if gt .Behind 0 }}#2EC4B6{{ end }}"
          ],
          "properties": {
            "fetch_stash_count": true,
            "fetch_status": true,
            "fetch_upstream_icon": true
          },
         "style": "powerline",
		  "powerline_symbol": "\uE0B0",
		  
          "template": "<#7a7a7a>\ue0b1 </>{{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 <#E84855>{{ .Working.String }}</>{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 <#2FDA4E>{{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ",
          "type": "git"
        },
		{
		  "type": "project",
		  "style": "powerline",
		  "powerline_symbol": "\uE0B0",
		  "foreground": "#193549",
		  "background": "#ffeb3b",
		  "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Version }}\uf487 {{.Version}}{{ end }} {{ if .Name }}{{ .Name }}{{ end }}{{ end }} "
		}
		
       
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        
        {
          "background": "#2f2f2f",
          "foreground": "#6CA35E",
          "style": "powerline",
		  "powerline_symbol": "\uE0B2",
		   "invert_powerline": true,
          "template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}<#7a7a7a> \ue0b3</>",
          "type": "node"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#4063D8",
           "style": "powerline",
		  "powerline_symbol": "\uE0B2",
		   "invert_powerline": true,
          "template": "\ue73d {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3</>",
          "type": "php"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#96E072",
          "style": "powerline",		  
		  "powerline_symbol": "\uE0B2",
		   "invert_powerline": true,
          "template": "\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3</>",
          "type": "python"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#3891A6",
           "style": "powerline",
		  "powerline_symbol": "\uE0B2",
		   "invert_powerline": true,
          "template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }}<#7a7a7a> \ue0b3</>",
          "type": "dotnet"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#1BD760",
           "style": "powerline",
		  "powerline_symbol": "\uE0B2",
		  "invert_powerline": true,
          "template": "\uf9c6 {{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}<#7a7a7a> \ue0b3</>",
          "type": "spotify"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#FF0000",
		   "style": "powerline",
		  "powerline_symbol": "\uE0B2",
           "invert_powerline": true,
          "template": "\uf16a {{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }}<#7a7a7a> \ue0b3</>",
          "type": "ytm"
        },
        {
          "background": "#2f2f2f",
          "foreground": "#fafafa",
          "powerline_symbol": "\ue0b2",
		   "invert_powerline": true,
          "properties": {
            "time_format": "15:04:05"
          },
          "style": "powerline",
          "template": " {{ .CurrentDate | date .Format }}<#007ACC> \uf64f </>",
          "type": "time"
        },
        {
          "background_templates": [
            "{{ if eq \"Full\" .State.String }}#4caf50{{ end }}",
            "{{ if eq \"Charging\" .State.String }}#40c4ff{{ end }}",
            "{{ if eq \"Discharging\" .State.String }}#ff5722{{ end }}"
          ],
          "foreground": "#fafafa",
          "invert_powerline": true,
          "powerline_symbol": "\ue0b2",
          "style": "diamond",
          "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 \uf583 ",
          "trailing_diamond": "\ue0c6",
          "type": "battery"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#7a7a7a",
          "style": "plain",
          "template": "{{.Shell}}~#@\u276f",
          "type": "text"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        {
          "foreground": "#7a7a7a",
          "style": "plain",
          "template": " \u276e ",
          "type": "text"
        },
        {
          "foreground": "#FFCE5C",
          "properties": {
            "style": "roundrock",
            "threshold": 500
          },
          "style": "plain",
          "template": " {{ .FormattedMs }}<#fafafa> \uf252 </>",
          "type": "executiontime"
        },
        {
          "foreground": "#9FD356",
          "foreground_templates": [
            "{{ if gt .Code 0 }}#E84855{{ end }}"
          ],
          "properties": {
            "always_enabled": true,
            "display_exit_code": true
          },
          "style": "plain",
          "template": " \uf705 {{ if gt .Code 0 }}\uf00d {{ .Code }}{{ else }}\uf42e{{ end }} ",
          "type": "exit"
        }
      ],
      "type": "rprompt"
    }
  ],
  "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
  "final_space": true,
  "version": 2
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

pwsh~#@❯ oh-my-posh debug                                                                                                                                                                                                           ❮   

Version: 7.58.1

Segments:

ConsoleTitle(true)   -   0 ms - pwsh :: Project
os(true)             -   0 ms -   
session(true)        -   0 ms -  peterDESKTOP-MISBF7F 
path(true)           -   0 ms -      Project
git(false)           -  29 ms -
project(true)        -   1 ms -   1.0.0 Project
node(true)           -  64 ms -  17.8.0 
php(false)           -   0 ms -
python(false)        -   0 ms -
dotnet(false)        -   1 ms -
spotify(false)       -  50 ms -
ytm(false)           -  24 ms -
time(true)           -   0 ms -  08:39:33 
battery(true)        -  17 ms -  100  
text(true)           -   1 ms - pwsh~#@❯
text(true)           -   0 ms -  ❮
executiontime(false) -   0 ms -
exit(true)           -   0 ms -   

Run duration: 191.9048ms

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

Logs:

2022/04/05 08:39:33 Flags duration: 0s, args:
2022/04/05 08:39:33 Flags duration: 0s, args:
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: OMP_CACHE_DISABLED
2022/04/05 08:39:33 Root duration: 0s, args:
2022/04/05 08:39:33 Shell duration: 0s, args:
2022/04/05 08:39:33 ErrorCode duration: 0s, args:
2022/04/05 08:39:33 IsWsl duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 User duration: 0s, args:
2022/04/05 08:39:33 Host duration: 0s, args:
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: SSH_CONNECTION
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: SSH_CLIENT
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 Flags duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 Flags duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 IsWsl duration: 0s, args:
2022/04/05 08:39:33 StackCount duration: 0s, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 GOOS duration: 0s, args:
2022/04/05 08:39:33 HasCommand duration: 28.4367ms, args: git.exe
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 error: HasParentFilePath
CreateFile C:\.git: The system cannot find the file specified.
2022/04/05 08:39:33 HasParentFilePath duration: 984.7µs, args: .git
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: package.json
2022/04/05 08:39:33 FileContent duration: 0s, args: package.json
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: package.json
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 986.4µs, args: *.js
2022/04/05 08:39:33 HasCommand duration: 26.9989ms, args: node
2022/04/05 08:39:33 debug: RunCommand
v17.8.0
2022/04/05 08:39:33 RunCommand duration: 35.9229ms, args: node --version
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 error: FileContent
open .nvmrc: The system cannot find the file specified.
2022/04/05 08:39:33 FileContent duration: 560µs, args: .nvmrc
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 509.9µs, args: *.php
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: composer.json
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: composer.lock
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: .php-version
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: blade.php
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: VIRTUAL_ENV
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: CONDA_ENV_PATH
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: CONDA_DEFAULT_ENV
2022/04/05 08:39:33 debug: Getenv

2022/04/05 08:39:33 Getenv duration: 0s, args: PYENV_VERSION
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.cs
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 586.4µs, args: *.csx
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.vb
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.sln
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.csproj
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 510.9µs, args: *.vbproj
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.fs
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.fsx
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: *.fsproj
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 PathSeparator duration: 0s, args:
2022/04/05 08:39:33 HasFiles duration: 0s, args: global.json
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 error: QueryWindowTitles
no matching window title found
2022/04/05 08:39:33 WindowTitle duration: 26.6014ms, args: ^(Spotify.*)|(.*\s-\s.*)$
2022/04/05 08:39:33 error: QueryWindowTitles
no matching window title found
2022/04/05 08:39:33 WindowTitle duration: 23.9993ms, args: ^(Spotify.*)
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 error: HTTPRequest
Get "http://127.0.0.1:9863/query": context deadline exceeded
2022/04/05 08:39:33 HTTPRequest duration: 24.7663ms, args: http://127.0.0.1:9863/query
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 IsWsl duration: 0s, args:
2022/04/05 08:39:33 BatteryInfo duration: 17.0059ms, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 ExecutionTime duration: 0s, args:
2022/04/05 08:39:33 debug: Pwd
C:\Users\peter\Projects\Project
2022/04/05 08:39:33 Pwd duration: 0s, args:
2022/04/05 08:39:33 debug: Home
C:\Users\peter
2022/04/05 08:39:33 ErrorCode duration: 0s, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 TemplateCache duration: 0s, args:
2022/04/05 08:39:33 debug: Getenv
C:\Users\peter\AppData\Local
2022/04/05 08:39:33 Getenv duration: 0s, args: LOCALAPPDATA
2022/04/05 08:39:33 CachePath duration: 0s, args:

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (13 by maintainers)

Commits related to this issue

Most upvoted comments

1, install-amd64.exe 2, notepad $PROFILE

oh-my-posh init pwsh --config ~/oh-my-posh.json | Invoke-Expression

Yeah, you’re right. I manually opened a terminal as an administrator, and again the problem occurred because the sudo plugin opened a new shell. I just updated omp and found the problem fixed. It’s my fault. I’m sorry for the trouble, orz

@batu1579 no. More probable that you updated and a shell reload was required.

@neradp I’m going to remove that cmdlet. No idea why it hangs, and no real use-case anymore.

I can confirm that: Project segment is working now, function write-poshdebug is not.