Open Tsirimaholy opened 1 month ago
I think this issue is related to the Desktop Environment, KDE Wayland. I've tested it on other DE and it works correctly. Same for #16117.
I'm actually thinking this might be a deficiency within pyright itself.
I'm actually thinking this might be a deficiency within pyright itself.
That's possible, because it starts not working too on even on non KDE DE. And the log are the sames T.T.
@JosephTLyons turning off ruff
alongside pyright makes workspace symbol search work!
See there, and I was able to reproduce it locally.
So it seems to be a problem of colocation between the two LSPs of pyright and ruff.
Regarding project symbols search, I could not tell if they are provided by pyright or if Zed provides some stub implementation of it specifically for Python.
Specs: Zed: v0.153.4 (Zed Preview) OS: macOS 14.4.1 Memory: 16 GiB Architecture: aarch64
I don't think Zed has anything to do with project symbol search, but we are responsible for the outline view of the current file, as we use tree sitter to capture those.
How does Zed decide which LSP to send the symbol search to? Presumably we would want it to go to pyright and not ruff in this case.
EDIT: Also, uninstalling the ruff extension did not solve this for me. @lvignoli how did you turn off ruff?
@skroth I enabled it in my config, so I manually removed it:
"languages": {
"Python": {
"format_on_save": "on",
"formatter": [
{ "code_actions": { "source.organizeImports.ruff": true } },
{ "language_server": { "name": "ruff" } }
],
- "language_servers": ["pyright", "ruff"]
+ "language_servers": ["pyright"]
},
}
@skroth I enabled it in my config, so I manually removed it:
"languages": { "Python": { "format_on_save": "on", "formatter": [ { "code_actions": { "source.organizeImports.ruff": true } }, { "language_server": { "name": "ruff" } } ], - "language_servers": ["pyright", "ruff"] + "language_servers": ["pyright"] }, }
Yesss. I test that and it work. But the question is now how can i use pyright alongside ruff lsps.
Check for existing issues
Describe the bug / provide steps to reproduce it
The project symbols search does not work when I'm on a python project when I update to Zed 0.149.5.
Environment
Zed: v0.149.5 (Zed) OS: Linux Wayland debian 6.2 Memory: 11.6 GiB Architecture: x86_64 GPU: Intel(R) HD Graphics 5500 (BDW GT2) || Intel open-source Mesa driver || Mesa 22.3.6
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log