JanDeDobbeleer / oh-my-posh

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

Cannot determine python version #2012

Closed amzon-ex closed 2 years ago

amzon-ex commented 2 years ago

Code of Conduct

What happened?

I recently started using pyenv to manage multiple versions of python installation on my system (Ubuntu 21.10 on WSL). However, this seems to have broken the functionality of displaying the python version (which I want to be displayed - just to clarify). My display mode is set to environment as I'd want omp to show if I have activated a virtual environment. The pyenv global command outputs "system", which in my case is Python 3.9.7. When OMP detects .py files, it's segment turns to err executing python with [--version]. However, if I activate a virtual environment, the error gets fixed and shows the name of the virtual environment with the correct version. Am I doing something wrong in the setup or is this a bug?

Theme

Custom theme:

{
    "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
    "final_space": false,
    "osc99": true,
    "console_title": true,
    "console_title_style": "template",
    "console_title_template": "{{ .Shell }} in {{ .Folder }}",
    "blocks":
    [
        {
            "type": "prompt",
            "newline": true,
            "alignment": "left",
            "horizontal_offset": 0,
            "vertical_offset": 0,
            "segments":
            [
                {
                    "type": "os",
                    "style": "plain",
                    "foreground": "cyan",
                    "properties": {
                        "prefix": "",
                        "postfix": "",
                        "wsl": "\uE62A",
                        "wsl_separator": " → "
                    }
                },
                {
                    "type": "session",
                    "style": "plain",
                    "foreground": "cyan",
                    "properties": {
                        "template": "{{.UserName}} <lightCyan>\uE78C {{.ComputerName}}</>"
                    }
                },
                {
                    "type": "executiontime",
                    "style": "diamond",
                    "trailing_diamond": "\ue0b4",
                    "leading_diamond": "\ue0b6",
                    "background": "black",
                    "foreground": "darkGray",
                    "properties": {
                        "always_enabled": true,
                        "threshold": 500,
                        "template": "{{.FormattedMs}}",
                        "postfix": "",
                        "prefix": ""
                    }
                }
            ]
        },
        {
            "type": "prompt",
            "alignment": "right",
            "horizontal_offset": 3,
            "vertical_offset": 0,
            "segments":
            [
                {
                    "type": "root",
                    "style": "plain",
                    "foreground": "#FFD54F",
                    "properties": {
                        "prefix": "",
                        "text": "\uF2DD"
                    }
                },
                {
                    "type": "path",
                    "style": "plain",
                    "foreground": "green",
                    "properties": {
                        "enable_hyperlink": true,
                        "style": "folder",
                        "prefix": "\uFC6E ",
                        "postfix": " "
                    }
                },
                {
                    "type": "git",
                    "style": "plain",
                    "invert_powerline": false,
                    "properties": {
                      "display_stash_count": true,
                      "display_status": false,
                      "branch_icon": "\uF7A1 ",
                      "prefix": "<#ffffff>on</> "
                    }
                },
                {
                    "type": "python",
                    "style": "powerline",
                    "foreground": "#191F1F",
                    "background": "#9E7DFF",
                    "properties": {
                      "display_mode": "context",
                      "prefix": " \uE606 ",
                      "postfix": " "
                    }
                },
                {
                    "type": "go",
                    "style": "powerline",
                    "foreground": "#7FD5EA",
                    "properties": {
                      "prefix": "\u005b\uFCD1 ",
                      "postfix": "\u005D "
                    }
                },
                {
                    "type": "node",
                    "style": "powerline",
                    "background": "#98C379",
                    "foreground": "#191F1F",
                    "properties": {
                      "prefix": " \uE718 ",
                      "postfix": " "
                    }
                },
                {
                    "type": "ruby",
                    "style": "powerline",
                    "foreground": "black",
                    "background": "#FC5548",
                    "properties": {
                      "prefix": " \uE791 ",
                      "postfix": " "
                    }
                },
                {
                    "type": "java",
                    "style": "powerline",
                    "foreground": "#ea2d2e",
                    "properties": {
                      "prefix": "\u005b\uE738 ",
                      "postfix": "\u005D "
                    }
                },
                {
                    "type": "julia",
                    "style": "powerline",
                    "background": "#5F7DE1",
                    "foreground": "black",
                    "properties": {
                      "prefix": " \uE624 "
                    }
                }
            ]
        },
        {
            "type": "prompt",
            "alignment": "left",
            "newline": true,
            "horizontal_offset": 0,
            "vertical_offset": 0,
            "segments":
            [

                {
                    "type": "text",
                    "style": "plain",
                    "foreground": "#FFD54F",
                    "properties": {
                        "prefix": "",
                        "text": "\u276F"
                    }
                }
            ]
        }
    ]
}

