python executable not detected outside of pipenv project
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript, python
- 領域
- devtools
研究方向
此 issue 涉及可執行檔設定與 Pipenv 整合;先追蹤不存在 Pipenv 專案時 $PIPENV_PATH 的展開方式。將回報的 pipenv --venv 行為與 pipenv --py 進行比較,接著驗證預設的 python 在 Pipenv 專案內外都能正常運作。
由索引模型根據 Issue 內容生成。
描述
My system python is installed via homebrew/miniconda:
$ which python
/usr/local/Caskroom/miniconda/base/bin/python
When the python executable setting is left as default python PyLS spins up from the base environment fine.
If I set up a project with pipenv and use the suggested $PIPENV_PATH/bin/python then it spins up PyLS in the virtual environment and works fine for that project. However, outside of the project the python executable cannot be found.
From reviewing the code it looks like outside of a pipenv project the python path becomes /bin/python which is not where my system python lives. It needs to fallback to just python.
I can see that $PIPENV_PATH gets replaced with the output of pipenv --venv, however you could use pipenv --py to get the full path to the interpreter (or just append /bin/python as it's always that). In that case the executable setting won't be needed for pipenv, so it can just remain as the default python or be set as an absolute path if needed.
N.B As a workaround I tried to symlink /bin/python to my miniconda python. However on MacOS SIP prevents this. I'd rather not have to disable it.
- 主要語言
- JavaScript
- 星號
- 238
- 分支
- 41
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
atom-community/ide-python 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 25/100
atom-community/ide-python#575 · 5 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 25/100
atom-community/ide-python#570 · 2 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 25/100
atom-community/ide-python#568 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
atom-community/ide-python#567 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
atom-community/ide-python#566 ·
查看 atom-community/ide-python 的全部 Issue
相似的 Issue
-
factory-active factory-automatic harness/codex task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
ux
難度 1/5 1 小時以內 新手友好度 90/100
rr-djk/rr-djuikoo.com#53 ·
維護者通常 1 天內回覆
-
new spec review
難度 2/5 1-3 小時 新手友好度 72/100
w3c/browser-specs#2666 · 1 則留言 ·
維護者通常 3 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
thim81/openapi-format#238 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
decentespresso/dye2#13 ·