Using the non-jvm versions of fpp (i.e., those shipped with F Prime), fpp-to-json errors out when the fpp file contains a boolean constant.
fpp-to-json
module M {
constant a = true
}
The resulting error looks like:
Exception in thread "main" java.lang.ExceptionInInitializerError
at fpp.compiler.codegen.AstJsonEncoder$$anon$11.elemEncoders(AstJsonEncoder.scala:29)
at io.circe.DerivedEncoder.encodeWith(Derivation.scala:237)
at io.circe.DerivedEncoder.encodeWith$(Derivation.scala:233)
at fpp.compiler.codegen.AstJsonEncoder$$anon$11.encodeWith(AstJsonEncoder.scala:46)
...
Caused by: java.lang.NoSuchFieldException: 0bitmap$12
at java.base@11.0.17/java.lang.Class.getDeclaredField(DynamicHub.java:961)
at scala.runtime.LazyVals$.getOffset(LazyVals.scala:103)
...
Using the non-jvm versions of fpp (i.e., those shipped with F Prime),
fpp-to-json
errors out when the fpp file contains a boolean constant.The resulting error looks like: