-
Notifications
You must be signed in to change notification settings - Fork 122
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
Missing source context for incompatible type definitions #853
Comments
I've improved this case to:
|
That's very helpful! I ran into this vague error before several times when working on Q for the riscv model. |
Thanks! |
Should be fixed by c2fe0d4 |
Actually I think that broke things slightly. With this code (it could probably be simplified further; I haven't tried):
With the 0.18 release:
But with c2fe0d4:
(That also took me a while to track down!) I did a bit of debugging and the call stack for this failure is
In
|
If I just delete this line from
Then it actually works in both of the above test cases. I'm not sure that's correct though. |
In this code:
You get this error:
It is unfortunately missing context about where the cause of the error comes from. I had this error and the
val foo
was in a completely separate file that I didn't know about (yeah it's a bit of a mess), so figuring out the problem was quite difficult! It would be nice if the error referred to theval foo
too.The text was updated successfully, but these errors were encountered: