Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Exception during macro expansion in ZIO test with ZIO 2.0.5 #7631

@longliveenduro

Description

@longliveenduro

When I raise the ZIO version from 2.0.4 to 2.0.5 I get

[info] compiling 39 Scala sources to /home/chris/prj/toil/zio-geolocation/modules/core/target/scala-3.2.1/test-classes ...
[error] -- Error: /home/chris/prj/toil/zio-geolocation/modules/core/src/test/scala/com/tsystems/toil/geolocation/logic/google/CellHintTransformerSpec.scala:84:10 
[error] 84 |          assertTrue(
[error]    |          ^
[error]    |Exception occurred while executing macro expansion.
[error]    |java.lang.Exception: Expr cast exception: false
[error]    |of type: false
[error]    |did not conform to type: java.lang.Boolean
[error]    |
[error]    |	at scala.quoted.runtime.impl.QuotesImpl.asExprOf(QuotesImpl.scala:73)
[...]
[error] 85 |            geolocationPayload.cellTowers.toSeq.isEqualTo(
[error] 86 |              cellHintsToCellTowers.values.take(2).toSeq
[error] 87 |            ) // only the first 2 are GSM and they are the most prominent type in
[error] 88 |            // "cellHintsToCellTowers", so they are selected for the google maps payload
[error] 89 |              && geolocationPayload.considerIp == false && geolocationPayload.radioType == "gsm"
[error] 90 |          )

This keeps happening also when I only downgrade zio-test and zio-test-sbt to 2.0.4, while keeping ZIO itself to 2.0.5.
It is not present in 2.0.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions