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

Virtual env name doesn't show after reloading zsh #434

Open
10 tasks done
nguyendviet opened this issue Aug 19, 2022 · 0 comments
Open
10 tasks done

Virtual env name doesn't show after reloading zsh #434

nguyendviet opened this issue Aug 19, 2022 · 0 comments

Comments

@nguyendviet
Copy link

nguyendviet commented Aug 19, 2022

Too many issues will kill our team's development velocity, drastically.
Make sure you have checked all steps below.

Prerequisite

  • Make sure your problem is not listed in the common build problems.
  • Make sure no duplicated issue has already been reported in the pyenv-virtualenv issues. You should look in closed issues, too.
  • Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • Make sure your problem is not derived from other plugins.
    • This repository is maintaining the pyenv-virtualenv plugin only. Please refrain from reporting issues of other plugins here.

Description

  • Platform information (e.g. Ubuntu Linux 20.04): OSX
  • OS architecture (e.g. amd64): M1
  • pyenv version: 2.2.5
  • pyenv-virtualenv version: 1.1.5
  • Python version: 3.10
  • [N/A] virtualenv version (if installed):
  • [N/A] Please attach the debug log of a faulty Pyenv invocation as a gist
    • If the problem happens in a Pyenv invocation, you can turn on debug logging by setting PYENV_DEBUG=1, e.g. env PYENV_DEBUG=1 pyenv install -v 3.6.4
    • If the problem happens outside of a Pyenv invocation, get the debug log like this:
      export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
      set -x
      <reproduce the problem>
      set +x
      

If I start my virtual environment for the first time, I can see it:

(my-env) user@machine %

However, if I reload my zsh:

source ~/.zshrc

The name disappears even though the env is still activated

user@machine %

I can only check with:

pyenv virtualenvs

I added a custom script in my .zshrc to show the virtual env name after reloading.

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

No branches or pull requests

1 participant