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

Problem in koan AboutModules #441

Closed
peetrike opened this issue May 3, 2021 · 0 comments · Fixed by #442
Closed

Problem in koan AboutModules #441

peetrike opened this issue May 3, 2021 · 0 comments · Fixed by #442
Labels
Category-Koans Invoking the Great Doubt Issue-Bug 🐛 Something's wrong! Up For Grabs / Hacktoberfest 💻 If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it.

Comments

@peetrike
Copy link
Contributor

peetrike commented May 3, 2021

Describe "Koan Bug, Issue, or Help Request"

When solving koan AboutModules, the next error appears

Show-Karma -Topic AboutModules
Invoke-Koan : No modules were removed. Verify that the specification of modules to remove is correct and those modules
exist in the runspace.
At C:\Program Files\WindowsPowerShell\Modules\PSKoans\0.67.1\Public\Get-Karma.ps1:111 char:32
+                 $PesterTests = Invoke-Koan @{
+                                ~~~~~~~~~~~~~~

The same error appears both with PowerShell 7 and 5.1

Context "The Problematic Assertions"

Context "Your Attempts"

The following code line causes the problem:

Remove-Module -Name 'PSKoans_TestModule'

Adding there -ErrorAction SilentlyContinue hides the problem. The alternate resolution could be following code:

$Module | Remove-Module

Context "Additional Information"

@peetrike peetrike added Category-Koans Invoking the Great Doubt Issue-Discussion Let's talk about it! labels May 3, 2021
@vexx32 vexx32 added Issue-Bug 🐛 Something's wrong! Up For Grabs / Hacktoberfest 💻 If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it. and removed Issue-Discussion Let's talk about it! labels May 3, 2021
peetrike added a commit to peetrike/PSKoans that referenced this issue May 3, 2021
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-Bug 🐛 Something's wrong! Up For Grabs / Hacktoberfest 💻 If it's Up For Grabs, take it and run with it! If not, ask if it's in progress / you can take it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants