scalacenter/bloop

Temp directory filling up with empty bloop directories

Closed this issue · 1 comments

Whenever a compilation is triggered from Metals (a lot), Bloop creates a temp directory which it never deletes.

The code responsible is here...

def newFileManager: ClassFileManager = {
new BloopClassFileManager(
Files.createTempDirectory("bloop"),
compileInputs,
compileOut,
allGeneratedRelativeClassFilePaths,
readOnlyCopyDenylist,
allInvalidatedClassFilesForProject,
allInvalidatedExtraCompileProducts,
backgroundTasksWhenNewSuccessfulAnalysis,
backgroundTasksForFailedCompilation
)
}

Could these dirs be removed post compilation?

I'm on Windows - not sure if temp on Mac/Linux behaves differently

I think they could be removed after compilation 🤔 They are removed in the original Zinc implementation. Thanks for noticing this!