-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Macro defined modules vs direct loading of types using it #11740
base: development
Are you sure you want to change the base?
Conversation
@Simn any idea how this could be handled? |
Could you describe the actual problem? I can't really make it out from looking at that test. |
Flushing between each Edit: only test failure detected so far:
Might not be a problem, but would need to double check there |
"Normal" typing order:
But when adding
|
I can't immediately tell what the difference is between referencing |
Difference is each of those types referenced in command line / display files / main are loaded without flushing there: Line 311 in b537e99
So build macros don't happen early enough |
This does trigger the issue too indeed |
Flushing what exactly, and where does that normally occur? |
Doing a
|
I found another way to trigger this issue in a shiro project, basically with
I don't have a minimal repro yet to add as test; ideas would be appreciated 😅 |
But why was it 3 before?
@Simn can we merge this? It can happen easily with multi file diagnostics :/ |
It's unlikely to be a good fix because it doesn't address the |
Right. I don't know why I thought the typedef situation was expected |
Edit:
|
While this looks like a very edge case / weird usage, this actually is easy to trigger in real use case because of diagnostics triggering similar behavior to
compile2.hxml
.Not sure yet how to handle that, just pushing the repro for now..