Conversation
Garrett-Thomas
commented
Jul 28, 2026
Comment on lines
+20
to
+29
| import sbt.internal.inc.{CompileOutput, PlainVirtualFile, PlainVirtualFileConverter, ZincUtil} | ||
| import sbt.internal.inc.classfile.analyzeJavaClasses | ||
| import sbt.internal.inc.classpath.ClassLoaderCache | ||
| import sbt.internal.inc.javac.{DiagnosticsReporter, DirectoryClassFinder} | ||
| import sbt.internal.inc.{CompileOutput, PlainVirtualFile, PlainVirtualFileConverter, ZincUtil} | ||
| import sbt.internal.util.LoggerWriter | ||
| import scala.collection.View | ||
| import scala.jdk.CollectionConverters.* | ||
| import scala.util.control.NonFatal | ||
| import xsbti.compile.{DependencyChanges, ScalaInstance} | ||
| import xsbti.{AnalysisCallback, AnalysisCallback3, CompileFailed, Logger, Reporter, VirtualFile, VirtualFileRef} | ||
| import xsbti.compile.{DependencyChanges, ScalaInstance} |
jjudd
self-requested a review
July 29, 2026 04:35
jjudd
approved these changes
Jul 29, 2026
jjudd
left a comment
There was a problem hiding this comment.
Thanks for doing this and for making the directory deletion more robust. I spent some time poking at this PR and it LGTM.
I'll merge this and include it in the release I intend to cut tomorrow after merging my PR. I'll get this to the monorepo tomorrow with the PR I've got open over there.
|
Thanks for doing this! I probably would've left a more detailed comment explaining why the temporary directory needs to be where it is to prevent the bug we were seeing, but otherwise, this looks good to me! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What:
/bazel-out/x86/target/tmp/<source>.workis wrapped inside a try finally so that the folder is always deleted.Why:
Testing: