asdf-community / asdf-community/asdf-python

`python -V` loads indefinitely after setting `python system` in `~/.tool-versions` globally

Offen
#186 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Shell
Sterne
729
Forks
65
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Provide environment information

```bash
OS:
Linux arch 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64 GNU/Linux

SHELL:
zsh 5.9 (x86_64-pc-linux-gnu)

BASH VERSION:
5.2.26(1)-release

ASDF VERSION:
v0.14.0-ccdd47d

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/hick/.asdf
ASDF_DIR=/home/hick/.asdf
ASDF_CONFIG_FILE=/home/hick/.asdfrc

ASDF INSTALLED PLUGINS:
python https://github.com/danhper/asdf-python.git master 5e277e2
```

### To Reproduce

After installing asdf with the steps described on the [official website](https://asdf-vm.com/pt-br/guide/getting-started.html#_2-download-asdf):

- `git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0`

Configure the shell:

- `source "$HOME/.asdf/asdf.sh"`
- `echo "source ~/.asdf/asdf.sh" >> ~/.zshrc`

Install the python plugin:

- `asdf plugin add python`

Configure to use the system version globally, as described on the [official website](https://asdf-vm.com/pt-br/manage/configuration.html#tool-versions):

- `asdf global python system`

After making these settings, running `python -V` keeps loading indefinitely:

[Gravação de tela de 2024-04-23 07-15-53.webm](https://github.com/asdf-community/asdf-python/assets/85202803/0baa0f79-95a5-4298-a316-8697c8021e49)

### Describe the Bug

After setting the python version to system in `~/.tool-versions`, running python loads indefinitely.

### Expected Behaviour

After setting the python version to system in `~/.tool-versions`, after running `python -V` without a local version having been configured with `asdf local python ` it should return the python version in `/bin/python`.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit dem Shell-Setup in ~/.zshrc und ~/.asdf/asdf.sh und reproduziere dann das Verhalten mit ~/.tool-versions sowie `python system` und `python -V`. Vergleiche dies mit der erwarteten Auflösung von `/bin/python`; abgeschlossen ist die Aufgabe, wenn `python -V` umgehend zurückkehrt, wenn keine lokale Version konfiguriert ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python, shell
Bereich
cli, tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.