-
Notifications
You must be signed in to change notification settings - Fork 230
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
Implement temporary workaround for race condition in REPL #1774
Conversation
b1af397
to
c1906ce
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The temp workaround looks fine, but why are we doing this temp fix? To unblock someone in the short turn?
@@ -739,6 +739,11 @@ private void DoOneRepl(CancellationToken cancellationToken) | |||
StopDebugContext(); | |||
} | |||
|
|||
if (cancellationToken.IsCancellationRequested) | |||
{ | |||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LMAO it did need this?!
Sounds like this might be replaced by PowerShell/PSReadLine#3294 (review) |
To unblock us, really. But we're on the fence. If we can fix this in the next couple days lets not, but we don't want to get blocked for more weeks on the release. |
This fixes PowerShell/vscode-powershell#3937. It is not a good fix, but it is viable for now. We've identified where the race condition is, and can effectively workaround it with a small sleep in the REPL. Our top priority is to fix up the REPL so this race doesn't occur in the first place, but that will require more invasive changes.