`_pyenv_virtualenv_hook` still in $PROMPT_COMMAND after uninstall
还没有人认领这个 Issue。
评估
调研方向
No source file or test is named. Reproduce the macOS arm64 case with pyenv 2.4.3 and pyenv-virtualenv 1.2.3, then inspect bashrc, virtualenv-init, and PROMPT_COMMAND during a new terminal session. Done means uninstalling the plugin and removing virtualenv-init no longer leaves _pyenv_virtualenv_hook in PROMPT_COMMAND.
由索引模型根据 Issue 内容生成。
描述
I was using pyenv+pyenv-virtualenv installed via brew on macOS. I uninstalled it and removed virtualenv-init from my bashrc, but it still gets added to PROMPT_COMMAND which now makes every new terminal fail with -bash: _pyenv_virtualenv_hook: command not found.
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-virtualenvplugin only. Please refrain from reporting issues of other plugins here.
- This repository is maintaining the
Description
- Platform information (e.g. Ubuntu Linux 20.04): macOS
- OS architecture (e.g. amd64): arm64
- pyenv version: 2.4.3
- pyenv-virtualenv version: 1.2.3
- Python version: 3.12.2
- virtualenv version (if installed):
- 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:
# for Bash export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' # for Zsh export PS4='+(%x:%I): %N(%i): ' set -x <reproduce the problem> set +x
- If the problem happens in a Pyenv invocation, you can turn on debug logging by setting
- 主要语言
- Shell
- 星标
- 6.7k
- 派生
- 427
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pyenv/pyenv-virtualenv 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
pyenv/pyenv-virtualenv#524 · 5 条评论 ·
-
难度 4/5 3-5 天 新手友好度 42/100
pyenv/pyenv-virtualenv#515 · 5 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
pyenv/pyenv-virtualenv#514 · 1 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
pyenv/pyenv-virtualenv#510 · 5 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 25/100
pyenv/pyenv-virtualenv#507 ·
查看 pyenv/pyenv-virtualenv 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
unixorn/awesome-zsh-plugins#2285 ·
维护者通常 1 天内回复
-
documentation priority: low
难度 2/5 1-3 小时 新手友好度 88/100
snapotter-hq/SnapOtter#1863 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
nasa-jpl/bespokebpv7#51 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
area/rules
难度 2/5 1-3 小时 新手友好度 88/100
usnistgov/macos_security#836 ·
维护者通常 1 天内回复