zinc icon indicating copy to clipboard operation
zinc copied to clipboard

This line seems to contain a bug: if classpathEntry turns out to be a directory, this comparison unsurprisingly always fails:

Open eed3si9n opened this issue 3 years ago • 3 comments

original description

    This line seems to contain a bug: if classpathEntry turns out to be a directory, this comparison unsurprisingly always fails:
Invalidating '.../build/classes/scala/main/.../Foo.class' because
 .../build/classes/scala/main/....class (farm(77c283a23fed88f2)) != .../build/classes/scala/main (absent)
                                                                         ^^^ RHS is a ***directory***.

The resolve step was completely dropped in this PR.

Originally posted by @mernst-github in https://github.com/sbt/zinc/pull/712#discussion_r1002970496

eed3si9n avatar Oct 24 '22 20:10 eed3si9n

We are facing productivity issues in a gradle multi-project repo with several small gradle subprojects with the plugin java-library applied. @mernst-github @tgodzik, would you know a workaround for this? Would a zinc downgrade help?

tnielens-centrica avatar Jul 01 '24 14:07 tnielens-centrica

Try enabling https://github.com/sbt/zinc/blob/develop/internal/zinc-core/src/main/scala/sbt/internal/inc/IncrementalCommon.scala#L46 in the compileScala.scalaCompileOptions.forkOptions.

mernst-github avatar Jul 01 '24 14:07 mernst-github

Seems to be working for us. Thanks 🙏

tnielens-centrica avatar Jul 01 '24 14:07 tnielens-centrica