chef / chef/mixlib-install

powershell raised setting exception

Open
#211 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.