python executable not detected outside of pipenv project
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, python
- Lĩnh vực
- devtools
Hướng nghiên cứu
Issue này liên quan đến cài đặt executable và tích hợp Pipenv; hãy bắt đầu bằng cách truy vết cách $PIPENV_PATH được mở rộng khi không có dự án Pipenv nào. So sánh hành vi được báo cáo của pipenv --venv với pipenv --py, sau đó xác minh rằng python mặc định hoạt động cả bên trong lẫn bên ngoài một dự án Pipenv.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 238
- Fork
- 41
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của atom-community/ide-python
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#575 · 5 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#570 · 2 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#568 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#567 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
atom-community/ide-python#566 ·
Tất cả issue của atom-community/ide-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
parse-community/parse-server#10699 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: dashboard bug perceived difficulty: 3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Nitjsefnie-Harness-Commons/daedalus#1179 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Aframe enhancement javascript
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
webarkit/Aframe-nft#17 ·
-
spec-feedback
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100