PowerShell / PowerShell/PowerShellEditorServices
Verify the main runspace reset method in the PSES pipeline thread consumer
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 767
- Forks
- 266
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
We have a kind of primitive stab at a method to clean up a faulty runspace state in the PSES pipeline thread consumer here:
We need to induce a fault and see if this works as expected, as well as ensure it doesn't run at other times...
My suspicion is that it will need some refinement and could have some significant bugs in it. But it's currently a corner case and a worse-case scenario handler anyway (if it didn't exist, we are essentially crashed).
So we need to investigate this and see how we can improve:
- detection of bad runspace state
- restoration of good runspace state
- how our threading mechanisms work in this scenario...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/PowerShellEditorServices/Services/PowerShell/Host/PsesInternalHost.cs around lines 784-826, then trace the pipeline thread consumer and its runspace state handling. Induce the faulty runspace condition described in the issue and verify detection, restoration, and that the reset does not run during normal operation; done means the behavior is confirmed or the needed refinements are documented and tested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100