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

Match error during pipelined build #857

Closed
eed3si9n opened this issue Jul 26, 2020 · 0 comments
Closed

Match error during pipelined build #857

eed3si9n opened this issue Jul 26, 2020 · 0 comments

Comments

@eed3si9n
Copy link
Member

steps

ThisBuild / usePipelining := true

(not available yet)

problem

[error] ## Exception when compiling 8 sources to /Users/eed3si9n/work/frontend/rss/target/scala-2.12/classes
[error] scala.MatchError: /Users/eed3si9n/work/frontend/common/target/scala-2.12/early/common_2.12-0.1.0-SNAPSHOT.jar(services/ConciergeRepository.sig) (of class scala.reflect.io.FileZipArchive$LeakyEntry)
[error] xsbt.API.$anonfun$registerGeneratedClasses$1(API.scala:134)
[error] xsbt.API.$anonfun$registerGeneratedClasses$1$adapted(API.scala:129)
[error] ## Exception when compiling 8 sources to /Users/eed3si9n/work/frontend/rss/target/scala-2.12/classes
[error] scala.MatchError: /Users/eed3si9n/work/frontend/common/target/scala-2.12/early/common_2.12-0.1.0-SNAPSHOT.jar(services/ConciergeRepository.sig) (of class scala.reflect.io.FileZipArchive$LeakyEntry)
[error] xsbt.API.$anonfun$registerGeneratedClasses$1(API.scala:134)
[error] xsbt.API.$anonfun$registerGeneratedClasses$1$adapted(API.scala:129)
[error] scala.collection.Iterator.foreach(Iterator.scala:943)
[error] scala.collection.Iterator.foreach$(Iterator.scala:943)
[error] scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
[error] xsbt.API.registerGeneratedClasses(API.scala:129)
[error] xsbt.API$ApiPhase.run(API.scala:38)
[error] scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501)
[error] scala.tools.nsc.Global$Run.compileUnits(Global.scala:1485)
[error] scala.tools.nsc.Global$Run.compileSources(Global.scala:1478)
[error] scala.tools.nsc.Global$Run.compileFiles(Global.scala:1586)
[error] xsbt.CachedCompiler0.run(CompilerInterface.scala:159)
[error] xsbt.CachedCompiler0.run(CompilerInterface.scala:130)
[error] xsbt.CompilerInterface.run(CompilerInterface.scala:38)
[error] sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:86)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$7(MixedAnalyzingCompiler.scala:176)
[error] scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
[error] sbt.internal.inc.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:231)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$5(MixedAnalyzingCompiler.scala:167)
[error] sbt.internal.inc.MixedAnalyzingCompiler.$anonfun$compile$5$adapted(MixedAnalyzingCompiler.scala:156)
[error] sbt.internal.inc.JarUtils$.withPreviousJar(JarUtils.scala:233)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:156)
[error] sbt.internal.inc.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:184)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1(IncrementalCompilerImpl.scala:571)
[error] sbt.internal.inc.IncrementalCompilerImpl.$anonfun$compileInternal$1$adapted(IncrementalCompilerImpl.scala:571)
[error] sbt.internal.inc.Incremental$.$anonfun$apply$4(Incremental.scala:168)
[error] sbt.internal.inc.Incremental$.$anonfun$apply$4$adapted(Incremental.scala:166)
[error] sbt.internal.inc.Incremental$$anon$2.run(Incremental.scala:419)
[error] sbt.internal.inc.IncrementalCommon$CycleState.next(IncrementalCommon.scala:121)
[error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:56)
[error] sbt.internal.inc.IncrementalCommon$$anon$1.next(IncrementalCommon.scala:52)
[error] sbt.internal.inc.IncrementalCommon.cycle(IncrementalCommon.scala:288)
[error] sbt.internal.inc.Incremental$.$anonfun$incrementalCompile$11(Incremental.scala:388)
[error] sbt.internal.inc.Incremental$.withClassfileManager(Incremental.scala:459)
[error] sbt.internal.inc.Incremental$.incrementalCompile(Incremental.scala:375)
[error] sbt.internal.inc.Incremental$.apply(Incremental.scala:160)
[error] sbt.internal.inc.IncrementalCompilerImpl.compileInternal(IncrementalCompilerImpl.scala:571)

expectation

Works.

lrytz pushed a commit to lrytz/scala that referenced this issue Jul 13, 2023
Fixes sbt/zinc#857

If the symbols are not from VirtualFile, we should be able to ignore it.

Rewritten from sbt/zinc@d3141f7
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

1 participant