zed icon indicating copy to clipboard operation
zed copied to clipboard

Python - Duplicate LSP panel?

Open Acelya-9028 opened this issue 9 months ago • 1 comments

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:

  1. Open a python file

Expected Behavior:

No duplicate :)

Actual Behavior:

Image Image Image

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

Acelya-9028 avatar May 12 '25 18:05 Acelya-9028

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"]
        }
    }
}

renzepost avatar May 13 '25 15:05 renzepost

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.

probably-neb avatar May 16 '25 09:05 probably-neb

@renzepost @probably-neb Ok I understand now, thank you very much :)

Acelya-9028 avatar May 22 '25 08:05 Acelya-9028