Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork151
-
This is further to:#2844 I'm not sure where the problem is but I've tried using both snacks.nvim and telescope and described the issue here thinking it was a snacks.nvim issue:folke/snacks.nvim#1060 The problem is, on projects with > 200 files (or higher if the limit is increased) lsp workspace symbols is incomplete. This happens in both Telescope and Snacks. I'd imagine how it should work is the picker sends the request to the LSP and the LSP returns the results. It seems like something is going wrong during that process. If It type into either snacks or telescope: I get a tiny subset of results. There are around 600 classes in the project with that namespace yet I get fewer than 10 results. According to the author of snacks.nvim, that list is coming directly from the LSP. Is there a way (or an alternative picker) that works with a large number of classes in the project? How can I debug this further? Either the picker or phpactor is not working as intended If I increase the limit as described in#2844 it increases the results. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
-
there is a configurable limit as it's quite an expensive operation:https://phpactor.readthedocs.io/en/master/reference/configuration.html#languageserverindexerextension it's set as default to 250 |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thanks, I've increased this limit but I'm not sure how it's supposed to work then. I assume it's an issue between nvim, the picker and the LSP. If I run However, edit: Seems that I had to set Though now I'm getting I'll try to tun on edit 2: I don't think it works the way I expect it to work. If the lsp workspace symbol limit is 250 and I open snacks.picker I expected that:
But it seems that what actually happens is that those 250 results are the only ones indexed. I think with a higher limit it's crashing the lsp because it's trying to return all ~60k files at once. A 250 limit would be fine if the second step above worked and I could search the entire workspace but only return 250 relevant files |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #2883 on May 06, 2025 12:40.