-
Notifications
You must be signed in to change notification settings - Fork 93
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
compileErrors doesn't return all errors #750
Comments
I am also seeing this, in coulomb. My compiler is // this is returning empty error list
val x = compileErrors("3.withUnit[Second] * 5d.withUnit[Kilogram]")
println(s"x= $x") However if I try to compile, this errors out (as it should) val x = 3.withUnit[Second] * 5d.withUnit[Kilogram]
|
In my case this issue may be duplicate of #711 |
Looking again at this, it seems in the first case it might be an issue within the compiler, though ideally @erikerlandson was your issue fixed by using the method in #711 ? |
@tgodzik I am afraid I am not sure if I get what you mean. I guess you mean the underlying of compileErrors in the compiler is buggy right and that's way it is hard for munit to fix this. Correct? |
Actually, we were missing transient keyword, which is suggested to be used in this specific case. You can try using this method:
explicitely to see if adding the keyword helps in your case |
@tgodzik coincidentally I made a design change to what I was doing and it caused this error to stop happening to me. It must have changed the specific compiler error so that |
Ok, let us know if anything pops up again. Coming back to the initial error in this issue it seems this is caused by a bug in the compiler or might actually be on purpose. Will ask. |
So it looks like this is an actual expected behaviour as the error in |
Consider the following:
The text was updated successfully, but these errors were encountered: