tek / splain

better implicit errors for scala
MIT License
370 stars 29 forks source link

Splain conflicting with paradise 3.0.0-M10 #14

Closed leonjones1974 closed 3 years ago

leonjones1974 commented 6 years ago

Great plugin - it has helped me a load. Unfortunately it has stopped working since I introduced v3 of the paradise plugin

Scala version

Config 1

Causes macro expansion to fail with: "macro annotation could not be expanded (the most common reason for that is that you need to enable the macro paradise plugin; another possibility is that you try to use macro annotation in the same compilation run that defines it)"

 .settings(addCompilerPlugin("org.scalameta" % "paradise" % "3.0.0-M10" cross CrossVersion.full))
 .settings(addCompilerPlugin("io.tryp" % "splain" % "0.2.7" cross CrossVersion.patch))

Config 2

Macro expansion works but I'm back to the standard implicit failure output when something cannot be summoned

  .settings(addCompilerPlugin("io.tryp" % "splain" % "0.2.7" cross CrossVersion.patch))
  .settings(addCompilerPlugin("org.scalameta" % "paradise" % "3.0.0-M10" cross CrossVersion.full))
tek commented 6 years ago

see https://github.com/tek/splain/issues/4. this is sort of nondeterministic, maybe try shaking up your build config :)

kubukoz commented 5 years ago

scalameta paradise is deprecated, don't use it ;)

tek commented 3 years ago

fixed by https://github.com/scala/scala/pull/7785