-
Notifications
You must be signed in to change notification settings - Fork 502
Don't use the Module(...) constructor to create a module #2683
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
Conversation
It looks like |
fingolfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sounds like a good idea to me, but the test failures seem concerning :-(
|
Yeah, not sure why the tests failed, but they magically turned green on the last commit. Might have been an intermittent thing, we'll see now I suppose |
|
It turned green because you left no code changes in :-). I.e. this PR now only modifies the CHANGELOG (resulting in a merge conflict...) |
|
Ah no! I thought that would revert the commit, not the file 😅 |
|
Hmm, it looks like wrapping here somehow changed printing for errors and vectors? Maybe it's the module declaration bringing in Base? A lot of the errors seem fine to me, some are concerning though. |
5dc65ec to
10866f7
Compare
|
I took the liberty of squashing this into one commit, resolving the CHANGELOG problem, and applying runic. Let's see what the tests say now. |
69249bd to
ede120b
Compare
|
More weirdness in the log are these warnings: |
ede120b to
71ee44e
Compare
208e520 to
5695843
Compare
|
With PR #2804 things are much less confusing, and one can see what the actual issue(s) with this PR is/re. It seems this is one: So before that, the custom |
|
Ah interesting! But yeah I would not have expected that to be the case, especially since we are eval'ing in to the module with Thanks for the effort getting this PR back into shape, by the way! |
|
So it turns out we were in fact not using invokelatest, let's see if that helps any in CI. I noticed you added the changes from #2804 here as well, which should make CI output much nicer to look at. But maybe invokelatest won't help at all if this is some more bizarre issue. The path at least looks correct to me. |
|
I don't think Note how it is looking for the file in So we need to declare a custom |
1bbd0ef to
fb69a5b
Compare
|
Awesome! Looks like all CI is passing with that change. Since the invokelatest was reverted I'd say this is ready to go! |
fingolfin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now :-)
|
LGTM, thank you! |
On the advice of the compiler team, we should step away from using the
Module(name)constructor and instead eval in a module via an Expr.This simply changes the way that happens. Fortunately we have the module GC code already so that should flag us if something is going wrong.
This currently evals the module to Main, but there's no reason it couldn't eval to somewhere else.