mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 19:05:53 +02:00
Merge pull request #1923 from benjyw/analysis_mismatch_debug_logging
Warn when ignoring previous analysis for various reasons.
This commit is contained in:
@@ -149,9 +149,12 @@ class AggressiveCompile(cacheFile: File) {
|
||||
// previous Analysis completely and start with empty Analysis object
|
||||
// that supports the particular value of the `nameHashing` flag.
|
||||
// Otherwise we'll be getting UnsupportedOperationExceptions
|
||||
log.warn("Ignoring previous analysis due to incompatible nameHashing setting.")
|
||||
Analysis.empty(currentSetup.nameHashing)
|
||||
case Some(previous) if equiv.equiv(previous, currentSetup) => previousAnalysis
|
||||
case _ => Incremental.prune(sourcesSet, previousAnalysis)
|
||||
case _ =>
|
||||
log.warn("Pruning sources from previous analysis, due to incompatible CompileSetup.")
|
||||
Incremental.prune(sourcesSet, previousAnalysis)
|
||||
}
|
||||
IncrementalCompile(sourcesSet, entry, compile0, analysis, getAnalysis, output, log, incOptions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user