Skip to content

Conversation

Kordyjan
Copy link
Contributor

Backports #16810

…age in worksheets in the Scala Plugin for IntelliJ IDEA

- Calling `setOut/setErr` in a concurrent environment without any synchronization (such as the Scala compile server in the Scala Plugin for IntelliJ IDEA, which is used to execute Scala 3 worksheets) can lead to unpredictable outcomes where the out/err streams are not restored properly after changing.
- This change adds a new default method `redirectOutput` which can be overriden by others to control the redirecting behavior of the REPL driver.
@Kordyjan Kordyjan added this to the 3.3.0 backports milestone Feb 17, 2023
@Kordyjan Kordyjan merged commit ebb2eb5 into scala:release-3.3.0 Feb 17, 2023
@Kordyjan Kordyjan deleted the backport-16810 branch February 17, 2023 12:20
@Kordyjan Kordyjan modified the milestones: 3.3.0 backports, 3.3.0 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.

2 participants