Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Fix a bug in getHiFileRule #623

Merged
merged 2 commits into from
Jun 12, 2020
Merged

Conversation

pepeiborra
Copy link
Collaborator

After merging #589 ghcide now errors out occassionally with internal error - GetHiFile of file of interest.

This is great! It uncovers a real bug in getHiFileRule, although I'm not sure if the bug would have any user impact.

The problem is that getHiFileRule has direct dependencies on GetHiFile, which is wrong for the reasons explained in the expanded comment.

@ndmitchell
Copy link
Collaborator

Could we rename these types as GetModIface and GetModIface_FromDisk so show their relationship more visibly?

@pepeiborra
Copy link
Collaborator Author

Could we rename these types as GetModIface and GetModIface_FromDisk so show their relationship more visibly?

Done! Thanks for the suggestion

Copy link
Collaborator

@cocreature cocreature left a comment

Choose a reason for hiding this comment

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

Good catch, thank you!

@cocreature cocreature merged commit 9084fea into haskell:master Jun 12, 2020
pepeiborra added a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* Fix bug in getHiFileRule

* Renamed GetHiFile to GetModIfaceFromDisk for clarity
pepeiborra added a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* Fix bug in getHiFileRule

* Renamed GetHiFile to GetModIfaceFromDisk for clarity
pepeiborra added a commit to pepeiborra/ide that referenced this pull request Dec 29, 2020
* Fix bug in getHiFileRule

* Renamed GetHiFile to GetModIfaceFromDisk for clarity
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants