Python - Duplicate LSP panel?
Summary
I have 2 panels and I don't understand why
Description
I downloaded the pkg file from zed.dev, installed it, and opened a python file
I use no custom settings or whatever
Steps to reproduce:
- Open a python file
Expected Behavior:
No duplicate :)
Actual Behavior:
EDIT: I deleted my .venv folder but it's the same
Zed Version and System Specs
Zed: v0.185.16 (Zed) OS: macOS 15.4.1 Memory: 16 GiB Architecture: aarch64
I think by default both pyright and pylsp are active, giving you two panels with information. It's indeed a bit confusing. I managed to resolve this by disabling pylsp (or disabling pyright):
settings.json:
{
"languages": {
"Python": {
"language_servers": ["!pylsp", "pyright"]
}
}
}
Yeah this is an unfortunate papercut. We have both pylsp and pyright setup by default so we can get full coverage, but sometimes they overlap. I don't personally use python very often, but I've heard from the community that using basedpyright instead of pyright and pylsp works pretty well (it has to be installed as an extension).
We also just added extensions for astral-sh/ty and facebook/pyrefly which are newer Python language servers but are both under active development so mileage may vary.
@renzepost @probably-neb Ok I understand now, thank you very much :)