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

Cannot compile Scala 3 export zio.test.Gen.* #1883

Open
chessman opened this issue Nov 28, 2022 · 3 comments
Open

Cannot compile Scala 3 export zio.test.Gen.* #1883

chessman opened this issue Nov 28, 2022 · 3 comments

Comments

@chessman
Copy link
Contributor

Bloop version: 1.5.4
Scala: 3.2.1
ZIO: 2.0.2

object A {
  export zio.test.Gen.*
}

bloop compile returns an error:

[E] [E1] test/shared/src/main/scala/zio/test/TimeVariants.scala
[E]      undefined: new com.github.ghik.silencer.silent # -1: TermRef(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,module class ghik)),object silencer),silent),<init>) at extractSemanticDB
@tgodzik
Copy link
Contributor

tgodzik commented Nov 28, 2022

Thanks for reporting! Looks like the silencer plugin interferes here? Does it work if it's disabled?

@chessman
Copy link
Contributor Author

@tgodzik It is used in ZIO, so probably it's not possible to disable it.
test/shared/src/main/scala/zio/test/TimeVariants.scala:

  import com.github.ghik.silencer.silent
  ...
  @silent("JavaConverters")
  final def zoneId(implicit trace: Trace): Gen[Any, ZoneId] =

@tgodzik
Copy link
Contributor

tgodzik commented Nov 28, 2022

Looks like a bug in semanticdb anyway, we probably need to fix it there.

As for silencer, it could probably be removed in favour of nowarn

NOTE: Scala 2.13.2 and 2.12.13 introduced https://github.com/scala/scala/pull/8373. This means that unless you're still cross compiling for Scala 2.11, this plugin is obsolete, and you should use [@nowarn](https://www.scala-lang.org/api/current/scala/annotation/nowarn.html).

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

2 participants