JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
17.01k stars 2.37k forks source link

Unicode symbols in prompt #5008

Closed MangriMen closed 4 months ago

MangriMen commented 4 months ago

Code of Conduct

What happened?

After last vscode update (06.06.2024 5:00 +7 UTC) i see unicode symbols after prompt in vscode terminal. They changed canvas renderer to WebGL2. Can i fix it?

Vscode version image

Terminal image

VSCode terminal after clear image

Theme

{
    "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
    "version": 2,
    "final_space": true,
    "console_title_template": "{{ .Shell }} in {{ .Folder }}",
    "blocks": [
      {
        "type": "prompt",
        "alignment": "left",
        "segments": [
          {
            "type": "session",
            "style": "diamond",
            "foreground": "p:black",
            "background": "p:yellow",
            "leading_diamond": "\ue0b6",
            "trailing_diamond": "\ue0b0",
            "template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} "
          },
          {
            "type": "path",
            "style": "powerline",
            "powerline_symbol": "\ue0b0",
            "foreground": "p:white",
            "background": "p:orange",
            "template": " \uf74a {{ path .Path .Location }} ",
            "properties": {
              "style": "folder"
            }
          },
          {
            "type": "git",
            "style": "powerline",
            "powerline_symbol": "\ue0b0",
            "foreground": "p:black",
            "foreground_templates": [
              "{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}",
              "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}",
              "{{ if gt .Ahead 0 }}p:white{{ end }}"
            ],
            "background": "p:green",
            "background_templates": [
              "{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}",
              "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}",
              "{{ if gt .Ahead 0 }}#49416D{{ end }}",
              "{{ if gt .Behind 0 }}#7A306C{{ end }}"
            ],
            "template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ",
            "properties": {
              "branch_max_length": 25,
              "fetch_status": true,
              "fetch_upstream_icon": true,
              "github_icon": "\uf7a3"
            }
          },
          {
            "type": "root",
            "style": "powerline",
            "powerline_symbol": "\ue0b0",
            "foreground": "p:white",
            "background": "p:yellow",
            "template": " \uf0e7 "
          },
          {
            "type": "exit",
            "style": "diamond",
            "foreground": "p:white",
            "background": "p:blue",
            "background_templates": ["{{ if gt .Code 0 }}p:red{{ end }}"],
            "leading_diamond": "<transparent,background>\ue0b0</>",
            "trailing_diamond": "\ue0b4",
            "template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ",
            "properties": {
              "always_enabled": true
            }
          },
          {
            "type": "text",
            "template": "\n ↳"
          }
        ]
      },
      {
        "type": "rprompt",
        "segments": [
          {
            "type": "node",
            "style": "plain",
            "foreground": "p:green",
            "background": "transparent",
            "template": "\uf898 ",
            "properties": {
              "display_mode": "files",
              "fetch_package_manager": false,
              "home_enabled": false
            }
          },
          {
            "type": "go",
            "style": "plain",
            "foreground": "p:blue",
            "background": "transparent",
            "template": "\ufcd1 ",
            "properties": {
              "fetch_version": false
            }
          },
          {
            "type": "python",
            "style": "plain",
            "foreground": "p:yellow",
            "background": "transparent",
            "template": "\ue235 ",
            "properties": {
              "display_mode": "files",
              "fetch_version": false,
              "fetch_virtual_env": false
            }
          },
          {
            "type": "shell",
            "style": "plain",
            "foreground": "p:white",
            "background": "transparent",
            "template": "in <p:blue><b>{{ .Name }}</b></> "
          },
          {
            "type": "time",
            "style": "plain",
            "foreground": "p:white",
            "background": "transparent",
            "template": "at <p:blue><b>{{ .CurrentDate | date \"15:04:05\" }}</b></>"
          }
        ]
      }
    ],
    "tooltips": [
      {
        "type": "aws",
        "tips": ["aws"],
        "style": "diamond",
        "foreground": "p:white",
        "background": "p:orange",
        "leading_diamond": "\ue0b0",
        "trailing_diamond": "\ue0b4",
        "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
        "properties": {
          "display_default": true
        }
      },
      {
        "type": "az",
        "tips": ["az"],
        "style": "diamond",
        "foreground": "p:white",
        "background": "p:blue",
        "leading_diamond": "\ue0b0",
        "trailing_diamond": "\ue0b4",
        "template": " \ufd03 {{ .Name }} ",
        "properties": {
          "display_default": true
        }
      },
      {
        "type": "git",
        "tips": ["git", "g"],
        "style": "diamond",
        "foreground": "#193549",
        "background": "#fffb38",
        "leading_diamond": "\ue0b6",
        "trailing_diamond": "\ue0b4",
        "template": "{{ .HEAD }}{{ if .Staging.Changed }} \uF046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uF044 {{ .Working.String }}{{ end }}",
        "properties": {
          "fetch_status": true,
          "fetch_upstream_icon": true
        }
      }
    ],
    "transient_prompt": {
      "foreground": "p:black",
      "background": "transparent",
      "template": "<p:yellow,transparent>\ue0b6</><,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> "
    },
    "secondary_prompt": {
      "foreground": "p:black",
      "background": "transparent",
      "template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> "
    },
    "palette": {
      "black": "#262B44",
      "blue": "#4B95E9",
      "green": "#59C9A5",
      "orange": "#F07623",
      "red": "#D81E5B",
      "white": "#E0DEF4",
      "yellow": "#F3AE35"
    }
  }

