You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is tricky to reproduce. I think I've seen it in one of my CI builds (with scalafmt on compile) - the doc task has failed, citing missing types from the same project - but it was gone after I've restarted the build. I'm fairly certain that the reason is as follows.
At the moment, Scalafmt is wired into the compile / compileInputs task, which relies on client / Compile / sources:
This means that we can have client / Compile / doc and scalafmtDoFormatOnCompile running in parallel. If formatting changes the sources (in my case that was caused by Windows line endings), client / Compile / doc can observe partially regenerated sources, which is problematic.
I suggest we wire formatting directly into Compile / sources instead.
The text was updated successfully, but these errors were encountered:
nigredo-tori
added a commit
to nigredo-tori/sbt-scalafmt
that referenced
this issue
Apr 10, 2020
This one is tricky to reproduce. I think I've seen it in one of my CI builds (with scalafmt on compile) - the
doc
task has failed, citing missing types from the same project - but it was gone after I've restarted the build. I'm fairly certain that the reason is as follows.At the moment, Scalafmt is wired into the
compile / compileInputs
task, which relies onclient / Compile / sources
:However, the Scaladoc build (the
Compile / doc
task) directly usesCompile / sources
instead:This means that we can have
client / Compile / doc
andscalafmtDoFormatOnCompile
running in parallel. If formatting changes the sources (in my case that was caused by Windows line endings),client / Compile / doc
can observe partially regenerated sources, which is problematic.I suggest we wire formatting directly into
Compile / sources
instead.The text was updated successfully, but these errors were encountered: