Rope does't pick project virtualenv

Đang mở
#803 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 7 ngày

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
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

The payload names no source files. Start by finding where the autoimport database (autoimport.db) is populated and how it chooses the Python interpreter or site-packages, then compare that with how the project virtualenv is detected. Reproduce by running the population step inside a project venv and checking which interpreter's packages get indexed. Done when the project's virtualenv packages are picked up instead of the system Python.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Describe the bug
It seems like that rope doesn't pick up my virtual env and instead use system python when populating autoimport.db

Editor information (please complete the following information):

  • Project Python version: 3.13
  • Rope Python version: python-lsp-server one
  • Rope version: python-lsp-server one
  • Text editor/IDE and version: nvim 0.10.2

Additional context
I'm using pylsp along with nvim, jedi import seems to work fine, rope not

Ngôn ngữ chính
Python
Star
2.2k
Fork
197
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-rope/rope

Tất cả issue của python-rope/rope

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.