What OS are you seeing the problem on?

Windows, Linux

Which shell are you using?

bash

Log output

Here are the timings of segments in your prompt:

ConsoleTitle(true) -   0 ms -
session(true)  -   0 ms - \[\]\[\]\[\] \[\]\[\]amzon-ex\[\]\[\]@\[\]\[\]minami\[\]\[\] \[\]\[\]\[\]
path(true)     -   0 ms - \[\]\[\]\[\]  \[\]\[\]BH-Initial-Data\[\]\[\] \[\]\[\]\[\]
git(true)      -   4 ms - \[\]\[\]\[\] \[\]\[\]master\[\]\[\] \[\]\[\]\[\]
battery(true)  -   0 ms - \[\]\[\]\[\] \[\]\[\]60\[\]\[\] \[\]\[\]\[\]
node(false)    -   5 ms -
shell(true)    -   0 ms - \[\]\[\]\[\] ﲵ \[\]\[\]bash\[\]\[\] \[\]\[\]\[\]
root(false)    -   0 ms -
text(true)     -   0 ms - \[\]\[\]\[\] \[\]\[\]NO CONFIG\[\]\[\] \[\]\[\]\[\]
exit(true)     -   0 ms - \[\]\[\]\[\] \[\]\[\] \[\]\[\]\[\]
JanDeDobbeleer commented 2 years ago

@amzon-ex can you first upgrade oh-my-posh? You have a very old version, meaning I can't see the logs 😃

amzon-ex commented 2 years ago

@JanDeDobbeleer

Just to be clear, does updating omp from windows not update the oh-my-posh-wsl executable anymore? Sorry if I have been out of the loop. When I first installed omp, this used to be included. So I actually keep updating omp from time to time, but it seems like oh-my-posh-wsl is stuck at version 5.14.0. (+ that means there's no shell-independent installation possible anymore?)

JanDeDobbeleer commented 2 years ago

@amzon-ex correct. that's because running a unix executable from the Windows filesystem is too slow in WSL2. Once that's resolved we can add that back but it's simply not an option now.

amzon-ex commented 2 years ago

@JanDeDobbeleer

That's really unfortunate! I had figured that it is quite slow and so I used to copy the omp-wsl executable to my home directory in WSL, and alias it as oh-my-posh. Then follow the usual instructions for my shell, and it was superfast. I hope there is a way to automate this or something. It was super handy because one didn't need to install omp twice in two different places...

Anyway, I'll install omp for linux on my WSL instance and get back to this issue asap!

amzon-ex commented 2 years ago

After updating omp, the error is now being thrown from pyenv itself. Here is the debug data:

Version: 7.55.2

Segments:

ConsoleTitle(true)   -   1 ms - bash in BH-Initial-Data
os(true)             -   0 ms -  → 
session(true)        -   0 ms -  amzon-ex  minami
executiontime(true)  -   0 ms - 0ms
root(false)          -   0 ms -
path(true)           -   2 ms - ﱮ BH-Initial-Data
git(false)           -  48 ms -
python(true)         - 162 ms -   err parsing info from python with pyenv: python: command not found

The 'python' command exists in these Python versions:
  3.8.6
  3.8.6/envs/igwn-py38
  igwn-py38

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.

go(false)            -   1 ms -
node(false)          -   4 ms -
ruby(false)          -   3 ms -
java(false)          -  10 ms -
julia(false)         -   1 ms -
text(true)           -   0 ms - ❯

Run duration: 238.247591ms

Cache path: /home/amzon-ex/.cache/oh-my-posh

Logs:

2022/03/31 18:27:41 Flags duration: 120ns, args:
2022/03/31 18:27:41 Flags duration: 90ns, args:
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 5.911µs, args: OMP_CACHE_DISABLED
2022/03/31 18:27:41 Root duration: 351ns, args:
2022/03/31 18:27:41 Shell duration: 998.611µs, args:
2022/03/31 18:27:41 ErrorCode duration: 50ns, args:
2022/03/31 18:27:41 debug: Getenv
Ubuntu-20.04
2022/03/31 18:27:41 Getenv duration: 1.653µs, args: WSL_DISTRO_NAME
2022/03/31 18:27:41 IsWsl duration: 3.567µs, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 679.694µs, args:
2022/03/31 18:27:41 PathSeparator duration: 50ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 31ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 41ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 User duration: 360ns, args:
2022/03/31 18:27:41 Host duration: 1.302µs, args:
2022/03/31 18:27:41 GOOS duration: 50ns, args:
2022/03/31 18:27:41 TemplateCache duration: 1.730464ms, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 1.603µs, args:
2022/03/31 18:27:41 GOOS duration: 40ns, args:
2022/03/31 18:27:41 TemplateCache duration: 161ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 1.433µs, args:
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 872ns, args: SSH_CONNECTION
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 1.062µs, args: SSH_CLIENT
2022/03/31 18:27:41 TemplateCache duration: 120ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 982ns, args:
2022/03/31 18:27:41 ExecutionTime duration: 90ns, args:
2022/03/31 18:27:41 TemplateCache duration: 140ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 1.083µs, args:
2022/03/31 18:27:41 Root duration: 351ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 842ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 611ns, args:
2022/03/31 18:27:41 Flags duration: 50ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 581ns, args:
2022/03/31 18:27:41 GOOS duration: 50ns, args:
2022/03/31 18:27:41 GOOS duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 40ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 31ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 31ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 31ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 PathSeparator duration: 30ns, args:
2022/03/31 18:27:41 GOOS duration: 30ns, args:
2022/03/31 18:27:41 debug: Getenv
Ubuntu-20.04
2022/03/31 18:27:41 Getenv duration: 872ns, args: WSL_DISTRO_NAME
2022/03/31 18:27:41 IsWsl duration: 2.124µs, args:
2022/03/31 18:27:41 debug: RunCommand
C:/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 RunCommand duration: 1.910547ms, args: wslpath -m /mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 StackCount duration: 90ns, args:
2022/03/31 18:27:41 TemplateCache duration: 140ns, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 1.533µs, args:
2022/03/31 18:27:41 debug: Getenv
Ubuntu-20.04
2022/03/31 18:27:41 Getenv duration: 1.162µs, args: WSL_DISTRO_NAME
2022/03/31 18:27:41 IsWsl duration: 2.805µs, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 831ns, args:
2022/03/31 18:27:41 GOOS duration: 40ns, args:
2022/03/31 18:27:41 error: HasCommand
not relevant
2022/03/31 18:27:41 HasCommand duration: 48.590503ms, args: git.exe
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 3.247µs, args:
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 862ns, args:
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 1.022µs, args: VIRTUAL_ENV
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 801ns, args: CONDA_ENV_PATH
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 691ns, args: CONDA_DEFAULT_ENV
2022/03/31 18:27:41 debug: Getenv

2022/03/31 18:27:41 Getenv duration: 591ns, args: PYENV_VERSION
2022/03/31 18:27:41 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:41 Pwd duration: 691ns, args:
2022/03/31 18:27:41 PathSeparator duration: 50ns, args:
2022/03/31 18:27:41 HasFiles duration: 1.50287ms, args: *.py
2022/03/31 18:27:41 HasCommand duration: 11.131µs, args: python
2022/03/31 18:27:42 error: RunCommand
cmd.Start() failed with 'pyenv: python: command not found

The `python' command exists in these Python versions:
  3.8.6
  3.8.6/envs/igwn-py38
  igwn-py38

Note: See 'pyenv help global' for tips on allowing both
      python2 and python3 to be found.
'
2022/03/31 18:27:42 RunCommand duration: 160.059307ms, args: python --version
2022/03/31 18:27:42 TemplateCache duration: 481ns, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.262µs, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 811ns, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 581ns, args:
2022/03/31 18:27:42 PathSeparator duration: 50ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.62344ms, args: *.go
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.473µs, args:
2022/03/31 18:27:42 PathSeparator duration: 50ns, args:
2022/03/31 18:27:42 HasFiles duration: 302.616µs, args: go.mod
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.383µs, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 781ns, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 782ns, args:
2022/03/31 18:27:42 PathSeparator duration: 51ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.706594ms, args: *.js
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.012µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.640132ms, args: *.ts
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 962ns, args:
2022/03/31 18:27:42 PathSeparator duration: 50ns, args:
2022/03/31 18:27:42 HasFiles duration: 224.818µs, args: package.json
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 972ns, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 211.242µs, args: .nvmrc
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 931ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 210.33µs, args: pnpm-workspace.yaml
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 761ns, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 213.245µs, args: .pnpmfile.cjs
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 571ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 225.574µs, args: .npmrc
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.553µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 272.138µs, args: .vue
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 16.471µs, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 5.811µs, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.092µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.903143ms, args: *.rb
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.473µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 205.331µs, args: Rakefile
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 912ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 197.917µs, args: Gemfile
2022/03/31 18:27:42 debug: Getenv

2022/03/31 18:27:42 Getenv duration: 1.673µs, args: JAVA_HOME
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 702ns, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 671ns, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 561ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 210.42µs, args: pom.xml
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 812ns, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 243.303µs, args: build.gradle.kts
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.062µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 240.268µs, args: build.sbt
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.022µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 242.121µs, args: .java-version
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.082µs, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 220.039µs, args: .deps.edn
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 15.82µs, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 222.874µs, args: project.clj
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 851ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 216.106µs, args: build.boot
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 841ns, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.574488ms, args: *.java
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 992ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.5656ms, args: *.class
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 962ns, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.412489ms, args: *.gradle
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 882ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.493137ms, args: *.jar
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.303µs, args:
2022/03/31 18:27:42 PathSeparator duration: 50ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.526561ms, args: *.clj
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 882ns, args:
2022/03/31 18:27:42 PathSeparator duration: 30ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.56804ms, args: *.cljc
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.263µs, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 751ns, args:
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 601ns, args:
2022/03/31 18:27:42 PathSeparator duration: 40ns, args:
2022/03/31 18:27:42 HasFiles duration: 1.456863ms, args: *.jl
2022/03/31 18:27:42 debug: Pwd
/mnt/c/Amzon/Lab/repos/BH-Initial-Data
2022/03/31 18:27:42 Pwd duration: 1.042µs, args:
2022/03/31 18:27:42 TemplateCache duration: 271ns, args:
2022/03/31 18:27:42 debug: Getenv

2022/03/31 18:27:42 Getenv duration: 1.423µs, args: XDG_CACHE_HOME
2022/03/31 18:27:42 CachePath duration: 10.74µs, args:
JanDeDobbeleer commented 2 years ago

@amzon-ex this is actually a design decision of pyenv and not something oh-my-posh can/needs to fix. You can read about it, and a possible workaround here.

amzon-ex commented 2 years ago

@JanDeDobbeleer

Great. I did a symlink of python to python3 (like installing python-is-python3 on Ubuntu) and that solved the problem.

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