Skip to content
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

Avoid stale import context during REPL parsing #14493

Merged
merged 1 commit into from Feb 16, 2022
Merged

Conversation

griggt
Copy link
Collaborator

@griggt griggt commented Feb 15, 2022

Fixes #14491

Comment on lines +278 to +280
val newStateWithImports = newState.copy(
imports = allImports,
context = contextWithNewImports(newState.context, newImports)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm on the fence as to whether this is the appropriate place to fix this.

@griggt griggt marked this pull request as ready for review February 16, 2022 00:57
@griggt griggt requested a review from dwijnand February 16, 2022 00:59
Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Thanks for the fix!

@dwijnand dwijnand merged commit 594043f into scala:main Feb 16, 2022
@griggt griggt deleted the fix-14491 branch February 16, 2022 15:37
@Kordyjan Kordyjan added this to the 3.1.3 milestone Aug 2, 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.

Strange behaviour in repl when using fewerBraces, first it does not work then it does
3 participants