Skip to content

Commit

Permalink
Comment out cleanEvalClasses
Browse files Browse the repository at this point in the history
**Problem**
reload currently causes NoClassDefFoundError.

**Solution**
Comment out cleanEvalClasses.
  • Loading branch information
eed3si9n committed Sep 13, 2024
1 parent 1cb3105 commit a58950e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main/src/main/scala/sbt/internal/Load.scala
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,11 @@ private[sbt] object Load {
defaultProjects.generatedConfigClassFiles ++ loadedProjectsRaw.generatedConfigClassFiles
)
}
// Now we clean stale class files.
// TODO - this may cause issues with multiple sbt clients, but that should be deprecated pending sbt-server anyway
timed("Load.loadUnit: cleanEvalClasses", log) {
cleanEvalClasses(defDir, keepClassFiles)
}
// TODO: Uncomment when we fixed https://github.com/sbt/sbt/issues/7424
// likely keepClassFiles isn't covering enough.
// timed("Load.loadUnit: cleanEvalClasses", log) {
// cleanEvalClasses(defDir, keepClassFiles)
// }
val defs = if (defsScala.isEmpty) defaultBuildIfNone :: Nil else defsScala
// HERE we pull out the defined vals from memoSettings and unify them all so
// we can use them later.
Expand Down

0 comments on commit a58950e

Please sign in to comment.