-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/tools/gopls: symbol ranking algorithm edge case #60201
Comments
Thanks, eyeballing the match, I would have expected the desired result to be first. I'll debug. |
Sorry, we're trying to get the v0.12.0 release out, and this is something of an edge case, so it will have to wait for v0.13.0. Still a priority. |
No problems, appreciate you finding the time to update the issue! |
I can repro this using The cause appears to be the scoring algorithm implemented by (*fuzzy.SymbolMatcher).Match, which ranks I'm out of my depth on how to fix it though. Assigning to @findleyr. |
Apologies, I didn't run the repro steps in a clean environment to catch that. Now updated to remove the authenticated GerritHub URL.
Thanks for investigating in any case! |
Change https://go.dev/cl/531697 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Then open your editor at the root of the repo and perform a symbol search for
parseside
What did you expect to see?
The result:
to be returned as the best match.
What did you see instead?
The result:
returned as the best match, with the desired best match second.
The text was updated successfully, but these errors were encountered: