Skip to content

Instantly share code, notes, and snippets.

[error] java.lang.ExceptionInInitializerError
[error] at lmcoursier.internal.shaded.coursier.version.Version$.apply(Version.scala:12)
[error] at lmcoursier.internal.shaded.coursier.version.Version$.<clinit>(Version.scala:81)
[error] at lmcoursier.internal.shaded.coursier.version.VersionInterval$.<clinit>(VersionInterval.scala:102)
[error] at lmcoursier.internal.shaded.coursier.version.VersionConstraint$.<clinit>(VersionConstraint.scala:149)
[error] at lmcoursier.internal.shaded.coursier.package$.<clinit>(package.scala:35)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$8(CoursierDependencyResolution.scala:146)
[error] at lmcoursier.CoursierDependencyResolution.$anonfun$adapted$1(CoursierDependencyResolution.scala:146)
[error] at scala.Option.map(Option.scala:279)
[error] at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:146)
org.json4s.DefaultWriters$W
org.json4s.Extraction$ClassInstanceBuilder$TypeHint$
org.json4s.Xml$XArray$1
org.json4s.Xml$XLeaf$1
org.json4s.Xml$XNode$1
org.json4s.Xml$XValue$1
org.json4s.native.JsonParser$Parser$ARRAY$
org.json4s.native.JsonParser$Parser$BlockMode
org.json4s.native.JsonParser$Parser$OBJECT$
org.json4s.reflect.ClassDescriptor$Score$1
import sbt.*
import sbt.Keys.*
import java.net.URLClassLoader
object OuterReference extends AutoPlugin {
override def requires = plugins.JvmPlugin
override def trigger = allRequirements
import java.nio.file.Files
import java.nio.file.Paths
import scala.concurrent.Future
import scala.jdk.StreamConverters.*
class OuterReferencesTest {
"Don't contain outer references" in Future.successful {
val classpath = scala.util.Properties.javaClassPath.split(":").filter(_.endsWith("/classes")).toList
assert(classpath.nonEmpty)
val outerReferences = classpath.flatMap {
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:210:31
[error] 210 | def targetRule = rule((2 to 4).times("x"))
[error] | ^^^^^^
[error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4)
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:220:31
[error] 220 | def targetRule = rule((2 to 4).times("x") ~ EOI)
[error] | ^^^^^^
[error] | Invalid base expression for `.times(...)`: scala.Int.to(2)(4)
[error] -- Error: sirthias/parboiled2/parboiled-core/src/test/scala/org/parboiled2/CombinatorSpec.scala:229:31
[error] 229 | def targetRule = rule((2 to max).times("x") ~ EOI)
val workaroundScalaPB2112 = {
// https://github.com/scalapb/ScalaPB/pull/2112
protocbridge.SandboxedJvmGenerator.forModule(
"scala",
protocbridge.Artifact(
"com.thesamet.scalapb",
"compilerplugin_3",
scalapb.compiler.Version.scalapbVersion
),
"scalapb.ScalaPbCodeGenerator$",
TraceValues
2
aggregate
189
allCredentials
14
allDependencies
27
allExcludeDependencies
7
[error] Failed tests:
[error] sbt.internal.librarymanagement.CustomPomParserTest
[error] Error during tests:
[error] sbt.internal.librarymanagement.FakeResolverSpecification
[error] Error: Total 18, Failed 0, Errors 2, Passed 16
[error] Error during tests:
[error] sbt.internal.parser.SbtParserErrorSpec
[error] sbt.internal.parser.NewFormatSpec
[error] stack trace is suppressed; run last lmCoursierShaded / assembly for the full output
[error] stack trace is suppressed; run last workerProj / Test / testQuick for the full output