Skip to content

Conversation

@MaciejG604
Copy link
Contributor

@MaciejG604 MaciejG604 commented May 29, 2023

Fixes #2121

The original problem was caused by watch mode reading StdIn for ENTER and then immediately doing StdIn.read again, which stole the first character from what interactive mode should have read.

However there's another issue with watch-interactive interaction, sometimes the watch mode reruns when sources change and should no longer read StdIn, but the StdIn.read is not interruptible, so again it will steal first character from interactive mode.

The solution from this PR fixes both problems.

@MaciejG604 MaciejG604 requested review from Gedochao and lwronski May 29, 2023 14:58
@MaciejG604 MaciejG604 changed the title Fix conflicts when watch and interactive try to read StdIn, add test Fix conflicts when watch and interactive try to read StdIn May 29, 2023
@MaciejG604 MaciejG604 marked this pull request as draft May 30, 2023 07:49
@MaciejG604 MaciejG604 force-pushed the watch-interactive-bug branch 3 times, most recently from a50f070 to 71189a5 Compare May 30, 2023 09:03
@MaciejG604 MaciejG604 marked this pull request as ready for review May 30, 2023 09:06
@MaciejG604 MaciejG604 force-pushed the watch-interactive-bug branch from 71189a5 to ddd79f2 Compare May 30, 2023 09:11
@MaciejG604 MaciejG604 force-pushed the watch-interactive-bug branch 3 times, most recently from 64b0672 to 31aa3f4 Compare May 31, 2023 11:35
@MaciejG604 MaciejG604 force-pushed the watch-interactive-bug branch from 3aa2c59 to a8a1cd5 Compare May 31, 2023 14:29
Copy link
Contributor

@lwronski lwronski left a comment

Choose a reason for hiding this comment

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

LGTM

@MaciejG604 MaciejG604 merged commit e0ea928 into VirtusLab:main Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants