Rope does't pick project virtualenv

Aperta
#803 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
2.2k
Fork
197
Merge medio
2g 13h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di python-rope/rope

Tutte le issue di python-rope/rope

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.