python executable not detected outside of pipenv project
まだ誰も着手していません。
評価
- 難易度
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
atom-community/ide-python のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
atom-community/ide-python#575 · リアクション 5 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
atom-community/ide-python#570 · コメント 2 件 · リアクション 1 件 ·
-
難易度 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
-
Add: Digi 4K Logoオープンcheck:passed logos:add
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
component/administration domain/framework needs-triage Platform(Default) priority/low
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
semantic-release/gitlab#1032 ·
-
agent/guide documentation hive/hosted-available-lke648397-260827-5n31
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
agentic-workflows
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
githubnext/gh-aw-workshop#3933 ·
メンテナーはふだん 2 日以内に返信