What OS are you seeing the problem on?

Windows

Which shell are you using?

powershell

Log output

oh-my-posh debug --plain

Version: 21.2.2

Shell: pwsh (7.4.2)

Prompt:

 user   project   develop ≡   
 ↳                                                                                                                                                                     in pwsh at 05:38:39

Segments:

ConsoleTitle(true)                        -   1 ms
Session(true)                             -   0 ms
Path(true)                                -   0 ms
Git(true)                                 -  37 ms
Root(false)                               -   0 ms
Exit(true)                                -   0 ms
Text(true)                                -   0 ms
Node(true)                                -  20 ms
Go(false)                                 -   0 ms
Python(false)                             -   0 ms
Shell(true)                               -   0 ms
Time(true)                                -   0 ms

Run duration: 79.2395ms

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

Config path: C:\Users\user\SomePath\config.omp.json

Logs:

[DEBUG] 05:38:39.773 shell.go:Getenv:326 → vscode
[TRACE] 05:38:39.785 shell.go:Getenv(TERM_PROGRAM) - 12.1861ms
[DEBUG] 05:38:39.785 shell.go:Getenv:326 → C:\Users\user\AppData\Local
[TRACE] 05:38:39.785 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 05:38:39.785 shell_windows.go:CachePath() - 0s
[DEBUG] 05:38:39.785 shell.go:Getenv:326 → C:\Users\user\SomePath\config.omp.json
[TRACE] 05:38:39.785 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 05:38:39.785 shell.go:Shell:601 → no shell name provided in flags, trying to detect it
[DEBUG] 05:38:39.789 shell.go:Shell:609 → process name: pwsh.exe
[TRACE] 05:38:39.789 shell.go:Shell() - 4.1309ms
[TRACE] 05:38:39.789 shell.go:resolveConfigPath() - 4.1309ms
[TRACE] 05:38:39.789 shell.go:Init() - 16.8452ms
[TRACE] 05:38:39.789 shell.go:Flags() - 0s
[TRACE] 05:38:39.789 config.go:loadConfig() - 0s
[TRACE] 05:38:39.789 shell.go:Flags() - 0s
[DEBUG] 05:38:39.791 shell.go:Getenv:326 → NO DATA
[TRACE] 05:38:39.791 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 05:38:39.791 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[TRACE] 05:38:39.791 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.791 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 05:38:39.791 shell.go:Shell() - 0s
[DEBUG] 05:38:39.791 shell.go:Getenv:326 → 7.4.2
[TRACE] 05:38:39.791 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 05:38:39.791 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 05:38:39.791 text.go:Render:71 → Rendering template: {{ .Shell }} in {{ .Folder }}
[TRACE] 05:38:39.791 shell_windows.go:Root() - 0s
[TRACE] 05:38:39.791 shell.go:Shell() - 0s
[TRACE] 05:38:39.791 shell.go:StatusCodes() - 0s
[TRACE] 05:38:39.791 shell_windows.go:IsWsl() - 0s
[DEBUG] 05:38:39.791 shell.go:TemplateCache:782 → environment: [envs]
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 shell.go:Pwd:356 → D:\Projects\Work\project
[TRACE] 05:38:39.792 shell.go:Pwd() - 1.0063ms
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 shell.go:User:494 → user
[TRACE] 05:38:39.792 shell.go:User() - 0s
[DEBUG] 05:38:39.792 shell.go:Host:511 → MY-PC
[TRACE] 05:38:39.792 shell.go:Host() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 shell.go:Getenv:326 → NO DATA
[TRACE] 05:38:39.792 shell.go:Getenv(SHLVL) - 0s
[TRACE] 05:38:39.792 shell.go:TemplateCache() - 1.0063ms
[DEBUG] 05:38:39.792 shell.go:Getenv:326 → 2
[TRACE] 05:38:39.792 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 05:38:39.792 shell.go:Getenv:326 → 1
[TRACE] 05:38:39.792 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Shell() - 0s
[TRACE] 05:38:39.792 shell.go:Shell() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.792 segment.go:SetEnabled:533 → Segment: Path
[DEBUG] 05:38:39.792 segment.go:SetEnabled:533 → Segment: Text
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.792 segment.go:SetEnabled:533 → Segment: Session
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:Shell() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[DEBUG] 05:38:39.792 segment.go:SetEnabled:533 → Segment: Root
[DEBUG] 05:38:39.792 shell.go:Getenv:326 → NO DATA
[TRACE] 05:38:39.792 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 05:38:39.792 shell.go:Getenv:326 → NO DATA
[TRACE] 05:38:39.792 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 05:38:39.792 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[TRACE] 05:38:39.792 shell.go:Flags() - 0s
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.792 shell_windows.go:Root() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 segment.go:SetEnabled:533 → Segment: Exit
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[TRACE] 05:38:39.792 shell.go:StatusCodes() - 0s
[DEBUG] 05:38:39.792 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 05:38:39.792 text.go:Render:71 → Rendering template: {{ .Code }}
[DEBUG] 05:38:39.792 properties.go:GetString:28 → 
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.792 segment.go:SetEnabled:533 → Segment: Git
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 properties.go:GetString:28 → ~
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.792 shell.go:Getenv:326 → C:\Users\user\AppData\Local
[DEBUG] 05:38:39.792 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 05:38:39.792 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[DEBUG] 05:38:39.792 properties.go:GetString:28 → NO DATA
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[DEBUG] 05:38:39.792 properties.go:GetString:28 → folder
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:GOOS() - 0s
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[DEBUG] 05:38:39.792 properties.go:GetString:28 → NO DATA
[TRACE] 05:38:39.792 shell.go:PathSeparator() - 0s
[DEBUG] 05:38:39.792 properties.go:GetString:28 → \
[TRACE] 05:38:39.792 shell.go:Pwd() - 0s
[TRACE] 05:38:39.792 shell_windows.go:IsWsl() - 0s
[TRACE] 05:38:39.792 shell.go:StackCount() - 0s
[TRACE] 05:38:39.792 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.792 properties.go:GetBool:22 → always_enabled: true
[TRACE] 05:38:39.792 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.793 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 05:38:39.793 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 05:38:39.793 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 05:38:39.793 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 05:38:39.793 shell_windows.go:DirIsWritable() - 999.6µs
[TRACE] 05:38:39.793 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.796 shell.go:CommandPath:553 → C:\Program Files\Git\cmd\git.exe
[TRACE] 05:38:39.796 shell.go:CommandPath(git.exe) - 4.5095ms
[TRACE] 05:38:39.796 shell.go:HasCommand(git.exe) - 4.5095ms
[TRACE] 05:38:39.796 shell.go:Pwd() - 0s
[TRACE] 05:38:39.796 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 05:38:39.796 properties.go:GetStringArray:52 → exclude_folders: []
[DEBUG] 05:38:39.796 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.796 properties.go:GetBool:22 → fetch_user: false
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.796 shell.go:Getenv:326 → NO DATA
[TRACE] 05:38:39.796 shell.go:Getenv(POSH_GIT_STATUS) - 0s
[DEBUG] 05:38:39.796 properties.go:GetBool:22 → fetch_status: true
[DEBUG] 05:38:39.796 properties.go:GetStringArray:52 → ignore_status: []
[DEBUG] 05:38:39.796 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.796 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.796 properties.go:GetKeyValueMap:46 → status_formats: map[]
[DEBUG] 05:38:39.796 properties.go:GetKeyValueMap:46 → untracked_modes: map[]
[DEBUG] 05:38:39.796 properties.go:GetKeyValueMap:46 → ignore_submodules: map[]
[DEBUG] 05:38:39.829 shell.go:RunCommand:531 ↓
    # branch.oid ...
    # branch.head develop
    # branch.upstream origin/develop
    # branch.ab +0 -0
[TRACE] 05:38:39.829 shell.go:RunCommand(git.exe -C D:/Projects/Work/project --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 32.7467ms
[DEBUG] 05:38:39.829 properties.go:GetString:28 → 
[DEBUG] 05:38:39.829 properties.go:GetInt:40 → branch_max_length: 25
[DEBUG] 05:38:39.829 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.829 shell.go:HasFolder(D:\Projects\Work\project\.git/rebase-merge) - 0s
[DEBUG] 05:38:39.829 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.829 shell.go:HasFolder(D:\Projects\Work\project\.git/rebase-apply) - 0s
[DEBUG] 05:38:39.829 properties.go:GetString:28 → 
[DEBUG] 05:38:39.830 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.830 shell.go:HasFilesInDir(MERGE_MSG) - 522.3µs
[DEBUG] 05:38:39.830 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.830 shell.go:HasFilesInDir(CHERRY_PICK_HEAD) - 0s
[DEBUG] 05:38:39.830 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.830 shell.go:HasFilesInDir(REVERT_HEAD) - 0s
[DEBUG] 05:38:39.830 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.830 shell.go:HasFilesInDir(sequencer/todo) - 0s
[DEBUG] 05:38:39.830 properties.go:GetString:28 → ≡
[DEBUG] 05:38:39.830 properties.go:GetBool:22 → fetch_upstream_icon: true
[DEBUG] 05:38:39.830 properties.go:GetKeyValueMap:46 → upstream_icons: map[]
[DEBUG] 05:38:39.830 properties.go:GetString:28 → 
[TRACE] 05:38:39.830 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.830 text.go:Render:71 ↓
    Rendering template:
     ↳
[DEBUG] 05:38:39.830 text.go:Render:71 → Rendering template:  {{ if .SSHSession }} {{ end }}{{ .UserName }}
[TRACE] 05:38:39.830 shell.go:Shell() - 0s
[DEBUG] 05:38:39.830 text.go:Render:71 → Rendering template:   {{ path .Path .Location }}
[DEBUG] 05:38:39.830 text.go:Render:71 → Rendering template:  {{ if gt .Code 0 }}{{ else }}{{ end }}
[DEBUG] 05:38:39.830 text.go:Render:71 → 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] 05:38:39.830 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.830 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.830 shell.go:Shell() - 0s
[TRACE] 05:38:39.830 shell.go:Shell() - 0s
[TRACE] 05:38:39.830 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.830 shell.go:Shell() - 0s
[TRACE] 05:38:39.830 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.830 shell.go:Shell() - 0s
[DEBUG] 05:38:39.830 text.go:Render:71 → Rendering template: diamond
[DEBUG] 05:38:39.830 text.go:Render:71 → Rendering template: powerline
[DEBUG] 05:38:39.830 text.go:Render:71 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if gt .Ahead 0 }}#49416D{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if gt .Behind 0 }}#7A306C{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if gt .Ahead 0 }}p:white{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: powerline
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: powerline
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: {{ if gt .Code 0 }}p:red{{ end }}
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template: diamond
[DEBUG] 05:38:39.831 text.go:Render:71 → Rendering template:
[TRACE] 05:38:39.831 shell.go:Shell() - 0s
[TRACE] 05:38:39.831 shell.go:Shell() - 0s
[TRACE] 05:38:39.831 shell.go:Shell() - 0s
[TRACE] 05:38:39.831 shell.go:Flags() - 0s
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[TRACE] 05:38:39.831 shell.go:Flags() - 0s
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.831 shell.go:GOOS() - 0s
[TRACE] 05:38:39.831 shell.go:Flags() - 0s
[DEBUG] 05:38:39.831 segment.go:SetEnabled:533 → Segment: Time
[DEBUG] 05:38:39.831 properties.go:GetString:28 → 15:04:05
[TRACE] 05:38:39.831 shell.go:Flags() - 0s
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.831 properties.go:GetString:28 → files
[TRACE] 05:38:39.831 shell.go:Flags() - 0s
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[TRACE] 05:38:39.831 shell.go:GOOS() - 0s
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.831 segment.go:SetEnabled:533 → Segment: Go
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[TRACE] 05:38:39.831 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.831 segment.go:SetEnabled:533 → Segment: Python
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.831 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[TRACE] 05:38:39.831 shell.go:GOOS() - 0s
[DEBUG] 05:38:39.831 segment.go:SetEnabled:533 → Segment: Node
[DEBUG] 05:38:39.831 properties.go:GetStringArray:52 → folders: []
[DEBUG] 05:38:39.831 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 05:38:39.831 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 05:38:39.831 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 05:38:39.831 segment.go:SetEnabled:533 → Segment: Shell
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.831 properties.go:GetBool:22 → home_enabled: false
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[TRACE] 05:38:39.831 shell.go:Flags() - 0s
[DEBUG] 05:38:39.831 properties.go:GetStringArray:52 → folders: []
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[TRACE] 05:38:39.831 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.831 properties.go:GetBool:22 → home_enabled: false
[DEBUG] 05:38:39.831 properties.go:GetBool:22 → fetch_virtual_env: false
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.831 shell_windows.go:58 → C:\Users\user
[DEBUG] 05:38:39.831 properties.go:GetString:28 → files
[DEBUG] 05:38:39.831 properties.go:GetBool:22 → fetch_package_manager: false
[TRACE] 05:38:39.831 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(*.go) - 518.9µs
[TRACE] 05:38:39.832 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(go.mod) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(*.py) - 518.9µs
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(*.js) - 518.9µs
[TRACE] 05:38:39.832 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(*.ipynb) - 0s
[TRACE] 05:38:39.832 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:404 → true
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(*.ts) - 0s
[DEBUG] 05:38:39.832 properties.go:GetBool:22 → fetch_version: true
[DEBUG] 05:38:39.832 properties.go:GetBool:22 → cache_version: false
[TRACE] 05:38:39.832 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.832 shell.go:Getenv:326 → C:\Users\user\AppData\Local
[TRACE] 05:38:39.832 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(pyproject.toml) - 0s
[TRACE] 05:38:39.832 shell.go:Pwd() - 0s
[DEBUG] 05:38:39.832 shell.go:HasFilesInDir:409 → false
[TRACE] 05:38:39.832 shell.go:HasFilesInDir(venv.bak) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.832 shell.go:HasFolder(.venv) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.832 shell.go:HasFolder(venv) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.832 shell.go:HasFolder(virtualenv) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.832 shell.go:HasFolder(venv-win) - 0s
[DEBUG] 05:38:39.832 shell.go:HasFolder:438 → false
[TRACE] 05:38:39.832 shell.go:HasFolder(pyenv-win) - 0s
[DEBUG] 05:38:39.834 shell.go:CommandPath:553 → C:\Program Files\nodejs\node.exe
[TRACE] 05:38:39.834 shell.go:CommandPath(node) - 2.6024ms
[TRACE] 05:38:39.834 shell.go:HasCommand(node) - 2.6024ms
[DEBUG] 05:38:39.851 shell.go:RunCommand:531 → v20.11.1
[TRACE] 05:38:39.851 shell.go:RunCommand(node --version) - 16.8558ms
[DEBUG] 05:38:39.851 properties.go:GetString:28 → https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[DEBUG] 05:38:39.851 text.go:Render:71 → Rendering template: https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V{{ .Major }}.md#{{ .Full }}
[TRACE] 05:38:39.852 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.852 shell.go:Pwd() - 0s
[ERROR] 05:38:39.852 shell.go:FileContent:464 → open D:\Projects\Work\project\.nvmrc: The system cannot find the file specified.
[TRACE] 05:38:39.852 shell.go:FileContent(.nvmrc) - 0s
[TRACE] 05:38:39.852 shell.go:TemplateCache() - 0s
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: at <p:blue><b>{{ .CurrentDate | date "15:04:05" }}</b></>
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: 
[TRACE] 05:38:39.852 shell.go:Shell() - 0s
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: in <p:blue><b>{{ .Name }}</b></>
[TRACE] 05:38:39.852 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.852 shell.go:TemplateCache() - 0s
[TRACE] 05:38:39.852 shell.go:Shell() - 0s
[TRACE] 05:38:39.852 shell.go:Shell() - 0s
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: plain
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: plain
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: plain
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: plain
[DEBUG] 05:38:39.852 text.go:Render:71 → Rendering template: plain
[TRACE] 05:38:39.852 shell.go:Shell() - 0s
[TRACE] 05:38:39.852 shell.go:Flags() - 0s
[TRACE] 05:38:39.852 shell.go:Shell() - 0s
[TRACE] 05:38:39.852 shell.go:Shell() - 0s
[DEBUG] 05:38:39.852 shell_windows.go:TerminalWidth:111 → terminal width: 230
[TRACE] 05:38:39.852 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 05:38:39.852 shell.go:Getenv:326 → C:\Users\user\AppData\Local
[TRACE] 05:38:39.852 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 05:38:39.852 shell_windows.go:CachePath() - 503.6µs
[TRACE] 05:38:39.852 shell.go:Flags() - 0s
fernandogprieto commented 4 months ago

I have the same problem Screenshot 2024-06-05 185539

JanDeDobbeleer commented 4 months ago

@MangriMen this is their shell integration feature acting up. Disable that one as it's broken.

fernandogprieto commented 4 months ago

@MangriMen this is their shell integration feature acting up. Disable that one as it's broken.

But is it a problem from ohmyposh or vscode ?

https://github.com/microsoft/vscode/issues/214386

This issue report explain the problem

JanDeDobbeleer commented 4 months ago

But is it a problem from ohmyposh or vscode ?

@fernandogprieto vscode, this doesn't happen anywhere else with the same config.

fernandogprieto commented 4 months ago

But is it a problem from ohmyposh or vscode ?

@fernandogprieto vscode, this doesn't happen anywhere else with the same config.

Thanks

github-actions[bot] commented 1 month ago

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.