JanDeDobbeleer / oh-my-posh

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

Extra space is added when using UTF-16 codepoints in VSCode #4106

Closed TaromaruYuki closed 1 year ago

TaromaruYuki commented 1 year ago

Code of Conduct

What happened?

An extra, uncolored space is added to the end of the segment, before the trail when using the VSCode terminal. Exactly what is happening in #3722 except in a whole different terminal. The usual fix for that problem in the FAQ does nothing.

image

Windows terminal does not have this problem.

image

I have tried messing with the terminal GPU acceleration, but that did not help.

Both terminals are using Powershell.

Theme

Chips, but with deprecated nerd font characters replaced. (Date and time, execution time, and battery percentages)

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "background_templates": [
            "{{ if not (empty .Env.OVERRIDE_FOLDER_BADGE_BG) }}{{ .Env.OVERRIDE_FOLDER_BADGE_BG }}{{ else }}p:c-badge-folder{{ end }}"
          ],
          "foreground_templates": [
            "{{ if not (empty .Env.OVERRIDE_FOLDER_BADGE_FG) }}{{ .Env.OVERRIDE_FOLDER_BADGE_FG }}{{ else }}p:c-badge-text{{ end }}"
          ],
          "leading_diamond": "\uE0B6",
          "properties": {
            "style": "agnoster_short",
            "folder_separator_icon": "/",
            "hide_root_location": true,
            "max_depth": 2
          },
          "style": "diamond",
          "template": "\uF07B {{ .Path }}",
          "trailing_diamond": "\uE0B4",
          "type": "path"
        },
        {
          "background": "p:c-git-normal",
          "background_templates": [
            "{{ if gt .Ahead 0 }}p:c-git-ahead{{ end }}",
            "{{ if gt .Behind 0 }}p:c-git-behind{{ end }}",
            "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:c-git-ahead-behind{{ end }}",
            "{{ if and (not .Working.Changed) (.Staging.Changed) }}p:c-git-staging{{ end }}",
            "{{ if and (.Working.Changed) (.Staging.Changed) }}p:c-git-staging-working{{ end }}",
            "{{ if .UpstreamGone }}p:c-git-upstream-gone{{ end }}",
            "{{ if and (.Working.Changed) (not .Staging.Changed) }}p:c-git-working{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": " \uE0B6",
          "style": "diamond",
          "template": "{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uE0B1 \uF448 ({{ .Working.String }}){{ end }}{{ if and .Working.Changed .Staging.Changed }} \uE621 {{ end }}{{ if .Staging.Changed }}{{ if not .Working.Changed }} \uE0B1 {{ end }}\uF854 ({{ .Staging.String }}){{ end }}{{ if .StashCount }} \uE621 \uF6FC {{ .StashCount }} Stash{{ if gt .StashCount 1 }}es{{ end }}{{ end }}",
          "properties": {
            "branch_icon": "\uE0A0 ",
            "branch_ahead_icon": " \uE621 \uF9AC ",
            "branch_behind_icon": " \uE621 \uF9AD ",
            "branch_gone_icon": " \uE621 \uF00D",
            "branch_identical_icon": " \uE621 \uF00C",
            "fetch_status": true,
            "fetch_stash_count": true
          },
          "trailing_diamond": "\uE0B4",
          "type": "git"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "right",
      "segments": [
        {
          "background_templates": [
            "{{ if lt .Ms 60000 }}p:c-exec-fast{{ end }}",
            "{{ if lt .Ms 3600000 }}p:c-exec-normal{{ end }}",
            "{{ if lt .Ms 10800000 }}p:c-exec-slow{{ end }}",
            "{{ if ge .Ms 10800000 }}p:c-exec-slower{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "properties": {
            "style": "austin",
            "threshold": 1
          },
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PRIMARY_EXEC_TIME)) }}\udb81\udd1f {{ .FormattedMs }}.{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "executiontime"
        },
        {
          "background_templates": [
            "{{ if lt .CumulativeTotal.Seconds 3600 }}p:c-wakatime-undertime{{ end }}",
            "{{ if lt .CumulativeTotal.Seconds 10800 }}p:c-wakatime-warm-up{{ end }}",
            "{{ if lt .CumulativeTotal.Seconds 25200 }}p:c-wakatime-working{{ end }}",
            "{{ if lt .CumulativeTotal.Seconds 28000 }}p:c-wakatime-quota{{ end }}",
            "{{ if ge .CumulativeTotal.Seconds 28800 }}p:c-wakatime-overtime{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "properties": {
            "url": "https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key={{ .Env.WAKATIME_API_KEY }}",
            "http_timeout": 2000,
            "cache_timeout": 5
          },
          "style": "diamond",
          "template": "{{ if and (.Env.WAKATIME_API_KEY) (eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_WAKATIME))) (gt .CumulativeTotal.Seconds 0) }}\uFA19 {{ secondsRound .CumulativeTotal.Seconds }}.{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "wakatime"
        },
        {
          "background_templates": [
            "{{ if regexMatch \"(^(0[6-9])|(1[0-1])):\" (.CurrentDate | date .Format) }}p:c-date-time-morning{{ end }}",
            "{{ if regexMatch (\"(^1[2-4]):\") (.CurrentDate | date .Format) }}p:c-date-time-noon{{ end }}",
            "{{ if regexMatch (\"(^1[5-7]):\") (.CurrentDate | date .Format) }}p:c-date-time-afternoon{{ end }}",
            "{{ if regexMatch \"(^(1[8-9])|(2[0-3])):\" (.CurrentDate | date .Format) }}p:c-date-time-evening{{ end }}",
            "{{ if regexMatch \"^(0[0-5]):\" (.CurrentDate | date .Format) }}p:c-date-time-night{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "properties": {
            "time_format": "15:04 (01/02)"
          },
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_DTIME)) }}\udb80\udcf0 {{ .CurrentDate | date .Format }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "time"
        },
        {
          "background_templates": [
            "{{ if .Error }}p:c-battery-state-error{{ end }}",
            "{{ if le .Percentage 15 }}p:c-battery-15-less{{ end }}",
            "{{ if and (ge .Percentage 16) (le .Percentage 30) }}p:c-battery-30-less{{ end }}",
            "{{ if and (ge .Percentage 31) (le .Percentage 45) }}p:c-battery-45-less{{ end }}",
            "{{ if and (ge .Percentage 46) (le .Percentage 55) }}p:c-battery-55-less{{ end }}",
            "{{ if and (ge .Percentage 56) (le .Percentage 70) }}p:c-battery-70-less{{ end }}",
            "{{ if and (ge .Percentage 71) (le .Percentage 90) }}p:c-battery-90-less{{ end }}",
            "{{ if and (ge .Percentage 91) (le .Percentage 100) }}p:c-battery-100-less{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if eq \"True\" (title (default \"False\" .Env.DISABLE_SEGMENT_BATTERY)) }}{{ else }}{{ if not .Error }}{{ if eq \"Charging\" .State.String }}\udb80\udc84 {{ else if eq \"Discharging\" .State.String }}{{ else if eq \"Full\" .State.String }}~ {{ else }}? {{ end }}{{ if le .Percentage 15 }}\udb80\udc7b{{ else if and (ge .Percentage 16) (le .Percentage 30) }}\udb80\udc7c{{ else if and (ge .Percentage 31) (le .Percentage 45) }}\udb80\udc7d{{ else if and (ge .Percentage 46) (le .Percentage 55)}}\udb80\udc7e{{ else if and (ge .Percentage 56) (le .Percentage 70) }}\udb80\udc80{{ else if and (ge .Percentage 71) (le .Percentage 80) }}\udb80\udc81{{ else if and (ge .Percentage 81) (le .Percentage 95) }}\udb80\udc82{{ else }}\udb80\udc79{{ end }} {{ .Percentage }}%{{ else }}!{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4",
          "type": "battery"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "template": "{{ if false }}{{ end }}",
          "type": "session",
          "style": "diamond"
        },
        {
          "background_templates": [
            "{{ if and (.Segments.Session.SSHSession) (not .Root) }}p:c-shell-state-ssh-active{{ end }}",
            "{{ if and (not .Segments.Session.SSHSession) (.Root) }}p:c-shell-state-root-active{{ end }}",
            "{{ if and (.Segments.Session.SSHSession) (.Root) }}p:c-shell-state-root-ssh-active{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if or (.Segments.Session.SSHSession) (.Root) }}{{ if .Segments.Session.SSHSession }}\uE7A2 SSH{{ end }}{{ if and (.Segments.Session.SSHSession) (.Root) }} \uE621 {{ end }}{{ if .Root }}# Root{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "text"
        },
        {
          "background_templates": [
            "{{ if empty .Full }}p:c-project-generic-error{{ else }}p:c-project-crystal{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_CRYSTAL)) }}\uE62F {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "crystal"
        },
        {
          "background_templates": [
            "{{ if empty .Full }}p:c-project-generic-error{{ else }}p:c-project-flutter{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_FLUTTER)) }}Flutter | {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "dart"
        },
        {
          "background_templates": [
            "{{ if .Error }}p:c-project-generic-error{{ else }}p:c-project-lua{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_LUA)) }}\uE620 {{ if or (.Error) (empty .Full) }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "lua"
        },
        {
          "background_templates": [
            "{{ if empty .Full }}p:c-project-generic-error{{ else }}p:c-project-node{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_NODE)) }}\uE718 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "node"
        },
        {
          "background_templates": [
            "{{ if empty .Full }}p:c-project-generic-error{{ else }}p:c-project-rust{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "style": "diamond",
          "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_RUST)) }}\uE7A8 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "rust"
        },
        {
          "background_templates": [
            "{{ if empty .Full }}p:c-project-generic-error{{ else }}p:c-project-python{{ end }}"
          ],
          "foreground": "p:c-badge-text",
          "leading_diamond": "\uE0B6",
          "properties": {
            "display_mode": "context"
          },
          "style": "diamond",
          "template": "{{ if or (eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_PYTHON))) (eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_PYTHON_VENV))) }}\uE235 {{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_PYTHON)) }}{{ .Full }}{{ end }}{{ if and (.Venv) (eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_PYTHON))) (eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_PYTHON_VENV))) }} \uE621 {{ end }}{{ if and (.Venv) (eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_PYTHON_VENV))) }}{{ if .Env.SEGMENT_PROJECT_PYTHON_ACTIVE_VENV_STR }}{{ .Env.SEGMENT_PROJECT_PYTHON_ACTIVE_VENV_STR }}{{ else }}{{ .Venv }}{{ end }}{{ end }}{{ end }}",
          "trailing_diamond": "\uE0B4 ",
          "type": "python"
        },
        {
          "style": "plain",
          "foreground_templates": [
            "{{ if eq \"False\" (title (default \"False\" .Env.ENABLE_ARROW_DIVIDER_COLOR_EXECUTION_RETURN)) }}p:c-badge-white{{ else }}{{ if eq .Code 0 }}p:c-badge-return-success{{ else if or (eq .Code 1) (eq .Code 130) }}p:c-badge-return-fail-term{{ else }}p:c-badge-return-custom{{ end }}{{ end }}"
          ],
          "template": "\u276F",
          "type": "text"
        }
      ],
      "type": "prompt"
    }
  ],
  "console_title_template": "{{ if .Segments.Session.SSHSession }}SSH'd{{ if or .Root }} & {{ end }}{{ end }}{{ if .Root }}# (as {{ .UserName }}) | {{ end }}{{ if .WSL }}WSL | {{ end }}{{ .Folder }} ({{ .Shell }})",
  "final_space": true,
  "palette": {
    "c-badge-folder": "#FFD770",
    "c-badge-text": "#212121",
    "c-badge-white": "#FAFAFA",
    "c-badge-return-custom": "#E7B9FF",
    "c-badge-return-fail-term": "#FF8A80",
    "c-badge-return-success": "#B2FF59",
    "c-battery-15-less": "#FF8A80",
    "c-battery-30-less": "#FFD180",
    "c-battery-45-less": "#FFE57F",
    "c-battery-55-less": "#FFFF8D",
    "c-battery-70-less": "#F4FF81",
    "c-battery-90-less": "#B9F6CA",
    "c-battery-100-less": "#CCFF90",
    "c-battery-state-error": "#FF867F",
    "c-date-time-morning": "#FFFF8D",
    "c-date-time-noon": "#FFF64F",
    "c-date-time-afternoon": "#FFC400",
    "c-date-time-evening": "#C0CFFF",
    "c-date-time-night": "#83B9FF",
    "c-exec-fast": "#C6FF00",
    "c-exec-normal": "#FFFF00",
    "c-exec-slow": "#FFD180",
    "c-exec-slower": "#FF867F",
    "c-git-ahead": "#6EFFFF",
    "c-git-behind": "#FFA06D",
    "c-git-ahead-behind": "#C0CFFF",
    "c-git-normal": "#66FFA6",
    "c-git-staging": "#FFD740",
    "c-git-staging-working": "#FFB2FF",
    "c-git-upstream-gone": "#FF867F",
    "c-git-working": "#84FFFF",
    "c-project-generic-error": "#FF867F",
    "c-project-crystal": "#FFFFFF",
    "c-project-flutter": "#6DC2FF",
    "c-project-lua": "#BBC2FF",
    "c-project-node": "#9CFF57",
    "c-project-rust": "#FFAB40",
    "c-project-python": "#FFE873",
    "c-secondary-ellipsis": "#FFFF8D",
    "c-shell-state-ssh-active": "#BAFFFF",
    "c-shell-state-root-active": "#9FFFE0",
    "c-shell-state-root-ssh-active": "#FFB2FF",
    "c-wakatime-undertime": "#A7FFEB",
    "c-wakatime-warm-up": "#FFFFB3",
    "c-wakatime-working": "#FFD180",
    "c-wakatime-quota": "#FFD0B0",
    "c-wakatime-overtime": "#FF8A80"
  },
  "transient_prompt": {
    "template": "{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_TRANSIENT)) }}<{{ if eq .Code 0 }}p:c-badge-return-success{{ else if or (eq .Code 1) (eq .Code 130) }}p:c-badge-return-fail-term{{ else }}p:c-badge-return-custom{{ end }}>\uE0B6</><p:c-badge-text,{{ if eq .Code 0 }}p:c-badge-return-success{{ else if or (eq .Code 1) (eq .Code 130) }}p:c-badge-return-fail-term{{ else }}p:c-badge-return-custom{{ end }}>\uF55D \uE0B1 {{ if .Segments.Executiontime.Ms }}{{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_TRANSIENT_EXEC_TIME)) }}\uFA1E {{ .Segments.Executiontime.FormattedMs }} \uE621 {{ end }}{{ end }}<b>{{ if eq .Code 0 }}OK{{ else if eq .Code 1 }}FAIL{{ else if eq .Code 130 }}TERM{{ else }}Code{{ end }} ({{ .Code }})</b></><{{ if eq .Code 0 }}p:c-badge-return-success{{ else if or (eq .Code 1) (eq .Code 130) }}p:c-badge-return-fail-term{{ else }}p:c-badge-return-custom{{ end }}>\uE0B4</> {{ end }}\u276F "
  },
  "secondary_prompt": {
    "background": "transparent",
    "foreground": "p:c-secondary-ellipsis",
    "template": " ... "
  },
  "version": 2
}

What OS are you seeing the problem on?

Windows

Which shell are you using?

No response

Log output

Version: 18.2.0

Shell: powershell (5.1.22621.1778)

Segments:

ConsoleTitle(true)                         -   3 ms - Doggo (powershell)
path(true)                                 -   1 ms -  ~
git(false)                                 -   4 ms -
executiontime(false)                       -   0 ms -
wakatime(false)                            - 2011 ms -
time(true)                                 -   6 ms - 󰃰 00:21 (07/31)
battery(true)                              -   9 ms -  󰁼 21%
session(false)                             -   0 ms -
text(false)                                -   0 ms -
crystal(false)                             -   0 ms -
dart(false)                                -   0 ms -
lua(false)                                 -   0 ms -
node(false)                                -   0 ms -
rust(false)                                -   0 ms -
python(false)                              -   0 ms -
text(true)                                 -   1 ms - ❯

Run duration: 2.0556398s

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

Config path: C:\Users\Doggo\custom_chips.omp.json

Logs:

[DEBUG] 00:21:07.244 shell.go:Getenv:398 → NO DATA
[TRACE] 00:21:07.244 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 00:21:07.244 shell.go:Getenv:398 → C:\Users\Doggo\AppData\Local
[TRACE] 00:21:07.244 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 00:21:07.244 shell_windows.go:CachePath() - 0s
[DEBUG] 00:21:07.247 shell.go:Getenv:398 → C:\Users\Doggo\custom_chips.omp.json
[TRACE] 00:21:07.247 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 00:21:07.248 shell.go:Shell:638 → no shell name provided in flags, trying to detect it
[DEBUG] 00:21:07.256 shell.go:Shell:646 → process name: powershell.exe
[TRACE] 00:21:07.256 shell.go:Shell() - 8.6973ms
[TRACE] 00:21:07.256 shell.go:resolveConfigPath() - 8.6973ms
[TRACE] 00:21:07.256 shell.go:Init() - 11.7102ms
[TRACE] 00:21:07.257 shell.go:Flags() - 0s
[TRACE] 00:21:07.258 config.go:loadConfig() - 2.0178ms
[TRACE] 00:21:07.258 shell.go:Flags() - 0s
[DEBUG] 00:21:07.258 shell.go:Getenv:398 → NO DATA
[TRACE] 00:21:07.258 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 00:21:07.258 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[TRACE] 00:21:07.258 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.258 shell_windows.go:WindowsRegistryKeyValue:206 → ColorizationColor(DWORD): 0xC40078D4
[TRACE] 00:21:07.258 shell.go:Shell() - 0s
[DEBUG] 00:21:07.258 shell.go:Getenv:398 → 5.1.22621.1778
[TRACE] 00:21:07.258 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 00:21:07.258 debug.go:PrintDebug:23 → Segment: Title
[TRACE] 00:21:07.261 shell_windows.go:Root() - 0s
[TRACE] 00:21:07.261 shell.go:Shell() - 0s
[TRACE] 00:21:07.261 shell.go:StatusCodes() - 0s
[TRACE] 00:21:07.261 shell_windows.go:IsWsl() - 0s
[DEBUG] 00:21:07.262 shell.go:TemplateCache:816 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\Doggo\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133295245252039163 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=DOGGO-LAPTOP-WI ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DriverData=C:\Windows\System32\Drivers\DriverData FPS_BROWSER_APP_PROFILE_STRING=Internet Explorer FPS_BROWSER_USER_PROFILE_STRING=Default HOMEDRIVE=C: HOMEPATH=\Users\Doggo JAVA_HOME=C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\ LIBCLANG_PATH=C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin LOCALAPPDATA=C:\Users\Doggo\AppData\Local LOGONSERVER=\\DOGGO-LAPTOP-WI NUMBER_OF_PROCESSORS=8 OneDrive=C:\Users\Doggo\OneDrive OPENSSL_CONF=C:\Program Files\OpenSSL-Win64\bin\openssl.cfg OS=Windows_NT Path=C:\Program Files\Eclipse Adoptium\jdk-17.0.7.7-hotspot\bin;C:\Program Files\Python311\Scripts\;C:\Program Files\Python311\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\GitHub CLI\;C:\Program Files\PuTTY\;C:\Program Files\dotnet\;C:\Program Files\CMake\bin;C:\Program Files\Neovide\;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\x64\bin;;C:\Program Files (x86)\AOMEI\AOMEI Backupper\7.2.1;C:\Users\Doggo\.cargo\bin;C:\Users\Doggo\AppData\Local\Microsoft\WindowsApps;C:\Users\Doggo\AppData\Local\GitHubDesktop\bin;C:\Users\Doggo\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Doggo\AppData\Local\Programs\Neovim\bin;C:\Users\Doggo\AppData\Local\Microsoft\WinGet\Packages\Ninja-build.Ninja_Microsoft.Winget.Source_8wekyb3d8bbwe;C:\Program Files\OpenSSL-Win64\bin;C:\Users\Doggo\AppData\Roaming\pypoetry\venv\Scripts;C:\Users\Doggo\AppData\Local\Programs\oh-my-posh\bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW;.CPL POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=1 POSH_GIT_ENABLED=False POSH_INSTALLER=winget POSH_PID=7404 POSH_SHELL_VERSION=5.1.22621.1778 POSH_THEME=C:\Users\Doggo\custom_chips.omp.json POSH_THEMES_PATH=C:\Users\Doggo\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 140 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=8c01 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\Doggo\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\Doggo\AppData\Local\Temp TMP=C:\Users\Doggo\AppData\Local\Temp USERDOMAIN=DOGGO-LAPTOP-WI USERDOMAIN_ROAMINGPROFILE=DOGGO-LAPTOP-WI USERNAME=Doggo USERPROFILE=C:\Users\Doggo windir=C:\WINDOWS WSLENV=WT_SESSION::WT_PROFILE_ID WT_PROFILE_ID={61c54bbd-c2c6-5271-96e7-009a87ff44bf} WT_SESSION=98812692-87ae-48ae-9cb3-80e3c27ba873 ZES_ENABLE_SYSMAN=1]
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.262 shell.go:Pwd:428 → C:\Users\Doggo
[TRACE] 00:21:07.262 shell.go:Pwd() - 0s
[DEBUG] 00:21:07.262 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.262 shell.go:User:549 → Doggo
[TRACE] 00:21:07.262 shell.go:User() - 0s
[DEBUG] 00:21:07.262 shell.go:Host:561 → Doggo-Laptop-Windows
[TRACE] 00:21:07.262 shell.go:Host() - 0s
[TRACE] 00:21:07.262 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.262 shell.go:Getenv:398 → NO DATA
[TRACE] 00:21:07.262 shell.go:Getenv(SHLVL) - 0s
[TRACE] 00:21:07.262 shell.go:TemplateCache() - 1.0392ms
[TRACE] 00:21:07.262 shell.go:Flags() - 0s
[DEBUG] 00:21:07.263 block.go:Debug:280 → Segment: path
[TRACE] 00:21:07.263 shell.go:Pwd() - 0s
[DEBUG] 00:21:07.263 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:Pwd() - 0s
[TRACE] 00:21:07.263 shell.go:Shell() - 0s
[TRACE] 00:21:07.263 shell.go:Shell() - 0s
[TRACE] 00:21:07.263 shell.go:Flags() - 0s
[DEBUG] 00:21:07.263 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 00:21:07.263 properties.go:GetString:28 → 
[DEBUG] 00:21:07.263 properties.go:GetString:28 → 
[DEBUG] 00:21:07.263 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.263 properties.go:GetString:28 → ~
[DEBUG] 00:21:07.263 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 00:21:07.263 shell.go:PathSeparator() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:PathSeparator() - 0s
[TRACE] 00:21:07.263 shell.go:PathSeparator() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:PathSeparator() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:PathSeparator() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:GOOS() - 0s
[TRACE] 00:21:07.263 shell.go:PathSeparator() - 0s
[TRACE] 00:21:07.263 shell.go:Pwd() - 0s
[TRACE] 00:21:07.263 shell_windows.go:IsWsl() - 0s
[TRACE] 00:21:07.263 shell.go:StackCount() - 0s
[DEBUG] 00:21:07.263 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 00:21:07.263 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 00:21:07.263 win32_windows.go:isWriteable:311 ↓
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 00:21:07.263 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 00:21:07.263 shell_windows.go:DirIsWritable() - 0s
[TRACE] 00:21:07.263 shell.go:TemplateCache() - 0s
[TRACE] 00:21:07.263 shell.go:TemplateCache() - 0s
[TRACE] 00:21:07.263 shell.go:Shell() - 0s
[TRACE] 00:21:07.264 shell.go:TemplateCache() - 0s
[TRACE] 00:21:07.264 shell.go:TemplateCache() - 0s
[DEBUG] 00:21:07.264 block.go:Debug:280 → Segment: git
[TRACE] 00:21:07.264 shell.go:Pwd() - 0s
[DEBUG] 00:21:07.264 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:07.264 shell.go:GOOS() - 0s
[TRACE] 00:21:07.264 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.269 shell.go:CommandPath:600 → C:\Program Files\Git\cmd\git.exe
[TRACE] 00:21:07.269 shell.go:CommandPath(git.exe) - 4.9261ms
[TRACE] 00:21:07.269 shell.go:HasCommand(git.exe) - 4.9261ms
[TRACE] 00:21:07.269 shell.go:Pwd() - 0s
[ERROR] 00:21:07.269 shell.go:HasParentFilePath:734 → CreateFile .git: The system cannot find the file specified.
[TRACE] 00:21:07.269 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 00:21:07.269 properties.go:GetBool:22 → fetch_bare_info: false
[TRACE] 00:21:07.269 shell.go:Flags() - 0s
[DEBUG] 00:21:07.269 block.go:Debug:280 → Segment: executiontime
[TRACE] 00:21:07.269 shell.go:Pwd() - 0s
[DEBUG] 00:21:07.269 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:07.269 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.269 properties.go:GetBool:22 → always_enabled: false
[TRACE] 00:21:07.269 shell.go:ExecutionTime() - 0s
[DEBUG] 00:21:07.269 properties.go:GetFloat64:34 → threshold: 1.000000
[DEBUG] 00:21:07.269 block.go:Debug:280 → Segment: wakatime
[TRACE] 00:21:07.269 shell.go:Pwd() - 0s
[DEBUG] 00:21:07.269 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:07.269 shell.go:GOOS() - 0s
[DEBUG] 00:21:07.269 properties.go:GetString:28 → https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key={{ .Env.WAKATIME_API_KEY }}
[TRACE] 00:21:07.269 shell.go:TemplateCache() - 0s
[DEBUG] 00:21:07.269 properties.go:GetInt:40 → cache_timeout: 5
[DEBUG] 00:21:07.269 properties.go:GetInt:40 → http_timeout: 2000
[DEBUG] 00:21:07.269 shell.go:HTTPRequest:690 ↓
    GET /api/v1/users/current/summaries?start=today&end=today&api_key= HTTP/1.1
    Host: wakatime.com
    User-Agent: Go-http-client/1.1
    Accept-Encoding: gzip

[ERROR] 00:21:09.281 shell.go:HTTPRequest:694 → Get "https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key=": context deadline exceeded
[TRACE] 00:21:09.281 shell.go:HTTPRequest(https://wakatime.com/api/v1/users/current/summaries?start=today&end=today&api_key=) - 2.0119051s
[DEBUG] 00:21:09.281 block.go:Debug:280 → Segment: time
[TRACE] 00:21:09.281 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.281 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.281 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.281 properties.go:GetString:28 → 15:04 (01/02)
[TRACE] 00:21:09.281 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.282 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.282 shell.go:Shell() - 0s
[TRACE] 00:21:09.282 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.283 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.283 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.285 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.287 shell.go:TemplateCache() - 0s
[DEBUG] 00:21:09.287 block.go:Debug:280 → Segment: battery
[TRACE] 00:21:09.287 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.287 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.287 shell.go:GOOS() - 0s
[TRACE] 00:21:09.287 shell_windows.go:IsWsl() - 0s
[TRACE] 00:21:09.295 shell_windows_nix.go:BatteryState() - 7.299ms
[DEBUG] 00:21:09.295 properties.go:GetString:28 → NO DATA
[TRACE] 00:21:09.295 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.296 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.296 shell.go:Shell() - 0s
[TRACE] 00:21:09.296 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.296 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.297 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.297 shell.go:Flags() - 0s
[DEBUG] 00:21:09.297 block.go:Debug:280 → Segment: session
[TRACE] 00:21:09.297 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.297 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.297 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.297 shell.go:Getenv:398 → NO DATA
[TRACE] 00:21:09.297 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 00:21:09.297 shell.go:Getenv:398 → NO DATA
[TRACE] 00:21:09.297 shell.go:Getenv(SSH_CLIENT) - 0s
[TRACE] 00:21:09.297 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.297 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.297 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.297 shell.go:Shell() - 0s
[DEBUG] 00:21:09.297 block.go:Debug:280 → Segment: text
[TRACE] 00:21:09.297 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.297 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.297 shell.go:GOOS() - 0s
[TRACE] 00:21:09.297 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.298 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.298 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.298 shell.go:Shell() - 0s
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: crystal
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → extensions: [*.cr shard.yml]
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → folders: []
[DEBUG] 00:21:09.298 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: dart
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → extensions: [*.dart pubspec.yaml pubspec.yml pubspec.lock]
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → folders: [.dart_tool]
[DEBUG] 00:21:09.298 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: lua
[DEBUG] 00:21:09.298 properties.go:GetString:28 → lua
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → extensions: [*.lua *.rockspec]
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → folders: [lua]
[DEBUG] 00:21:09.298 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: node
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → folders: []
[DEBUG] 00:21:09.298 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: rust
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → extensions: [*.rs Cargo.toml Cargo.lock]
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → folders: []
[DEBUG] 00:21:09.298 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: python
[DEBUG] 00:21:09.298 properties.go:GetString:28 → context
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 00:21:09.298 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv env venv-win pyenv-win]
[DEBUG] 00:21:09.298 properties.go:GetBool:22 → home_enabled: false
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[DEBUG] 00:21:09.298 block.go:Debug:280 → Segment: text
[TRACE] 00:21:09.298 shell.go:Pwd() - 0s
[DEBUG] 00:21:09.298 shell_windows.go:56 → C:\Users\Doggo
[TRACE] 00:21:09.298 shell.go:GOOS() - 0s
[TRACE] 00:21:09.298 shell.go:TemplateCache() - 0s
[TRACE] 00:21:09.298 shell.go:Shell() - 0s
[TRACE] 00:21:09.299 shell.go:TemplateCache() - 0s
[DEBUG] 00:21:09.300 shell.go:Getenv:398 → C:\Users\Doggo\AppData\Local
[TRACE] 00:21:09.300 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 00:21:09.300 shell_windows.go:CachePath() - 0s
[TRACE] 00:21:09.300 shell.go:Flags() - 0s
JanDeDobbeleer commented 1 year ago

@TaromaruYuki this is still a terminal issue, not something we can fix. You'll need to create an issue over at vscode.

github-actions[bot] commented 9 months 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.