Skip to content

Conversation

@smarter
Copy link
Member

@smarter smarter commented May 6, 2020

Same as #8883, but really fixes #7442.

@smarter smarter changed the title sbt-dotty: Handle missing source files sbt-bridge: Handle missing source files May 6, 2020
@smarter smarter merged commit 0e5f9dd into scala:master May 7, 2020
@smarter smarter deleted the srcfile-exists branch May 7, 2020 18:40
smarter added a commit to dotty-staging/dotty that referenced this pull request May 10, 2020
The exists call introduced in scala#8883 and scala#8897 lead to a slowdown
noticeable in benchmarks. Replace them by a check on the content length,
since SourceFile caches its content this should avoid any unnecessary
IO operation. This required changing the way SourceFile handles empty
files to have it return an empty string instead of crashing.
smarter added a commit to dotty-staging/dotty that referenced this pull request May 10, 2020
The exists call introduced in scala#8883 and scala#8897 lead to a slowdown
noticeable in benchmarks. Replace them by a check on the content length,
since SourceFile caches its content this should avoid any unnecessary
IO operation. This required changing the way SourceFile handles empty
files to have it return an empty string instead of crashing.
smarter added a commit to dotty-staging/dotty that referenced this pull request Jun 1, 2020
The exists call introduced in scala#8883 and scala#8897 lead to a slowdown
noticeable in benchmarks. Replace them by a check on the content length,
since SourceFile caches its content this should avoid any unnecessary
IO operation. This required changing the way SourceFile handles empty
files to have it return an empty string instead of crashing.
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.

Crashes with NoSuchFileException when compiling from SBT project depending on Dotty

2 participants