Skip to content

Crash when intellisense is requested before PSIC is finished initializing #759

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

Open
SeeminglyScience opened this issue Oct 3, 2018 · 2 comments
Assignees
Labels

Comments

@SeeminglyScience
Copy link
Collaborator

Repro steps

  1. Have the 2.0.0 preview build
  2. Put Start-Sleep 5 in your $profile (or just have a really poorly optimized profile like myself)
  3. Restart the PSIC and type in the editor

PowerShellContext should delay InvokeOnPipelineThread requests until initialization is completed.

@rjmholt
Copy link
Contributor

rjmholt commented Oct 15, 2018

Ok I've been trying to get a proper debug repro of this, but getting the debugger attached prevents the race condition that causes the problem.

@SeeminglyScience I feel like you've got a pretty good idea for what's causing this, so I might let you handle it if that's alright.

@rjmholt
Copy link
Contributor

rjmholt commented Oct 15, 2018

I should mention that I did see it coming from ForcePSEventHandling() in one case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants