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

Implement temporary workaround for race condition in REPL #1774

Closed
wants to merge 4 commits into from

Conversation

andyleejordan
Copy link
Member

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.

@andyleejordan andyleejordan requested a review from a team April 26, 2022 19:28
Copy link
Member

@daxian-dbw daxian-dbw left a 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;
Copy link
Member Author

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?!

@andyleejordan
Copy link
Member Author

Sounds like this might be replaced by PowerShell/PSReadLine#3294 (review)

@andyleejordan
Copy link
Member Author

The temp workaround looks fine, but why are we doing this temp fix? To unblock someone in the short turn?

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.

@andyleejordan andyleejordan marked this pull request as draft April 27, 2022 18:19
@andyleejordan andyleejordan deleted the andschwa/workaround branch June 24, 2022 20:00
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.

Using the newest preview inserts " in the commandline after debug run of selected line/s
3 participants