-
Notifications
You must be signed in to change notification settings - Fork 216
Description
Summary
When performing a symbol search in zed with ty enabled, I'm only getting a partial list of matches. I thought it was only returning the matches from open files, but I tried closing all files in the project, or opening other files, and the list of returned matches remained the same. Switching to basedpyright returns all matches. A couple of the matches that didn't show up with ty were private methods so I made those public (removing the _) and restarted ty but that didn't change anything.
I tested with a couple more queries, with both basedpyright and ty and found the following:
- all
tymatches were module level constants or class names; it didn't return any function names with the same string, or any function level variables (basedpyrightdid return all of those) - the exception to the above is that it did find unit test functions with the target string
- when I created a new function during the same session with the target string, and then ran symbol search with
ty, it did find the new function (but did not find pre-existing functions with that string); however it incorrectly returned two matches: one in the file where the new function was created, and another match in another open file (but that was incorrect, that function was not called there).
I tested with another python project, and found the same errors as above (ty only returned module level constants or class names), however, I found that it did return one function that had a decorator.
I tested on a third python project, and it had the same error as reported above -- only showed module level constants and variables, not functions. See screenshot below.
this is after restarting Zed and the ty language server, zed logs show no errors, only related logs are:
2025-12-11T09:42:15-08:00 INFO [lsp] starting language server process. binary path: "/home/sean/.local/share/zed/languages/ty/ty-0.0.1-alpha.33/ty-x86_64-unknown-linux-gnu/ty", working directory: "/home/sean/dev/pd", args: ["server"]
2025-12-11T09:42:16-08:00 INFO [lsp] starting language server process. binary path: "/home/sean/.local/share/zed/languages/ruff/ruff-0.14.8/ruff-x86_64-unknown-linux-gnu/ruff", working directory: "/home/sean/dev/pd", args: ["server"]
Version
0.0.1-alpha.33/ty-x86_64-unknown-linux-gnu