Skip to content

Clean up SourceFile creation and error handling #14698

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Mar 16, 2022

Allow REPL to start in presence of a file named "library".

Clean up some API for SourceFile, which unfortunately is not shared code with Scala 2.

This doesn't address what REPL does differently from scalac. Confirmed that it's not the context class loader.

Also need to concoct a test for the REPL behavior, depending on what that is.

Fixes #14664

@som-snytt som-snytt marked this pull request as ready for review March 23, 2022 00:27
Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner indeed!

@smarter smarter merged commit b1f00a7 into scala:main Apr 27, 2022
@som-snytt som-snytt deleted the issue/14664 branch April 27, 2022 17:17
@Kordyjan Kordyjan added this to the 3.2.0 milestone Aug 1, 2023
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.

Uncatched case in file existence check of SourceFile
3 participants