Allow `--force` activate `poetry shell` when poetry fails to activate it
还没有人认领这个 Issue。
评估
调研方向
从 poetry shell 命令开始,在 Ubuntu 上重现报告的 Virtual environment already activated 输出。跟踪现有的激活决策,并将完成定义为一个 force 选项,使其即使检测到该情况也能激活环境,同时输出与提议的用法示例一致。
由索引模型根据 Issue 内容生成。
描述
-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption). -
OS version and name: Ubuntu 20.04
-
Poetry version: 1.1.13
Issue
Often times poetry keeps thinking I have a shell already activated, and I don't. This is widely reported by others too (#4622, python-poetry/poetry-plugin-shell#21, python-poetry/poetry#5050, python-poetry/poetry#3136). I also do not have any conda environment activated (not even base). In this case, I am just forced to use the full path to the venv to run the activate script manually. I propose that we should be able to do this in poetry, when it inevitable fails to activate the venv, to --force activate the environment, so that even if it is "already active" (not actually), it will still be "activated" (for the first time).
Current output
$ poetry shell -vvv
Using virtualenv: ...-py3.8
Virtual environment already activated: ...-py3.8
Proposed Usage example:
$ poetry shell
Virtual environment already activated: ...
$ poetry shell -f
Force-activating Virtual environment: ...
- 主要语言
- Python
- 星标
- 141
- 派生
- 10
- 平均合并
- 59 分钟
- 30 天内合并 PR
- 3
环境准备
我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
python-poetry/poetry-plugin-shell 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 20/100
python-poetry/poetry-plugin-shell#43 · 1 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 52/100
python-poetry/poetry-plugin-shell#42 · 4 条评论 · 15 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 38/100
python-poetry/poetry-plugin-shell#40 · 4 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 42/100
python-poetry/poetry-plugin-shell#37 · 3 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
python-poetry/poetry-plugin-shell#34 · 1 条评论 ·
查看 python-poetry/poetry-plugin-shell 的全部 Issue
相似的 Issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattended未关闭workflow
难度 2/5 1-3 小时 新手友好度 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
维护者通常 1 天内回复
-
metadata submission
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
canonical/content-cache-operator#163 · 1 条评论 ·
维护者通常 1 天内回复
-
[submission]未关闭submission
难度 1/5 1 小时以内 新手友好度 65/100
leanprover/lean-eval-submissions#1852 ·
维护者通常 1 天内回复