-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Scala.js compiler crash when using macro api #116
Comments
As indicated in the details, the bug occurs in Json macro, but the cause is that the compilation gives an invalid symbol name at first. A workaround can be added, anyway would be useful to understand by the name is not valid at first. |
Considering that w/o Scala.JS there is no issue, it doesn't seem related : https://github.com/cchantep/scalajs-bugreport/tree/without_scalajs |
A workaround is now on master (investigating why compiler with JS interop give such invalid owner name). |
Play JSON Version
2.6.5
API
scala-js
Operating System
JDK
openjdk version "1.8.0_131"
on UbuntuLibrary Dependencies
Nothing other than play-json and scala-js itself
Expected Behavior
sealed trait
hierarchy)Format
instances of the case classes by callingJson.format[Class]
respectively, and have them in the implicit scopeJson.format[Trait]
Format[Trait]
should have been created by macrosActual Behavior
Compiler crash. Additional details are available here.
Reproducible Test Case
I have a separate repo.
The text was updated successfully, but these errors were encountered: