powershell raised setting exception
Open
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 13
- Forks
- 55
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 8
Description
This change:
https://github.com/chef/mixlib-install/commit/5ebb213756532c56435a894060696de9f533bee9
Displays this error on every install.ps1 execution:
`Exception setting "OutputEncoding": "The handle is invalid.
"
At line:2 char:1
+ [Console]::OutputEncoding = New-Object -typename System.Text.ASCIIEnc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
+ FullyQualifiedErrorId : ExceptionWhenSetting
ModuleType Version Name ExportedCommands
@rhass Could you remind me where we encountered this error initially?
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 by reviewing commit 5ebb213756532c56435a894060696de9f533bee9 and the install.ps1 execution path mentioned in the report. Reproduce the OutputEncoding exception in PowerShell and identify the intended behavior; the issue is complete when install.ps1 no longer emits this exception on execution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100