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

Make find-definition work better with multi-components #1357

Merged
merged 4 commits into from
Feb 13, 2021

Conversation

wz1000
Copy link
Collaborator

@wz1000 wz1000 commented Feb 12, 2021

With multi-components, if component A depends on component B, and we initially
load and index component B, names from B will be indexed under "fake_uid". However,
next time we load component A, names from B will be under a proper, non-"fake_uid".
This makes searches in the database fail.

To fix this, if the first query fails, we search again without specifying a unit id.
This may make results more inaccurate in rare scenarios involving collision of both
module and OccNames from that module.

Copy link
Collaborator

@pepeiborra pepeiborra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test?

@wz1000 wz1000 added the merge me Label to trigger pull request merge label Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants