python executable not detected outside of pipenv project
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, python
- Ambito
- devtools
Direzione di ricerca
La issue riguarda l’impostazione dell’eseguibile e l’integrazione con Pipenv; inizia tracciando come viene espanso $PIPENV_PATH quando non è presente alcun progetto Pipenv. Confronta il comportamento segnalato di pipenv --venv con pipenv --py, quindi verifica che il python predefinito funzioni sia all’interno sia all’esterno di un progetto Pipenv.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 238
- Fork
- 41
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di atom-community/ide-python
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
atom-community/ide-python#575 · 5 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
atom-community/ide-python#570 · 2 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
atom-community/ide-python#568 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
atom-community/ide-python#567 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
atom-community/ide-python#566 ·
Tutte le issue di atom-community/ide-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
parse-community/parse-server#10699 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area: dashboard bug perceived difficulty: 3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Nitjsefnie-Harness-Commons/daedalus#1179 ·
I maintainer di solito rispondono entro 1 giorno
-
Aframe enhancement javascript
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
webarkit/Aframe-nft#17 ·
-
spec-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100