aws / aws/amazon-q-developer-cli

Python LSP fails to initialize

Aperta
#3,670 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
2k
Fork
439
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

Linux 6.8.0-94-generic - Ubuntu 22.04.5 LTS

### Expected behaviour

A Python LSP server is started and is usable from Kiro-CLI

### Actual behaviour

Both pylsp and pyright fail to initialize in Kiro CLI:
- pylsp: Immediate failure "✗ pylsp (python) - failed to initialize"
- pyright: Hangs indefinitely at "◐ pyright (python) - initializing..."

Both work correctly from command line:
- pylsp --version → pylsp v1.14.0
- pyright-langserver --stdio → starts without errors

Installed via: uv tool install python-lsp-server / pyright

Environment:
- OS: Linux (Ubuntu)
- Python: 3.12.11
- Project has uv-managed .venv
- Config: .kiro/settings/lsp.json (valid JSON)

Tried: global install, venv install, absolute/relative paths, symlinks

### Steps to reproduce

_No response_

### Environment

```yaml

[q-details]
version = "1.27.2"
hash = "aa2f8e7241504f598fd58ed79f4fee5ab9bf77ae"
date = "2026-03-09T22:50:37.526145Z (3d ago)"
variant = "minimal"

[system-info]
chip = "11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz"
total-cores = 2
memory = "46.86 GB"

[system-info.os.linux]
kernel_version = "6.8.0-94-generic"
id = "ubuntu"
name = "Ubuntu"
pretty_name = "Ubuntu 22.04.5 LTS"
version_id = "22.04"
version = "22.04.5 LTS (Jammy Jellyfish)"

[environment]
cwd = "/home/USER/Projects/context-retrieval/cluster_tests/api_client"
cli-path = "/home/USER/Projects/context-retrieval/cluster_tests/api_client"
os = "Linux"
shell-path = "/usr/bin/bash"
shell-version = "5.1.16"
terminal = "Gnome Terminal"
install-method = "unknown"

[env-vars]
DISPLAY = ":10.0"
GTK_IM_MODULE = "ibus"
PATH = "/home/USER/bin:/home/USER/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/USER/.local/bin"
QT_IM_MODULE = "ibus"
SHELL = "/bin/bash"
TERM = "xterm-256color"
XDG_CURRENT_DESKTOP = "ubuntu:GNOME"
XDG_SESSION_TYPE = "x11"
XMODIFIERS = "@im=ibus"
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo il problema con q doctor e q restart, utilizzando la configurazione .kiro/settings/lsp.json e i comandi pylsp e pyright segnalati. Traccia il percorso di inizializzazione LSP di Kiro CLI e confronta il suo comportamento con gli avvii dalla riga di comando. Il lavoro è completato quando entrambi i server LSP Python vengono inizializzati e sono utilizzabili da Kiro CLI.

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

Valutazione

Stack tecnologico
python, rust
Ambito
cli, developer-experience
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
32/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.