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

Creates venv with mkvenv but doesn't autoswitch #164

Open
erikc96 opened this issue Oct 14, 2021 · 2 comments
Open

Creates venv with mkvenv but doesn't autoswitch #164

erikc96 opened this issue Oct 14, 2021 · 2 comments

Comments

@erikc96
Copy link

erikc96 commented Oct 14, 2021

Issue Details

Please provide the following details when opening an issue:

Operating System (uname -a)

Darwin Eriks-MacBook-Pro-1037.local 21.1.0 Darwin Kernel Version 21.1.0: Sat Sep 11 12:27:45 PDT 2021; root:xnu-8019.40.67.171.4~1/RELEASE_ARM64_T8101 arm64

zsh version (zsh --version)

zsh 5.8 (x86_64-apple-darwin21.0)

autoswitch-virtualenv version

echo "$AUTOSWITCH_VERSION"
3.3.2

How is zsh-autoswitch-virtualenv installed?

zplug

  • zplug
  • oh-my-zsh
  • Antigen
  • Other (please specify)

Steps to reproduce the issue

I run mkvenv, and it executes succesfully. The venv is activated.

craigoej@Eriks-MacBook-Pro-1037 Project % mkvenv
Installing dependencies from Pipfile.lock (c71240)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:00:00
Switching pipenv: Project [🐍Python 3.9.7]
(Project) craigoej@Eriks-MacBook-Pro-1037 Project %

But if I leave the project and come back, I get this:

Python pipenv project detected. Run mkvenv to setup autoswitching

gist link to your zshrc



source ~/.zplug/init.zsh

# Make sure to use double quotes
zplug "zsh-users/zsh-history-substring-search"
zplug "MichaelAquilina/zsh-autoswitch-virtualenv"

# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
        echo; zplug install
    fi
fi

# Then, source plugins and add commands to $PATH
zplug load --verbose

@MichaelAquilina
Copy link
Owner

What does PIPENV_IGNORE_VIRTUALENVS=1 pipenv --venv 2>/dev/null return when you run it in the folder you expect to auto activate?

@erikc96
Copy link
Author

erikc96 commented Oct 14, 2021 via email

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

2 participants