python segment not working #4848
Answered
by
JanDeDobbeleer
BPplays
asked this question in
Troubleshoot
-
Code of Conduct
What happened?the python segment seems to not be working even in folders with *.py files. btw here is a link to sec as it's necessary to replicate my config fully even tho i dont think it'll affect anything Theme{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"var": {
"golang": ""
},
"palette": {
"os": "#ACB0BE",
"ff_white": "#FFFFFF",
"rosewater": "#f5e0dc",
"flamingo": "#f2cdcd",
"pink": "#f5c2e7",
"mauve": "#cba6f7",
"red": "#f38ba8",
"maroon": "#eba0ac",
"peach": "#fab387",
"yellow": "#f9e2af",
"green": "#a6e3a1",
"teal": "#94e2d5",
"sky": "#89dceb",
"sapphire": "#74c7ec",
"blue": "#89b4fa",
"lavender": "#b4befe",
"text": "#cdd6f4",
"subtext1": "#bac2de",
"subtext0": "#a6adc8",
"overlay2": "#9399b2",
"overlay1": "#7f849c",
"overlay0": "#6c7086",
"surface2": "#585b70",
"surface1": "#45475a",
"surface0": "#313244",
"base": "#1e1e2e",
"mantle": "#181825",
"crust": "#11111b",
"clock": "p:teal",
"inv_text": "p:surface0",
"logo_color": "p:ff_white",
"git_color": "p:lavender",
"golang_color": "p:sapphire",
"rust_color": "p:peach",
"py_color": "p:yellow"
},
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "p:blue",
"foreground": "p:logo_color",
"powerline_symbol": "\ue0b4",
"leading_diamond": "\ue0b6",
"style": "diamond",
"template": "{{.Icon}} ",
"type": "os"
},
{
"background": "p:blue",
"foreground": "p:inv_text",
"powerline_symbol": "\ue0b4",
"style": "diamond",
"min_width": 80,
"template": "{{ .UserName }}@{{ $truncated_hostname := split \".\" .HostName }}{{ $truncated_hostname._0 }}",
"type": "session"
},
{
"background": "p:blue",
"foreground": "p:inv_text",
"powerline_symbol": "\ue0b4",
"style": "diamond",
"max_width": 79,
"template": "{{ .UserName }}@{{ $truncated_hostname := split \".\" .HostName }}{{ trunc 5 $truncated_hostname._0 }}",
"type": "session"
},
{
"background": "p:mauve",
"foreground": "p:inv_text",
"properties": {
"folder_icon": "\uf115 ",
"home_icon": "~",
"style": "agnoster_short"
},
"powerline_symbol": "\ue0b4",
"style": "powerline",
"template": " {{ .Path }}",
"type": "path"
}
],
"type": "prompt"
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"background": "p:py_color",
"foreground": "p:inv_text",
"leading_diamond": "\ue0b6",
"style": "diamond",
"properties": {
"extensions": ["*.py", "*.ipynb", "pyproject.toml", "venv.bak"]
},
"template": "<p:ff_white>\ue235 </>{{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}",
"trailing_diamond": "\ue0b4 ",
"type": "python"
},
{
"type": "go",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"foreground": "p:inv_text",
"background": "p:golang_color",
"template": "<p:ff_white></>{{ .Full }}"
},
{
"type": "rust",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"foreground": "p:inv_text",
"background": "p:rust_color",
"template": "<p:ff_white></>{{ .Full }}"
},
{
"background": "p:git_color",
"foreground": "p:inv_text",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"properties": {
"branch_icon": "\ue725 ",
"cherry_pick_icon": "\ue29b ",
"commit_icon": "\uf417 ",
"fetch_status": true,
"fetch_upstream_icon": false,
"merge_icon": "\ue727 ",
"no_commits_icon": "\uf594 ",
"rebase_icon": "\ue728 ",
"revert_icon": "\uf0e2 ",
"tag_icon": "\uf412 "
},
"template": "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }}",
"type": "git"
},
{
"type": "command",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"foreground": "p:inv_text",
"background": "p:clock",
"properties": {
"shell": "sh",
"command": "sec -ls"
},
"min_width": 80,
"template": "秒{{ .Output }}"
},
{
"type": "executiontime",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4 ",
"foreground": "p:inv_text",
"background": "p:mauve",
"template": " <p:inv_text></> {{ .FormattedMs }} ",
"max_width": 79,
"properties": {
"threshold": 500,
"style": "amarillo",
"always_enabled": true
}
}
]
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"foreground": "p:inv_text",
"background": "p:pink",
"style": "diamond",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\ue0b4",
"template": "{{if .Root }}{{ end }}>",
"type": "text"
}
],
"type": "prompt"
}
],
"final_space": true,
"version": 2
} What OS are you seeing the problem on?Windows, Linux Which shell are you using?fish, powershell Log outputVersion: 19.20.0
Shell: pwsh (7.4.1)
Prompt:
censored_irl_name@DESKTOP-AFJ40RL ~\ \gpu-usage main ≡ 秒1Gs 713Ms 386ks 088s
>
Segments:
ConsoleTitle(false) - 0 ms
Os(true) - 1 ms
Session(true) - 1 ms
Session(false) - 0 ms
Path(true) - 1 ms
Python(false) - 18 ms
Go(false) - 0 ms
Rust(false) - 0 ms
Git(true) - 58 ms
Command(true) - 75 ms
Executiontime(false) - 0 ms
Text(true) - 0 ms
Run duration: 100.4995ms
Cache path: C:\Users\censored_irl_name\AppData\Local\oh-my-posh
Config path: C:\My Files\Themes\oh-my-posh\catppuccin_macchiato.omp.json
Logs:
[DEBUG] 13:34:48.345 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.345 shell.go:Getenv(TERM_PROGRAM) - 499.4µs
[DEBUG] 13:34:48.345 shell.go:Getenv:325 → C:\Users\censored_irl_name\AppData\Local
[TRACE] 13:34:48.345 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:34:48.345 shell_windows.go:CachePath() - 0s
[DEBUG] 13:34:48.346 shell.go:Getenv:325 → C:\My Files\Themes\oh-my-posh\catppuccin_macchiato.omp.json
[TRACE] 13:34:48.346 shell.go:Getenv(POSH_THEME) - 0s
[DEBUG] 13:34:48.346 shell.go:Shell:593 → no shell name provided in flags, trying to detect it
[DEBUG] 13:34:48.365 shell.go:Shell:601 → process name: pwsh.exe
[TRACE] 13:34:48.365 shell.go:Shell() - 19.0002ms
[TRACE] 13:34:48.365 shell.go:resolveConfigPath() - 19.0002ms
[TRACE] 13:34:48.365 shell.go:Init() - 20.002ms
[TRACE] 13:34:48.365 shell.go:Flags() - 0s
[TRACE] 13:34:48.365 config.go:loadConfig() - 500.3µs
[TRACE] 13:34:48.365 shell.go:Flags() - 0s
[DEBUG] 13:34:48.365 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.365 shell.go:Getenv(OMP_CACHE_DISABLED) - 0s
[TRACE] 13:34:48.365 shell_windows.go:WindowsRegistryKeyValue(HKEY_CURRENT_USER\Software\Microsoft\Windows\DWM\ColorizationColor) - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[TRACE] 13:34:48.365 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.365 shell_windows.go:WindowsRegistryKeyValue:217 → ColorizationColor(DWORD): 0xC41E1E2E
[TRACE] 13:34:48.365 shell.go:Shell() - 0s
[DEBUG] 13:34:48.365 shell.go:Getenv:325 → 7.4.1
[TRACE] 13:34:48.365 shell.go:Getenv(POSH_SHELL_VERSION) - 0s
[DEBUG] 13:34:48.365 debug.go:PrintDebug:22 → Segment: Title
[DEBUG] 13:34:48.366 text.go:Render:70 → Rendering template:
[DEBUG] 13:34:48.366 shell.go:Getenv:325 → 65
[TRACE] 13:34:48.366 shell.go:Getenv(POSH_CURSOR_LINE) - 0s
[DEBUG] 13:34:48.366 shell.go:Getenv:325 → 1
[TRACE] 13:34:48.366 shell.go:Getenv(POSH_CURSOR_COLUMN) - 0s
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[TRACE] 13:34:48.366 shell.go:Shell() - 0s
[TRACE] 13:34:48.366 shell.go:Shell() - 0s
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[TRACE] 13:34:48.366 shell.go:GOOS() - 0s
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[DEBUG] 13:34:48.366 shell.go:Pwd:355 → C:\Users\censored_irl_name\program dev\py\gpu-usage
[TRACE] 13:34:48.366 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.366 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.366 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.366 segment.go:SetEnabled:529 → Segment: Path
[TRACE] 13:34:48.366 shell.go:Pwd() - 0s
[TRACE] 13:34:48.366 shell.go:Pwd() - 0s
[TRACE] 13:34:48.366 shell.go:Shell() - 0s
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[TRACE] 13:34:48.366 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.366 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.366 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.366 segment.go:SetEnabled:529 → Segment: Os
[TRACE] 13:34:48.366 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.366 properties.go:GetString:28 →
[DEBUG] 13:34:48.366 properties.go:GetBool:22 → mapped_locations_enabled: true
[DEBUG] 13:34:48.366 properties.go:GetString:28 →
[DEBUG] 13:34:48.366 properties.go:GetString:28 →
[TRACE] 13:34:48.366 shell.go:Flags() - 0s
[DEBUG] 13:34:48.366 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.367 shell.go:Pwd() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.367 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.367 segment.go:SetEnabled:529 → Segment: Session
[DEBUG] 13:34:48.367 segment.go:SetEnabled:529 → Segment: Session
[DEBUG] 13:34:48.366 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.367 shell_windows.go:Root() - 997.9µs
[TRACE] 13:34:48.367 shell.go:Shell() - 0s
[DEBUG] 13:34:48.367 shell_windows.go:TerminalWidth:111 → terminal width: 103
[TRACE] 13:34:48.367 shell_windows.go:TerminalWidth() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:StatusCodes() - 0s
[TRACE] 13:34:48.367 shell_windows.go:IsWsl() - 0s
[DEBUG] 13:34:48.367 shell_windows.go:TerminalWidth:111 → terminal width: 103
[TRACE] 13:34:48.367 shell_windows.go:TerminalWidth() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.367 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.367 shell.go:Getenv(SSH_CONNECTION) - 0s
[DEBUG] 13:34:48.367 properties.go:GetString:28 → ~
[DEBUG] 13:34:48.367 properties.go:GetKeyValueMap:46 → mapped_locations: map[]
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[DEBUG] 13:34:48.367 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:Getenv(SSH_CLIENT) - 0s
[DEBUG] 13:34:48.367 shell.go:TemplateCache:774 → environment: [ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\censored_irl_name\AppData\Roaming CARGO_HOME=C:\Users\censored_irl_name\scoop\persist\rustup\.cargo ChocolateyInstall=C:\ProgramData\chocolatey ChocolateyLastPathUpdate=133380856168945136 CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=DESKTOP-AFJ40RL ComSpec=C:\Windows\system32\cmd.exe CONDA_PROMPT_MODIFIER=False CPLUS_INCLUDE_PATH=C:\Users\censored_irl_name\scoop\apps\gcc\current\include C_INCLUDE_PATH=C:\Users\censored_irl_name\scoop\apps\gcc\current\include DriverData=C:\Windows\System32\Drivers\DriverData GIT_INSTALL_ROOT=C:\Users\censored_irl_name\scoop\apps\git\current GoLand=C:\Program Files\JetBrains\GoLand 2023.2.2\bin; GOPATH=C:\Users\censored_irl_name\go GOROOT=C:\Users\censored_irl_name\.gobrew\current\go HOMEDRIVE=C: HOMEPATH=\Users\censored_irl_name INTEL_DEV_REDIST=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\ JAVA_HOME=C:\Users\censored_irl_name\scoop\apps\temurin8-jre\current LOCALAPPDATA=C:\Users\censored_irl_name\AppData\Local LOGONSERVER=\\DESKTOP-AFJ40RL LUAROCKS_CONFIG=C:\Users\censored_irl_name\scoop\apps\luarocks\current\config.lua LUA_CPATH=C:\Users\censored_irl_name\scoop\apps\lua\current LUA_EXE_PATH=C:\Users\censored_irl_name\scoop\apps\lua\current MAGICK_CODER_MODULE_PATH=C:\Users\censored_irl_name\scoop\apps\imagemagick\current\modules\coders MAGICK_CONFIGURE_PATH=C:\Users\censored_irl_name\scoop\apps\imagemagick\current MAGICK_HOME=C:\Users\censored_irl_name\scoop\apps\imagemagick\current MIC_LD_LIBRARY_PATH=C:\Program Files (x86)\Common Files\Intel\Shared Libraries\compiler\lib\intel64_win_mic NUMBER_OF_PROCESSORS=32 OneDrive=C:\Users\censored_irl_name\OneDrive OS=Windows_NT Path=C:\Program Files\PowerShell\7;c:\program files (x86)\vmware\vmware workstation\bin\;c:\program files (x86)\common files\intel\shared libraries\redist\intel64_win\compiler;c:\program files\microsoft\jdk-11.0.16.101-hotspot\bin;c:\program files (x86)\common files\intel\shared libraries\redist\intel64\compiler;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\microsoft vs code\bin;c:\program files\010 editor;c:\program files\nvidia corporation\nvidia nvdlisr;c:\program files\prio;c:\program files\dotnet\;c:\program files (x86)\ntp\bin;c:\program files\docker\docker\resources\bin;c:\program files\powershell\7\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft VS Code\bin;C:\Users\censored_irl_name\.local\bin;C:\Users\censored_irl_name\scoop\apps\gcc\current\bin;C:\Users\censored_irl_name\scoop\apps\gsudo\current;C:\Users\censored_irl_name\scoop\apps\gpg\current\bin;C:\Users\censored_irl_name\scoop\apps\gnupg\current\bin;C:\Users\censored_irl_name\scoop\apps\imagemagick\current;C:\Users\censored_irl_name\scoop\apps\mpv\current;C:\Users\censored_irl_name\scoop\apps\qemu\current;C:\Users\censored_irl_name\scoop\apps\nodejs\current\bin;C:\Users\censored_irl_name\scoop\apps\nodejs\current;C:\Users\censored_irl_name\scoop\apps\temurin8-jre\current\bin;C:\Users\censored_irl_name\scoop\apps\oraclejre8\current\bin;C:\Users\censored_irl_name\scoop\apps\rustup\current\.cargo\bin;C:\Users\censored_irl_name\scoop\apps\luarocks\current\rocks\bin;C:\Users\censored_irl_name\scoop\shims;C:\Users\censored_irl_name\AppData\Local\Microsoft\WindowsApps;C:\Users\censored_irl_name\.pyenv\pyenv-win\bin;C:\Users\censored_irl_name\.pyenv\pyenv-win\shims;C:\ProgramData\chocolatey\lib\libgcc\tools\install\bin;C:\Users\censored_irl_name\AppData\Local\Programs\oh-my-posh\bin;C:\Users\censored_irl_name\Programs\aliases;C:\Users\censored_irl_name\.pyenv\pyenv-win\versions\3.11.3\Lib\site-packages;C:\Users\censored_irl_name\.dotnet\tools;C:\Users\censored_irl_name\.dotnet\tools;C:\Users\censored_irl_name\.dotnet\tools;C:\Program Files\JetBrains\GoLand 2023.2.2\bin;C:\usr\local\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\VMware\VMware Workstation;C:\Users\censored_irl_name\.gobrew\bin;C:\Users\censored_irl_name\.gobrew\current\bin;C:\Users\censored_irl_name\go\bin;C:\Users\censored_irl_name\AppData\Local\spicetify; PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.CPL PM_PACKAGES_ROOT=C:\packman-repo POSH_AZURE_ENABLED=False POSH_CURSOR_COLUMN=1 POSH_CURSOR_LINE=65 POSH_GIT_ENABLED=False POSH_INSTALLER=winget POSH_PID=34056 POSH_SHELL_VERSION=7.4.1 POSH_THEME=C:\My Files\Themes\oh-my-posh\catppuccin_macchiato.omp.json POSH_THEMES_PATH=C:\Users\censored_irl_name\AppData\Local\Programs\oh-my-posh\themes POWERLINE_COMMAND=oh-my-posh POWERSHELL_DISTRIBUTION_CHANNEL=MSI:Windows 10 Pro PROCESSOR_ARCHITECTURE=AMD64 PROCESSOR_IDENTIFIER=AMD64 Family 25 Model 33 Stepping 0, AuthenticAMD PROCESSOR_LEVEL=25 PROCESSOR_REVISION=2100 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files PSExecutionPolicyPreference=Bypass PSModulePath=C:\Users\censored_irl_name\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7\Modules;C:\Users\censored_irl_name\scoop\modules;C:\Users\censored_irl_name\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules PUBLIC=C:\Users\Public PYENV=C:\Users\censored_irl_name\.pyenv\pyenv-win\ RANDFILE=C:\Program Files (x86)\NTP\etc\.rnd RUSTUP_HOME=C:\Users\censored_irl_name\scoop\persist\rustup\.rustup SESSIONNAME=Console steamdirglobal=C:\Users\censored_irl_name\scoop\apps\steam\current SystemDrive=C: SystemRoot=C:\Windows TEALDEER_CONFIG_DIR=C:\Users\censored_irl_name\scoop\apps\tealdeer\current TEMP=C:\Users\censored_irl_name\AppData\Local\Temp TMP=C:\Users\censored_irl_name\AppData\Local\Temp USERDOMAIN=DESKTOP-AFJ40RL USERDOMAIN_ROAMINGPROFILE=DESKTOP-AFJ40RL USERNAME=censored_irl_name USERPROFILE=C:\Users\censored_irl_name VCPKG_ROOT=C:\Users\censored_irl_name\scoop\apps\vcpkg\current windir=C:\Windows WIRESHARK_CONFIG_DIR=C:\Users\censored_irl_name\scoop\apps\wireshark\current\Data WIRESHARK_DATA_DIR=C:\Users\censored_irl_name\scoop\apps\wireshark\current\Data WSLENV=WT_SESSION:WT_PROFILE_ID: WT_PROFILE_ID={6f1fb3de-15df-46fe-b84f-86239f561182} WT_SESSION=94856a37-b68a-43ee-94bf-152270d6c233]
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:Pwd() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.367 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.367 shell.go:User:493 → censored_irl_name
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:User() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[DEBUG] 13:34:48.367 properties.go:GetString:28 → NO DATA
[DEBUG] 13:34:48.367 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[DEBUG] 13:34:48.367 properties.go:GetString:28 → agnoster_short
[DEBUG] 13:34:48.367 shell.go:Host:505 → DESKTOP-AFJ40RL
[TRACE] 13:34:48.367 shell.go:Host() - 0s
[DEBUG] 13:34:48.367 properties.go:GetInt:40 → max_depth: 1
[TRACE] 13:34:48.367 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.367 properties.go:GetString:28 →
[DEBUG] 13:34:48.367 shell.go:Getenv:325 → NO DATA
[DEBUG] 13:34:48.367 properties.go:GetBool:22 → hide_root_location: false
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[DEBUG] 13:34:48.367 properties.go:GetStringArray:52 → cycle: []
[DEBUG] 13:34:48.367 properties.go:GetString:28 → NO DATA
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:TemplateCache() - 1.4973ms
[DEBUG] 13:34:48.367 properties.go:GetString:28 → \
[DEBUG] 13:34:48.367 properties.go:GetBool:22 → cycle_folder_separator: false
[DEBUG] 13:34:48.367 properties.go:GetString:28 → %s
[DEBUG] 13:34:48.367 properties.go:GetString:28 → %s
[DEBUG] 13:34:48.367 properties.go:GetString:28 → %s
[DEBUG] 13:34:48.367 properties.go:GetString:28 → %s
[TRACE] 13:34:48.367 shell.go:PathSeparator() - 0s
[TRACE] 13:34:48.367 shell.go:TemplateCache() - 499.4µs
[TRACE] 13:34:48.367 shell.go:Pwd() - 0s
[TRACE] 13:34:48.367 shell_windows.go:IsWsl() - 0s
[TRACE] 13:34:48.367 shell.go:StackCount() - 0s
[DEBUG] 13:34:48.368 win32_windows.go:isWriteable:299 → not current user or in group
[DEBUG] 13:34:48.368 win32_windows.go:isWriteable:303 → current user is member of S-1-5-32-544
[DEBUG] 13:34:48.368 win32_windows.go:isWriteable:311 ↓
WRITE_DAC
WRITE_OWNER
SYNCHRONIZE
DELETE
READ_CONTROL
[DEBUG] 13:34:48.368 win32_windows.go:isWriteable:313 → user has write access
[TRACE] 13:34:48.368 shell_windows.go:DirIsWritable() - 499.8µs
[TRACE] 13:34:48.368 shell.go:TemplateCache() - 0s
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: {{ .Path }}
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: {{.Icon}}
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: {{ .UserName }}@{{ $truncated_hostname := split "." .HostName }}{{ $truncated_hostname._0 }}
[TRACE] 13:34:48.368 shell.go:TemplateCache() - 0s
[TRACE] 13:34:48.368 shell.go:TemplateCache() - 0s
[TRACE] 13:34:48.368 shell.go:Shell() - 0s
[TRACE] 13:34:48.368 shell.go:TemplateCache() - 0s
[TRACE] 13:34:48.368 shell.go:Shell() - 0s
[TRACE] 13:34:48.368 shell.go:Shell() - 0s
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.368 text.go:Render:70 → Rendering template: powerline
[TRACE] 13:34:48.368 shell.go:Shell() - 0s
[TRACE] 13:34:48.368 shell.go:Shell() - 0s
[TRACE] 13:34:48.368 shell.go:Shell() - 0s
[TRACE] 13:34:48.368 shell.go:Flags() - 0s
[TRACE] 13:34:48.368 shell.go:Flags() - 0s
[TRACE] 13:34:48.368 shell.go:Flags() - 0s
[DEBUG] 13:34:48.368 properties.go:GetString:28 → environment
[TRACE] 13:34:48.368 shell.go:Pwd() - 0s
[TRACE] 13:34:48.368 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.368 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.368 shell.go:Flags() - 0s
[TRACE] 13:34:48.368 shell.go:Flags() - 0s
[DEBUG] 13:34:48.368 segment.go:SetEnabled:529 → Segment: Rust
[DEBUG] 13:34:48.368 segment.go:SetEnabled:529 → Segment: Python
[DEBUG] 13:34:48.368 properties.go:GetStringArray:52 → extensions: [*.py *.ipynb pyproject.toml venv.bak]
[DEBUG] 13:34:48.368 properties.go:GetStringArray:52 → folders: [.venv venv virtualenv venv-win pyenv-win]
[DEBUG] 13:34:48.368 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:34:48.368 shell.go:Pwd() - 0s
[TRACE] 13:34:48.368 shell.go:Flags() - 0s
[TRACE] 13:34:48.368 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.368 properties.go:GetStringArray:52 → extensions: [*.rs Cargo.toml Cargo.lock]
[DEBUG] 13:34:48.368 shell_windows.go:58 → C:\Users\censored_irl_name
[DEBUG] 13:34:48.368 properties.go:GetBool:22 → fetch_virtual_env: true
[DEBUG] 13:34:48.368 shell.go:Getenv:325 → C:\Users\censored_irl_name\AppData\Local
[TRACE] 13:34:48.368 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 13:34:48.368 shell_windows.go:58 → C:\Users\censored_irl_name
[DEBUG] 13:34:48.369 properties.go:GetStringArray:52 → folders: []
[DEBUG] 13:34:48.369 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:34:48.369 shell.go:GOOS() - 0s
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 segment.go:SetEnabled:529 → Segment: Git
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.369 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.369 properties.go:GetString:28 → files
[DEBUG] 13:34:48.369 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell.go:Getenv:325 → C:\Users\censored_irl_name\AppData\Local
[TRACE] 13:34:48.369 shell.go:GOOS() - 0s
[TRACE] 13:34:48.369 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 13:34:48.369 segment.go:SetEnabled:529 → Segment: Command
[DEBUG] 13:34:48.369 shell_windows.go:TerminalWidth:94 → terminal width: 103
[TRACE] 13:34:48.369 shell_windows.go:TerminalWidth() - 0s
[DEBUG] 13:34:48.369 properties.go:GetString:28 → sh
[DEBUG] 13:34:48.369 shell.go:Getenv:325 → C:\Users\censored_irl_name\AppData\Local
[TRACE] 13:34:48.369 shell.go:Getenv(LOCALAPPDATA) - 0s
[DEBUG] 13:34:48.369 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.369 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.369 segment.go:SetEnabled:529 → Segment: Go
[DEBUG] 13:34:48.369 properties.go:GetStringArray:52 → extensions: [*.go go.mod]
[DEBUG] 13:34:48.369 properties.go:GetStringArray:52 → folders: []
[DEBUG] 13:34:48.369 properties.go:GetBool:22 → home_enabled: false
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell_windows.go:58 → C:\Users\censored_irl_name
[DEBUG] 13:34:48.369 properties.go:GetString:28 → files
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.369 shell.go:HasFilesInDir(*.rs) - 0s
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.369 shell.go:HasFilesInDir(Cargo.toml) - 0s
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.369 shell.go:HasFilesInDir(Cargo.lock) - 0s
[DEBUG] 13:34:48.369 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.369 shell.go:HasFilesInDir(*.go) - 499.4µs
[TRACE] 13:34:48.369 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.369 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.369 shell.go:HasFilesInDir(go.mod) - 0s
[DEBUG] 13:34:48.385 shell.go:CommandPath:545 → C:\Users\censored_irl_name\scoop\shims\sh.exe
[TRACE] 13:34:48.385 shell.go:CommandPath(sh) - 16.4976ms
[TRACE] 13:34:48.385 shell.go:HasCommand(sh) - 16.4976ms
[DEBUG] 13:34:48.385 properties.go:GetString:28 → sec -ls
[DEBUG] 13:34:48.386 shell.go:CommandPath:545 → C:\Users\censored_irl_name\scoop\shims\git.exe
[TRACE] 13:34:48.386 shell.go:CommandPath(git.exe) - 17.4974ms
[TRACE] 13:34:48.386 shell.go:HasCommand(git.exe) - 17.4974ms
[TRACE] 13:34:48.386 shell.go:Pwd() - 0s
[TRACE] 13:34:48.387 shell.go:HasParentFilePath(.git) - 0s
[DEBUG] 13:34:48.387 properties.go:GetStringArray:52 → exclude_folders: []
[DEBUG] 13:34:48.387 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.387 properties.go:GetBool:22 → fetch_user: false
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.387 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.387 shell.go:Getenv(POSH_GIT_STATUS) - 0s
[DEBUG] 13:34:48.387 properties.go:GetBool:22 → fetch_status: true
[DEBUG] 13:34:48.387 properties.go:GetStringArray:52 → ignore_status: []
[DEBUG] 13:34:48.387 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.387 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.387 properties.go:GetKeyValueMap:46 → status_formats: map[]
[DEBUG] 13:34:48.387 properties.go:GetKeyValueMap:46 → untracked_modes: map[]
[DEBUG] 13:34:48.387 properties.go:GetKeyValueMap:46 → ignore_submodules: map[]
[DEBUG] 13:34:48.387 shell.go:CommandPath:545 → C:\Users\censored_irl_name\.pyenv\pyenv-win\shims\python.bat
[TRACE] 13:34:48.387 shell.go:CommandPath(python) - 18.4975ms
[DEBUG] 13:34:48.387 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.387 shell.go:HasFilesInDir(pyvenv.cfg) - 501.6µs
[DEBUG] 13:34:48.387 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.387 shell.go:HasFilesInDir(pyvenv.cfg) - 0s
[DEBUG] 13:34:48.387 properties.go:GetBool:22 → folder_name_fallback: true
[DEBUG] 13:34:48.387 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.387 shell.go:Getenv(VIRTUAL_ENV) - 0s
[DEBUG] 13:34:48.387 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.387 shell.go:Getenv(CONDA_ENV_PATH) - 0s
[DEBUG] 13:34:48.387 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.387 shell.go:Getenv(CONDA_DEFAULT_ENV) - 0s
[DEBUG] 13:34:48.426 shell.go:RunCommand:523 ↓
# branch.oid 5567a96856eac50c52d8f7fb7c8e651b20265299
# branch.head main
# branch.upstream origin/main
# branch.ab +0 -0
[TRACE] 13:34:48.426 shell.go:RunCommand(git.exe -C C:/Users/censored_irl_name/program dev/py/gpu-usage --no-optional-locks -c core.quotepath=false -c color.status=false status -unormal --branch --porcelain=2) - 39.5026ms
[DEBUG] 13:34:48.426 properties.go:GetString:28 →
[DEBUG] 13:34:48.426 properties.go:GetInt:40 → branch_max_length: 0
[DEBUG] 13:34:48.426 shell.go:HasFolder:437 → false
[TRACE] 13:34:48.426 shell.go:HasFolder(C:\Users\censored_irl_name\program dev\py\gpu-usage\.git/rebase-merge) - 0s
[DEBUG] 13:34:48.426 shell.go:HasFolder:437 → false
[TRACE] 13:34:48.426 shell.go:HasFolder(C:\Users\censored_irl_name\program dev\py\gpu-usage\.git/rebase-apply) - 0s
[DEBUG] 13:34:48.426 properties.go:GetString:28 →
[DEBUG] 13:34:48.426 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.426 shell.go:HasFilesInDir(MERGE_MSG) - 0s
[DEBUG] 13:34:48.426 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.426 shell.go:HasFilesInDir(CHERRY_PICK_HEAD) - 0s
[DEBUG] 13:34:48.426 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.426 shell.go:HasFilesInDir(REVERT_HEAD) - 0s
[DEBUG] 13:34:48.426 shell.go:HasFilesInDir:408 → false
[TRACE] 13:34:48.426 shell.go:HasFilesInDir(sequencer/todo) - 0s
[DEBUG] 13:34:48.426 properties.go:GetString:28 → ≡
[DEBUG] 13:34:48.426 properties.go:GetBool:22 → fetch_upstream_icon: false
[TRACE] 13:34:48.426 shell.go:TemplateCache() - 0s
[DEBUG] 13:34:48.444 shell.go:RunCommand:523 → 1Gs 713Ms 386ks 088s
[TRACE] 13:34:48.444 shell.go:RunCommand(sh -c sec -ls) - 58.501ms
[TRACE] 13:34:48.444 shell.go:RunShellCommand() - 58.501ms
[TRACE] 13:34:48.444 shell.go:TemplateCache() - 0s
[DEBUG] 13:34:48.444 text.go:Render:70 → Rendering template: {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }}
[DEBUG] 13:34:48.444 text.go:Render:70 → Rendering template: 秒{{ .Output }}
[TRACE] 13:34:48.444 shell.go:TemplateCache() - 0s
[TRACE] 13:34:48.444 shell.go:Shell() - 0s
[TRACE] 13:34:48.445 shell.go:TemplateCache() - 0s
[ERROR] 13:34:48.445 shell.go:FileContent:463 → open C:\Users\censored_irl_name\program dev\py\gpu-usage\.git/logs/refs/stash: The system cannot find the file specified.
[TRACE] 13:34:48.445 shell.go:FileContent(C:\Users\censored_irl_name\program dev\py\gpu-usage\.git/logs/refs/stash) - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[DEBUG] 13:34:48.445 shell_windows.go:TerminalWidth:94 → terminal width: 103
[TRACE] 13:34:48.445 shell_windows.go:TerminalWidth() - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[TRACE] 13:34:48.445 shell.go:Flags() - 0s
[TRACE] 13:34:48.445 shell.go:Pwd() - 0s
[DEBUG] 13:34:48.445 shell_windows.go:58 → C:\Users\censored_irl_name
[TRACE] 13:34:48.445 shell.go:GOOS() - 0s
[DEBUG] 13:34:48.445 segment.go:SetEnabled:529 → Segment: Text
[TRACE] 13:34:48.445 shell.go:TemplateCache() - 0s
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: {{if .Root }}{{ end }}>
[TRACE] 13:34:48.445 shell.go:TemplateCache() - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[DEBUG] 13:34:48.445 shell.go:Getenv:325 → NO DATA
[TRACE] 13:34:48.445 shell.go:Getenv(TERM_PROGRAM) - 0s
[DEBUG] 13:34:48.445 text.go:Render:70 → Rendering template: diamond
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[TRACE] 13:34:48.445 shell.go:Shell() - 0s
[DEBUG] 13:34:48.445 shell.go:Getenv:325 → C:\Users\censored_irl_name\AppData\Local
[TRACE] 13:34:48.445 shell.go:Getenv(LOCALAPPDATA) - 0s
[TRACE] 13:34:48.445 shell_windows.go:CachePath() - 0s
[TRACE] 13:34:48.445 shell.go:Flags() - 0s |
Beta Was this translation helpful? Give feedback.
Answered by
JanDeDobbeleer
Apr 18, 2024
Replies: 1 comment 5 replies
-
According to our interaction with the OS on that folder, there are no relevant python files. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@BPplays needs to he added inside the properties block.