Skip to content
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

Find Usages sometimes says "Cannot find usages from this location" when references are attributed to that same location #664

Open
SCWells72 opened this issue Dec 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@SCWells72
Copy link
Contributor

This doesn't happen 100% consistently, but I've found it's pretty consistently reproducible immediately after adding a language server definition. If I try to use the IDE's native Find Usages, it fails with:

Image

while clicking on the XXX references inlay produces the correct result:

Image

@SCWells72
Copy link
Contributor Author

I've already started investigating this one a bit. The problem seems to be in SearchTargetVariantsDataRule#targetVariants where TargetElementUtil#findReference is returning null. I'm going to try to get into a situation where it doesn't return null to determine the difference between when it works and when it doesn't.

@SCWells72
Copy link
Contributor Author

This issue seems to be resolved by the addition of LSPTargetElementEvaluator in pending PR #637 for issue #636.

@angelozerr angelozerr added the bug Something isn't working label Dec 7, 2024
@angelozerr
Copy link
Contributor

@SCWells72 can we close this issue?

@SCWells72
Copy link
Contributor Author

@SCWells72 can we close this issue?

Yes, I believe so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants