This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala "3.7.2" | |
//> using dep "dev.zio::zio:2.1.20" | |
//> using dep "dev.zio::zio-prelude:1.0.0-RC41" | |
import zio.* | |
import zio.prelude.* | |
object Main extends ZIOAppDefault: | |
val taskA: Task[Int] = ZIO.succeed(42).delay(500.millis).tap(x => zio.Console.printLine(x.toString)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using option -Xsource:3 | |
import scala.language.implicitConversions | |
case class ValueIdx(idx: Int) extends AnyVal | |
object ValueIdx { | |
implicit def asInt(v: ValueIdx): Int = v.idx | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.5.6:compile (default) on project scalafix-maven-plugin_2.11: wrap: java.lang.reflect.InvocationTargetException: javax/tools/DiagnosticListener: javax.tools.DiagnosticListener -> [Help 1] | |
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.alchim31.maven:scala-maven-plugin:4.5.6:compile (default) on project scalafix-maven-plugin_2.11: wrap: java.lang.reflect.InvocationTargetException | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) | |
at org.apache.maven.lifecycle.internal.buil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NoClassDefFoundError: scala/reflect/internal/util/ReusableInstance$ | |
at scala.tools.nsc.typechecker.Contexts.$init$ (Contexts.scala:1122) | |
at scala.tools.nsc.interactive.Global$$anon$6.<init> (Global.scala:229) | |
at scala.tools.nsc.interactive.Global.analyzer$lzycompute (Global.scala:227) | |
at scala.tools.nsc.interactive.Global.analyzer (Global.scala:227) | |
at scala.tools.nsc.interactive.Global.analyzer (Global.scala:113) | |
at scala.tools.nsc.Global.<init> (Global.scala:1001) | |
at scala.tools.nsc.interactive.Global.<init> (Global.scala:119) | |
at scalafix.internal.v1.Args.$anonfun$configuredGlobal$1 (Args.scala:383) | |
at scala.util.Try$.apply (Try.scala:213) |