-
Notifications
You must be signed in to change notification settings - Fork 21
Regression in 2.13.0-M4 on Java 10: spurious "macro implementation not found" errors #10948
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
Comments
I followed the given reproduction steps and there was no error. transcript: https://gist.github.com/SethTisue/5e2cd519592c2bbc197a3e06e94e5ccc |
One thing that's missing from the instructions is |
Cannot reproduce it either, so I'm closing this. @holograph could you try again on your side, maybe with a |
I'm trying to reproduce this properly, will follow up |
@lrytz @SethTisue This appears to be a regression with later JDKs. Specifically, the error occurs with JDK 10.0.1 but NOT with JDK 1.8.0_171:
Followed by:
|
Thanks! I can reproduce the crash on Java 10 with 2.13.0-M4. Java 10 and 2.12.6 works. |
curious if Java 9 is affected too. this is a nice reminder that we need a Java 10 community build |
This is fixed by scala/scala#6695 (re-merging fix for scala/scala-dev#480 after it was accidentally dropped during a forward merge.) |
This happens with Scala 2.13.0-M4 on Java 10 (works with 2.12.6 on Java 10), and can be reproduced by:
git clone git@github.com:scalamacros/resetallattrs.git
git checkout scala-2.13.0-M4
sbt ++2.13.0-M4 test
Expected result: correct compilation and execution of tests.
Actual result (edited for brevity):
The same code compiles fine on 2.11.x, 2.12.x and 2.13.0-M3, and the macro invocation is in a completely different project from its definition. The second error seems to indicate that a Scalactic macro fails to run as well. Is this a regression or am I missing something? (cross-referencing scalamacros/resetallattrs#12)
The text was updated successfully, but these errors were encountered: