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

Add test for th link failure - #853

Merged
pepeiborra merged 1 commit into
haskell:masterfrom
wz1000:th-link
Oct 9, 2020
Merged

pepeiborra merged 1 commit into
haskell:masterfrom
wz1000:th-link

Conversation

@wz1000

@wz1000 wz1000 commented Oct 7, 2020

Copy link
Copy Markdown
Collaborator

No description provided.

@pepeiborra pepeiborra left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We really need to unfail this test before release.

@wz1000

wz1000 commented Oct 8, 2020 •

Copy link
Copy Markdown
Collaborator Author

I won't have any time to look at this any further before next weekend.

Swapping over to bytecode should fix it, along with calling unload before typechecking.

To swap over to bytecode, the changes in Compile.hs from dc8526a should be enough

For the call to unload, see wz1000@39d3fff from https://github.com/wz1000/ghcide/tree/reload-th
If we are using bytecode, we don't need to call unloadObj. However, the implementation could be better, by figuring out which modules are "stable", so don't need to be unloaded.

The other commit in the reload-th branch is also needed for the correctness of recompilation checking. It does need to be adapted for bytecode though.

Note that I can reproduce the test failure from this PR even before we started using object code. (Indeed, I believe the root cause of #672 is the same as the root cause of this)

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.

2 participants