-
Notifications
You must be signed in to change notification settings - Fork 17
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
Compile fails in Scala 2.11.7 project #6
Comments
Well, if there is an assertion error during compilation, that either means there is a bug in the Scala compiler, or the bytecode of UndoFX is somehow malformed (which is less likely because Java compiler seems to work with it just fine). I would try Scala 2.12.0-M3 and if it still fails, try reporting it to the Scala team. |
I've tried it on 2.12.0-M3, and the bug still appears. As you've suggested, I've filed an issue to the Scala issue tracker here: https://issues.scala-lang.org/browse/SI-9543 |
👍 |
As I've noted in the comment in the Scala language issue, introducing a type parameter to the method call instead of letting Scala infer it allows the code to compile. That is, specifying what On a related note, SAM conversion doesn't work for the new method signature in 1.2 as well. Hopefully, this information is useful to someone working with UndoFX in Scala. |
I'm using Scala 2.11.7 with UndoFX in my project, and when I try to compile, the compile fails with
assertion failed: TVar<?0=null>
.This only happens with UndoFX 1.2, and it was fine before on UndoFX 1.1.1, and the only changes I've made are to comply with 1.2's new interface. I've even changed from using SAM conversion to instantiate the undo manager to anonymous classes, and the failure still takes place. Even a stacktrace simply spits out internal Scala compiler errors, so I can't quite debug what's causing the error.
My build tool is Gradle 2.7, if it means anything.
I've also tried this on a fresh Gradle Scala project, and the same error results.
This is the sample code for the fresh project that fails to compile:
The text was updated successfully, but these errors were encountered: