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

Koan AboutSelectObject has undesired error #444

Open
peetrike opened this issue May 12, 2021 · 0 comments · May be fixed by #445
Open

Koan AboutSelectObject has undesired error #444

peetrike opened this issue May 12, 2021 · 0 comments · May be fixed by #445
Labels
Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it!

Comments

@peetrike
Copy link
Contributor

Describe "Koan Bug, Issue, or Help Request"

When looking at unresolved koan AboutSelectObject, the following error occurs:

Show-Karma -Topic AboutSelectObject
Invoke-Koan: C:\Program Files\WindowsPowerShell\Modules\PSKoans\0.67.1\Public\Get-Karma.ps1:111
Line |
 111 |                  $PesterTests = Invoke-Koan @{
     |                                 ~~~~~~~~~~~~~~
     | Property "____" cannot be found.

The same error occurs in PowerShell 5.1 and 7

Context "The Problematic Assertions"

The problem occurs on line

$Value = Get-Item -Path $PSHome | Select-Object -ExpandProperty $PropertyToExpand

The error can easily be avoided by ignoring error from Select-Object cmdlet

Context "Your Attempts"

Context "Additional Information"

@peetrike peetrike added Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it! labels May 12, 2021
@peetrike peetrike linked a pull request May 12, 2021 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant