Skip to content
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

Compilation often fails with error #189

Open
vaIgarashi opened this issue Oct 20, 2022 · 0 comments
Open

Compilation often fails with error #189

vaIgarashi opened this issue Oct 20, 2022 · 0 comments

Comments

@vaIgarashi
Copy link

vaIgarashi commented Oct 20, 2022

When we run our build pipeline in CI compilation may fail. This started to happen more often when we got more slower agent. Can happen 2-3 times in a row.

sbt: com.tethys-json:tethys-core_2.13:0.25.0:jar
sbt: com.tethys-json:tethys-derivation_2.13:0.24.0:jar
sbt: com.tethys-json:tethys-enumeratum_2.13:0.24.0:jar
sbt: com.tethys-json:tethys-jackson_2.13:0.25.0:jar
[error] java.lang.AssertionError: assertion failed: 
[error]   tethys package tethys <none>
[error]      while compiling: <no file>
[error]         during phase: globalPhase=<no phase>, enteringPhase=typer
[error]      library version: version 2.13.8
[error]     compiler version: version 2.13.8
[error]   reconstructed args: 
[error] 
[error]   last tree to typer: EmptyTree
[error]        tree position: <unknown>
[error]             tree tpe: <notype>
[error]               symbol: null
[error]            call site: package <root> in <none>
[error] 
[error] == Source file context for tree position ==
[error] 
[error] 
[error] 	at scala.reflect.internal.SymbolTable.throwAssertionError(SymbolTable.scala:171)
[error] 	at scala.reflect.internal.Importers$StandardImporter.$anonfun$importSymbol$6(Importers.scala:209)
[error] 	at scala.reflect.internal.Symbols$Symbol.orElse(Symbols.scala:2646)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreateOrRelink$1(Importers.scala:206)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:223)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreatedTreeCompleter(Importers.scala:312)
[error] 	at scala.reflect.internal.Importers$StandardImporter.$anonfun$importTree$1(Importers.scala:432)
[error] 	at scala.reflect.internal.Importers$StandardImporter.tryFixup(Importers.scala:61)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:433)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:397)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:430)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:397)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:430)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:397)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:430)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:397)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:430)
[error] 	at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:388)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:430)
[error] 	at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:41)
[error] 	at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.$anonfun$compile$13(ToolBoxFactory.scala:442)
[error] 	at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.apply(ToolBoxFactory.scala:371)
[error] 	at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.compile(ToolBoxFactory.scala:438)
[error] 	at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.eval(ToolBoxFactory.scala:460)
[error] 	at scala.reflect.macros.contexts.Evals.eval(Evals.scala:32)
[error] 	at scala.reflect.macros.contexts.Evals.eval$(Evals.scala:26)
[error] 	at scala.reflect.macros.contexts.Context.eval(Context.scala:18)
[error] 	at tethys.derivation.impl.derivation.ReaderDerivation.$anonfun$deriveReader$2(ReaderDerivation.scala:73)
[error] 	at scala.util.Failure.getOrElse(Try.scala:219)
[error] 	at tethys.derivation.impl.derivation.ReaderDerivation.deriveReader(ReaderDerivation.scala:73)
[error] 	at tethys.derivation.impl.derivation.ReaderDerivation.deriveReader$(ReaderDerivation.scala:70)
[error] 	at tethys.derivation.impl.derivation.SemiautoDerivationMacro.deriveReader(SemiautoDerivationMacro.scala:9)
[error] 	at tethys.derivation.impl.derivation.SemiautoDerivationMacro.jsonReaderWithConfig(SemiautoDerivationMacro.scala:77)
[error]     jsonReader[Foo](ReaderDerivationConfig.withFieldStyle(FieldStyle.lowerSnakecase))
  implicit val fooJsonReader: JsonReader[Foo] =
    jsonReader[Foo](ReaderDerivationConfig.withFieldStyle(FieldStyle.lowerSnakecase))

case class Foo(
    a: BigDecimal,
    b: BigDecimal,
    c: Option[BigDecimal],
    d: Option[BigDecimal],
    e: Option[OffsetDateTime],
    f: Option[OffsetDateTime],
    g: Option[BigDecimal],
    h: String,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant