Skip to content

Conversation

@eed3si9n
Copy link
Member

@eed3si9n eed3si9n commented Aug 10, 2025

Fixes #8198

Problem

Plugins go missing after reload.

Solution

We need to stop caching the classpaths apparently.

Test

$ sbt --server
[info] welcome to sbt 2.0.0-SNAPSHOT (Azul Systems, Inc. Java 1.8.0_402)
[info] loading project definition from /private/tmp/repro/project
[info] set current project to repro (in build file:/private/tmp/repro/)
[info] sbt server started at local:///Users/eed3si9n/.sbt/2.0.0-SNAPSHOT/server/78eef63842a3dc7ff225/sock
[info] started sbt server
sbt:repro> compile
[success] elapsed time: 1 s, cache 50%, 6 disk cache hits, 6 onsite tasks
sbt:repro> reload
[info] welcome to sbt 2.0.0-SNAPSHOT (Azul Systems, Inc. Java 1.8.0_402)
[info] loading project definition from /private/tmp/repro/project
[info] set current project to repro (in build file:/private/tmp/repro/)
sbt:repro> compile
[success] elapsed time: 0 s, cache 100%, 12 disk cache hits
sbt:repro> plugins
In build /private/tmp/repro/:
  Enabled plugins in repro:
    sbt.plugins.CorePlugin
    sbt.plugins.DependencyTreePlugin
    sbt.plugins.Giter8TemplatePlugin
    sbt.plugins.IvyPlugin
    sbt.plugins.JUnitXmlReportPlugin
    sbt.plugins.JvmPlugin
    sbt.plugins.SemanticdbPlugin
    wartremover.WartRemover
Plugins that are loaded to the build but not enabled in any subprojects:
  sbt.ScriptedPlugin
  sbt.plugins.SbtPlugin

**Problem**
Plugins go missing after reload.

**Solution**
We need to stop caching the classpaths apparently.
@eed3si9n eed3si9n merged commit 1b056e7 into sbt:develop Aug 10, 2025
13 of 23 checks passed
@eed3si9n eed3si9n deleted the wip/fix-reload branch August 10, 2025 15:49
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

Successfully merging this pull request may close these issues.

[2.0.0-M5] java.lang.ClassNotFoundException: wartremover.WartRemover$autoImport$

1 participant