Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root symbol are occasionally shifted right #4384

Closed
1 task done
JensGJ opened this issue Oct 27, 2023 · 5 comments
Closed
1 task done

Root symbol are occasionally shifted right #4384

JensGJ opened this issue Oct 27, 2023 · 5 comments
Assignees

Comments

@JensGJ
Copy link

JensGJ commented Oct 27, 2023

Code of Conduct

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

What happened?

When running Powershell/Windows Terminal as administrator sometimes the Root icon that is normally displayed to the left as the beginning of the second line (right below the powerline) is shifted to the right so it appears to the right of the powerline above (but still on a new line).

I have not been able to identify a specific command that makes the error occur. The last time the shift occured after a simple "dir" command (trying to add a screen dump but it doesn't work right now)

The input cursor is still placed right after the root icon.
If I start a new admin shell everything works fine. But the open shell showing the erroneous display of the root icon stays that way until it is closed.

Theme

{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "background": "#003543",
          "foreground": "#00c983",
          "leading_diamond": "\ue0b6",
          "style": "diamond",
          "type": "os"
        },
        {
          "background": "#DA627D",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "folder_icon": "\uf115",
            "folder_separator_icon": "\\",
            "home_icon": "\udb80\udedc",
            "mapped_locations": {
              "C:\\Dev\\Git": "\uf1d3 ",
              "C:\\Dev\\Git\\GitLab": "\uf1d3 \uea9f \uf296 ",
              "C:\\Dev\\Git\\GitHub": "\uf1d3 \uea9f \uea84 ",
              "C:\\Users\\jgj.it\\OneDrive - CBS - Copenhagen Business School" : "\ue762",
              "C:\\Users\\jgj.it\\Dropbox" : "\ue707"

            },
            "style": "agnoster_full",
            "windows_registry_icon": "\ue0b1"
          },
          "style": "powerline",
          "type": "path"
        },
        {
          "background": "#FCA17D",
          "background_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
            "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
            "{{ if gt .Ahead 0 }}#B388FF{{ end }}",
            "{{ if gt .Behind 0 }}#B388FB{{ end }}"
          ],
          "foreground": "#ffffff",
          "foreground_templates": [
            "{{ if or (.Working.Changed) (.Staging.Changed) }}#444{{ end }}"
          ],
          "powerline_symbol": "\ue0b0",
          "properties": {
            "branch_icon": " <#ffffff>\ue0a0 </>",
            "display_status": true,
            "fetch_stash_count": true,
            "fetch_status": true,
            "fetch_upstream_icon": true
          },
          "style": "powerline",
          "type": "git"
        },
        {
          "background": "#043452",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "style": "powerline",
          "type": "poshgit"
        },
        {
          "background": "#76b367",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "style": "powerline",
          "type": "node"
        },
        {
          "background": "#83769c",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "always_enabled": true,
            "style" : "round"
          },
          "style": "powerline",
          "type": "executiontime"
        },
        {
          "background": "#33658A",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "time_format": "15:04"
          },
          "style": "powerline",
          "type": "time"
        },
        {
          "type": "connection",
          "style": "powerline",
          "background": "#22eead",
          "foreground": "#222222",
          "powerline_symbol": "\uE0B0",
          
          "template": "{{ if eq .Type \"wifi\"}} \uf1eb  {{ .SSID }}{{ else if eq .Type \"ethernet\"}} \udb83\udc9d {{ end }}"
          
        },
        {
          "type": "wifi",
          "style": "powerline",
          "background": "#8822ee",
          "foreground": "#222222",
          "background_templates": [
            "{{ if (lt .Signal 60) }}#DDDD11{{ else if (lt .Signal 90) }}#DD6611{{ else }}#11CC11{{ end }}"
          ],
          "powerline_symbol": "\uE0B0",
          "template": "\uFAA8 {{ .SSID }} {{ .Signal }}% {{ .ReceiveRate }}Mbps\u2800"
        },
        {
          "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 }}{{ if .Target }} ({{ .Target }}){{ end }}{{ end }} "
        },
        {
          "background": "#2e9599",
          "background_templates": [
            "{{ if gt .Code 0 }}red{{ end }}"
          ],
          "template": " {{ if gt .Code 0 }}\uf00d {{ .Code }}{{ else }}\uf42e{{ end }} ",
          "foreground": "#ffffff",
          "powerline_symbol": "\ue0b0",
          "properties": {
            "always_enabled": true
          },
          "style": "diamond",
          "trailing_diamond": "\ue0b4",
          "type": "exit"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#cd5e42",
          "style": "plain",
          "type": "root"
        },
        {
          "foreground": "#CD4277",
          "style": "plain",
          "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

Version: 18.15.0

Shell: pwsh (7.3.8)

Prompt:

┬»├®├é ┬»├┐┬¼ ┬»├®Ôûæ ┬┤├º├┤ ┬»┬¼ãÆ ┬┤├¿├╗ \K2Team\k2\Releases\Landingpage ┬»├®Ôûæ  ┬»├®├í master ├ö├½├¡ ┬»├®Ôûæ 0ms ┬»├®Ôûæ 13:54 ┬»├®Ôûæ ┬¥ÔûæÔûô├ÿ ┬»├®Ôûæ ┬┤├ë┬½ ┬»├®Ôöñ
 ´âº  

Segments:

ConsoleTitle(false)                        -   0 ms
Os(true)                                   -   3 ms
Path(true)                                 -   3 ms
Git(true)                                  -  75 ms
Poshgit(false)                             -   0 ms
Node(false)                                -   3 ms
Executiontime(true)                        -   3 ms
Time(true)                                 -   3 ms
Connection(true)                           -   3 ms
Wifi(false)                                -   0 ms
Project(false)                             -   3 ms
Exit(true)                                 -   3 ms
Root(true)                                 -   0 ms
Text(false)                                -   0 ms

Run duration: 87.4268ms

Cache path: C:\Users\jgj.it\AppData\Local\oh-my-posh

Config path: C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School\PoshTheme\montys_jgj.omp.json

Logs:

[DEBUG] 13:54:06.457 shell.go:Getenv:392  NO DATA
[TRACE] 13:54:06.457 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 13:54:06.457 shell.go:Getenv:392  C:\Users\jgj.it\AppData\Local
[TRACE] 13:54:06.457 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:54:06.457 shell_windows.go:CachePath() - 0s
[DEBUG] 13:54:06.457 shell.go:Getenv:392  C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School\PoshTheme\montys_jgj.omp.json
[TRACE] 13:54:06.457 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 13:54:06.457 shell.go:Shell:646  no shell name provided in flags, trying to detect it
[DEBUG] 13:54:06.464 shell.go:Shell:654  process name: pwsh.exe
[TRACE] 13:54:06.464 shell.go:Shell() - 7.1781ms
[TRACE] 13:54:06.464 shell.go:resolveConfigPath() - 7.1781ms
[TRACE] 13:54:06.464 shell.go:Init() - 7.1781ms
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 config.go:loadConfig() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[DEBUG] 13:54:06.464 shell.go:Getenv:392  NO DATA
[TRACE] 13:54:06.464 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 13:54:06.464 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.464 shell_windows.go:WindowsRegistryKeyValue:215  ColorizationColor(DWORD): 0xC44967AA
[TRACE] 13:54:06.464 shell.go:Shell() - 0s
[DEBUG] 13:54:06.464 shell.go:Getenv:392  7.3.8
[TRACE] 13:54:06.464 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 13:54:06.464 debug.go:PrintDebug:22  Segment: Title
[DEBUG] 13:54:06.464 text.go:Render:70  Rendering template: 
[DEBUG] 13:54:06.464 shell.go:Getenv:392  41
[TRACE] 13:54:06.464 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 13:54:06.464 shell.go:Getenv:392  1
[TRACE] 13:54:06.464 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Shell() - 0s
[TRACE] 13:54:06.464 shell.go:Shell() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[DEBUG] 13:54:06.464 properties.go:GetString:28  {{ .Code }}
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.464 shell.go:Pwd:422  C:\Dev\Git\GitLab\K2Team\k2\Releases\Landingpage
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.464 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.464 segment.go:SetEnabled:497  Segment: Exit
[TRACE] 13:54:06.464 shell.go:StatusCodes() - 0s
[DEBUG] 13:54:06.464 text.go:Render:70  Rendering template: {{ .Code }}
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.464 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.464 segment.go:SetEnabled:497  Segment: Node
[DEBUG] 13:54:06.464 properties.go:GetStringArray:52  extensions: [*.js *.ts package.json .nvmrc pnpm-workspace.yaml .pnpmfile.cjs .npmrc .vue]
[DEBUG] 13:54:06.464 properties.go:GetStringArray:52  folders: []
[DEBUG] 13:54:06.464 properties.go:GetBool:22  home_enabled: false
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.464 shell_windows.go:56  C:\Users\jgj.it
[DEBUG] 13:54:06.464 properties.go:GetString:28  files
[DEBUG] 13:54:06.464 properties.go:GetBool:22  fetch_package_manager: false
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.464 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.464 segment.go:SetEnabled:497  Segment: Connection
[DEBUG] 13:54:06.464 properties.go:GetString:28  wifi|ethernet
[TRACE] 13:54:06.464 shell_windows.go:Root() - 0s
[TRACE] 13:54:06.464 shell.go:Shell() - 0s
[TRACE] 13:54:06.464 shell.go:StatusCodes() - 0s
[TRACE] 13:54:06.464 shell_windows.go:IsWsl() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[DEBUG] 13:54:06.464 shell.go:HasFiles:458  false
[TRACE] 13:54:06.464 shell.go:HasFiles(*.js) - 0s
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Flags() - 0s
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.464 shell.go:HasFiles:458  false
[TRACE] 13:54:06.464 shell.go:HasFiles(*.ts) - 0s
[DEBUG] 13:54:06.464 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.464 shell.go:GOOS() - 0s
[TRACE] 13:54:06.464 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.464 segment.go:SetEnabled:497  Segment: Path
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[TRACE] 13:54:06.467 shell.go:Shell() - 0s
[TRACE] 13:54:06.467 shell.go:Flags() - 0s
[DEBUG] 13:54:06.467 properties.go:GetBool:22  mapped_locations_enabled: true
[DEBUG] 13:54:06.467 properties.go:GetString:28 ├ö├Ñ├å ┬»├®ÔûÆ
[DEBUG] 13:54:06.467 properties.go:GetString:28 ├ö├Ñ├å ┬»├®ÔûÆ
[DEBUG] 13:54:06.467 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 properties.go:GetString:28 ├ö├Ñ├å ┬¥Ôûæ├»┬ú
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(package.json) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 properties.go:GetKeyValueMap:46 ├ö├Ñ├å mapped_locations: map[C:\Dev\Git:┬┤├º├┤  C:\Dev\Git\GitHub:┬┤├º├┤ ┬»┬¼ãÆ ┬»┬¼├ñ  C:\Dev\Git\GitLab:┬┤├º├┤ ┬»┬¼ãÆ ┬┤├¿├╗  C:\Users\jgj.it\Dropbox:┬»┬ú├º C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School:┬»├ÿ├│]
[DEBUG] 13:54:06.467 text.go:Render:70  Rendering template: C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 text.go:Render:70  Rendering template: C:\Users\jgj.it\Dropbox
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 text.go:Render:70  Rendering template: C:\Dev\Git
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 text.go:Render:70  Rendering template: C:\Dev\Git\GitLab
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 text.go:Render:70  Rendering template: C:\Dev\Git\GitHub
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:Flags() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(Cargo.toml) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:TemplateCache:827  environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\jgj.it\AppData\Roaming ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133364866066501708 ChocolateyToolsLocation=C:\tools CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=CBS12192 ComSpec=C:\WINDOWS\system32\cmd.exe CONDA_PROMPT_MODIFIER=False DLMAS_HOME=C:\PROGRA~2\Red Gate\SQL Change Automation PowerShell\ DriverData=C:\Windows\System32\Drivers\DriverData GIT_SSH=TortoiseGitPlink GOPATH=C:\Users\jgj.it\go HOMEDRIVE=C: HOMEPATH=\Users\jgj.it JGJ_TEST=foo LOCALAPPDATA=C:\Users\jgj.it\AppData\Local LOGONSERVER=\\AD-DC-PRD-03 NUMBER_OF_PROCESSORS=16 OneDrive=C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School OneDriveCommercial=C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School OneDriveConsumer=C:\Users\jgj.it\OneDrive OPENSSL_CONF=C:\Program Files\OpenSSL-Win64\bin\openssl.cfg OS=Windows_NT Path=C:\Program Files\PowerShell\7;C:\Python312\Scripts\;C:\Python312\;C:\Python311\Scripts\;C:\Python311\;C:\Python310\Scripts\;C:\Python310\;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;C:\Users\jgj.it\AppData\Roaming\ActiveState\bin;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\Azure Data Studio\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\oh-my-posh\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\tools\gsudo\Current;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7-preview\preview;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\160\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program Files\TortoiseGit\bin;C:\Program Files\Go\bin;C:\Program Files\PowerShell\7\;C:\Program Files\GitHub CLI\;C:\Program Files\nodejs\;C:\Users\jgj.it\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Azure Data Studio\bin;C:\Users\jgj.it\.dotnet\tools;C:\Users\jgj.it\AppData\Local\Programs\Fiddler;C:\Users\jgj.it\AppData\Local\gitkraken\bin;C:\Program Files\MKVToolNix;C:\tools\neovim\nvim-win64\bin;C:\Program Files\OpenSSL-Win64\bin;C:\Users\jgj.it\AppData\Local\Microsoft\WindowsApps;C:\Users\jgj.it\.dotnet\tools;C:\Users\jgj.it\AppData\Local\GitHubDesktop\bin;C:\Users\jgj.it\go\bin;C:\Users\jgj.it\AppData\Roaming\npm PATHEXT=.SCM;.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=41 POSH_GIT_ENABLED=False POSH_INSTALLER=manual POSH_PID=28472 POSH_SHELL_VERSION=7.3.8 POSH_THEME=C:\Users\jgj.it\OneDrive - CBS - Copenhagen Business School\PoshTheme\montys_jgj.omp.json POSH_THEMES_PATH=C:\Program Files (x86)\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Enterprise PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 141 Stepping 1, GenuineIntel PROCESSOR_LEVEL=6 PROCESSOR_REVISION=8d01 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSModulePath=C:\Users\jgj.it\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\System32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\;C:\PROGRA~2\Red Gate\SQL Change Automation PowerShell\Modules\ PUBLIC=C:\Users\Public SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\Users\jgj.it\AppData\Local\Temp TMP=C:\Users\jgj.it\AppData\Local\Temp UATDATA=C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77 USERDNSDOMAIN=HHK.DK USERDOMAIN=HHK USERDOMAIN_ROAMINGPROFILE=HHK USERNAME=jgj.it USERPROFILE=C:\Users\jgj.it windir=C:\WINDOWS WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={574e775e-4f2a-5b96-ac1e-a2962a402336} WT_SESSION=acef3905-0c39-4bd4-8be8-0ddfcf537aeb ZES_ENABLE_SYSMAN=1 ZZTOP=foobar ZZZ_test=JGJ3]
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 shell.go:User:557  jgj.it
[TRACE] 13:54:06.467 shell.go:User() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 networks_windows.go:wifiNetwork() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 shell.go:Host:569  CBS12192
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:Host() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[DEBUG] 13:54:06.467 shell.go:Getenv:392  NO DATA
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:Getenv(SHLVL) - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:HasFiles(pyproject.toml) - 0s
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 3.0036ms
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.467 properties.go:GetBool:22  always_enabled: true
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:GOOS() - 0s
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 3.0036ms
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.467 properties.go:GetString:28  agnoster_full
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[DEBUG] 13:54:06.467 properties.go:GetStringArray:52  cycle: []
[DEBUG] 13:54:06.467 properties.go:GetString:28  NO DATA
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[DEBUG] 13:54:06.467 properties.go:GetString:28  \
[DEBUG] 13:54:06.467 properties.go:GetBool:22  cycle_folder_separator: false
[DEBUG] 13:54:06.467 properties.go:GetString:28  %s
[DEBUG] 13:54:06.467 properties.go:GetString:28  %s
[TRACE] 13:54:06.467 shell.go:PathSeparator() - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[TRACE] 13:54:06.467 shell_windows.go:IsWsl() - 0s
[TRACE] 13:54:06.467 shell.go:StackCount() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(composer.json) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(*.nuspec) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(*.vbproj) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(*.fsproj) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(*.csproj) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(JuliaProject.toml) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(Project.toml) - 0s
[TRACE] 13:54:06.467 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.467 shell.go:HasFiles:458  false
[TRACE] 13:54:06.467 shell.go:HasFiles(*.psd1) - 0s
[DEBUG] 13:54:06.467 properties.go:GetBool:22  always_enabled: false
[DEBUG] 13:54:06.467 win32_windows.go:isWriteable:303  current user is member of S-1-5-32-544
[DEBUG] 13:54:06.467 win32_windows.go:isWriteable:311 Ôåô
    WRITE_DAC
    WRITE_OWNER
    SYNCHRONIZE
    DELETE
    READ_CONTROL
[DEBUG] 13:54:06.467 win32_windows.go:isWriteable:313  user has write access
[TRACE] 13:54:06.467 shell_windows.go:DirIsWritable() - 0s
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 0s
[ERROR] 13:54:06.467 shell_windows.go:Connection:249  Network type 'wifi' not found
[TRACE] 13:54:06.467 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.473 shell.go:CommandPath:608  C:\Program Files\Git\cmd\git.exe
[TRACE] 13:54:06.473 shell.go:CommandPath(git.exe) - 8.5864ms
[TRACE] 13:54:06.473 shell.go:HasCommand(git.exe) - 8.5864ms
[TRACE] 13:54:06.473 shell.go:Pwd() - 0s
[TRACE] 13:54:06.473 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 13:54:06.473 properties.go:GetStringArray:52  exclude_folders: []
[DEBUG] 13:54:06.473 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.473 shell.go:GOOS() - 0s
[TRACE] 13:54:06.473 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.473 properties.go:GetBool:22  fetch_user: false
[TRACE] 13:54:06.473 shell.go:GOOS() - 0s
[TRACE] 13:54:06.473 shell.go:GOOS() - 0s
[TRACE] 13:54:06.473 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.473 shell.go:Getenv:392  NO DATA
[TRACE] 13:54:06.473 shell.go:Getenv(POSH_GIT_STATUS) - 0s
[DEBUG] 13:54:06.473 properties.go:GetBool:22  fetch_status: true
[DEBUG] 13:54:06.473 properties.go:GetStringArray:52  ignore_status: []
[DEBUG] 13:54:06.473 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.473 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.473 properties.go:GetKeyValueMap:46  status_formats: map[]
[DEBUG] 13:54:06.473 properties.go:GetKeyValueMap:46  untracked_modes: map[]
[DEBUG] 13:54:06.473 properties.go:GetKeyValueMap:46  ignore_submodules: map[]
[DEBUG] 13:54:06.539 shell.go:RunCommand:587 Ôåô
    # branch.oid d829ea34c6852fa6c92b51b68c3cfaa86876902b
    # branch.head master
    # branch.upstream origin/master
    # branch.ab +0 -0
[TRACE] 13:54:06.539 shell.go:RunCommand(git.exe -C C:/Dev/Git/GitLab/K2Team/k2 --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 66.3285ms
[DEBUG] 13:54:06.539 properties.go:GetString:28 ├ö├Ñ├å  <#ffffff>┬»├®├í </>
[DEBUG] 13:54:06.539 properties.go:GetInt:40  branch_max_length: 0
[DEBUG] 13:54:06.539 shell.go:HasFolder:501  false
[TRACE] 13:54:06.539 shell.go:HasFolder(C:\Dev\Git\GitLab\K2Team\k2\.git/rebase-merge) - 0s
[DEBUG] 13:54:06.539 shell.go:HasFolder:501  false
[TRACE] 13:54:06.539 shell.go:HasFolder(C:\Dev\Git\GitLab\K2Team\k2\.git/rebase-apply) - 134.4Ôö¼├üs
[DEBUG] 13:54:06.539 properties.go:GetString:28 ÔåÆ ´Éù
[DEBUG] 13:54:06.539 shell.go:HasFilesInDir:472  false
[TRACE] 13:54:06.539 shell.go:HasFilesInDir(MERGE_MSG) - 0s
[DEBUG] 13:54:06.539 shell.go:HasFilesInDir:472  false
[TRACE] 13:54:06.539 shell.go:HasFilesInDir(CHERRY_PICK_HEAD) - 0s
[DEBUG] 13:54:06.539 shell.go:HasFilesInDir:472  false
[TRACE] 13:54:06.539 shell.go:HasFilesInDir(REVERT_HEAD) - 0s
[DEBUG] 13:54:06.539 shell.go:HasFilesInDir:472  false
[TRACE] 13:54:06.539 shell.go:HasFilesInDir(sequencer/todo) - 0s
[DEBUG] 13:54:06.539 properties.go:GetString:28  
[DEBUG] 13:54:06.539 properties.go:GetBool:22  fetch_upstream_icon: true
[DEBUG] 13:54:06.539 properties.go:GetKeyValueMap:46  upstream_icons: map[]
[DEBUG] 13:54:06.539 properties.go:GetString:28 ├ö├Ñ├å ┬»├╣Ôòù 
[TRACE] 13:54:06.539 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.539 text.go:Render:70 ÔåÆ Rendering template:  {{ if gt .Code 0 }}´Çì {{ .Code }}{{ else }}´É«{{ end }} 
[DEBUG] 13:54:06.540 text.go:Render:70  Rendering template:  {{ if .WSL }}WSL at {{ end }}{{.Icon}} 
[DEBUG] 13:54:06.540 text.go:Render:70 ÔåÆ Rendering template:  {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} ´üä {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} ´üå {{ .Staging.String }}{{ end }} 
[DEBUG] 13:54:06.540 text.go:Render:70  Rendering template:  {{ .Path }} 
[DEBUG] 13:54:06.540 text.go:Render:70  Rendering template:  {{ .FormattedMs }} 
[DEBUG] 13:54:06.540 text.go:Render:70  Rendering template:  {{ .CurrentDate | date .Format }} 
[DEBUG] 13:54:06.540 text.go:Render:70 ├ö├Ñ├å Rendering template: {{ if eq .Type "wifi"}} ┬┤├º┬¢  {{ .SSID }}{{ else if eq .Type "ethernet"}} ┬¥ÔûæÔûô├ÿ {{ end }}
[TRACE] 13:54:06.540 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.540 shell.go:Shell() - 0s
[TRACE] 13:54:06.542 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.542 shell.go:Shell() - 0s
[TRACE] 13:54:06.542 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.542 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.542 shell.go:Shell() - 0s
[TRACE] 13:54:06.542 shell.go:Shell() - 0s
[TRACE] 13:54:06.542 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.542 shell.go:Shell() - 0s
[TRACE] 13:54:06.542 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.542 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.542 shell.go:Shell() - 0s
[TRACE] 13:54:06.542 shell.go:Shell() - 0s
[DEBUG] 13:54:06.542 text.go:Render:70  Rendering template: diamond
[DEBUG] 13:54:06.542 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.542 text.go:Render:70  Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}
[TRACE] 13:54:06.543 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.543 text.go:Render:70  Rendering template: {{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}
[TRACE] 13:54:06.543 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.543 text.go:Render:70  Rendering template: {{ if gt .Ahead 0 }}#B388FF{{ end }}
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: {{ if gt .Behind 0 }}#B388FB{{ end }}
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: {{ if or (.Working.Changed) (.Staging.Changed) }}#444{{ end }}
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: powerline
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: {{ if gt .Code 0 }}red{{ end }}
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: diamond
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[TRACE] 13:54:06.544 shell.go:Flags() - 0s
[TRACE] 13:54:06.544 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.544 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.544 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.544 segment.go:SetEnabled:497  Segment: Text
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.544 shell.go:Flags() - 0s
[TRACE] 13:54:06.544 shell.go:Pwd() - 0s
[DEBUG] 13:54:06.544 shell_windows.go:56  C:\Users\jgj.it
[TRACE] 13:54:06.544 shell.go:GOOS() - 0s
[DEBUG] 13:54:06.544 segment.go:SetEnabled:497  Segment: Root
[TRACE] 13:54:06.544 shell_windows.go:Root() - 0s
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template:   
[TRACE] 13:54:06.544 shell.go:TemplateCache() - 0s
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[DEBUG] 13:54:06.544 text.go:Render:70 ÔåÆ Rendering template:  ´âº 
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[DEBUG] 13:54:06.544 shell.go:Getenv:392  NO DATA
[TRACE] 13:54:06.544 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: plain
[DEBUG] 13:54:06.544 text.go:Render:70  Rendering template: plain
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[TRACE] 13:54:06.544 shell.go:Shell() - 0s
[DEBUG] 13:54:06.544 shell.go:Getenv:392  C:\Users\jgj.it\AppData\Local
[TRACE] 13:54:06.544 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:54:06.544 shell_windows.go:CachePath() - 0s
[TRACE] 13:54:06.544 shell.go:Flags() - 0s
@JensGJ JensGJ added the 🐛 bug Something isn't working label Oct 27, 2023
@JanDeDobbeleer
Copy link
Owner

@JensGJ do you have a screenshot if this?

@JensGJ
Copy link
Author

JensGJ commented Oct 27, 2023

Screendump of the error appearing (marked in yellow)

oh_my_posh_root_signal_shifted

@JensGJ
Copy link
Author

JensGJ commented Oct 27, 2023

I did a comparison of the debug output in the error window compared to a fresh window. They are side by side in the screenshot here. I have highlighted the difference I can find - which is a call to TemplateCache. I don't know if is makes sense or is the actual cause of the difference in display.

oh_my_posh_debug_compare

@JanDeDobbeleer
Copy link
Owner

@JensGJ I can see the issue but I'm unable to reproduce. There's no logic in oh-my-posh as well that could do this. As in, we print a newline, but never pad the left prompt (and definitely not as flaky as this).

@JanDeDobbeleer
Copy link
Owner

No other reports so closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants