vexx32 / PSKoans

A simple, fun, and interactive way to learn the PowerShell language through Pester unit testing.
GNU General Public License v3.0
1.73k stars 176 forks source link

Supplying -Topic With Measure-Karma -Meditate doesn't open in IDE #422

Open Manbearpiet opened 4 years ago

Manbearpiet commented 4 years ago

Describe "Module Bug or Issue"

I cannot use the -Topic switch when utilizing Measure-Karma

Context "The Problem"

Measure-Karma -Meditate -Topic AboutNumbers
(nothing happens)
Measure-Karma -Meditate -Topic AboutNumbers -Debug
(nothing happens)
Measure-Karma -Meditate -Topic AboutNumbers -Verbose
VERBOSE: Sorting koans...
VERBOSE: Checking existence of koans folder
VERBOSE: Koan files retrieved: 1
VERBOSE: Counting koans...
VERBOSE: Parsing koan files from []
VERBOSE: Total Koans: 5
VERBOSE: Testing karma with file [C:\Users\user\PSKoans\Introduction\AboutNumbers.Koans.ps1]
VERBOSE: Populating RepositorySourceLocation property for module PSKoans.
VERBOSE: Populating RepositorySourceLocation property for module PSKoans.
VERBOSE: Karma: 5
VERBOSE: Checking existence of koans folder

Measure-Karma -Meditate -Topic AboutBooleans
(nothing happens)
 Measure-Karma -Meditate -Topic AboutBooleans -Verbose
VERBOSE: Sorting koans...
VERBOSE: Checking existence of koans folder
VERBOSE: Koan files retrieved: 1
VERBOSE: Counting koans...
VERBOSE: Parsing koan files from []
VERBOSE: Total Koans: 6
VERBOSE: Testing karma with file [C:\Users\user\PSKoans\Introduction\AboutBooleans.Koans.ps1]
VERBOSE: Populating RepositorySourceLocation property for module PSKoans.
VERBOSE: Populating RepositorySourceLocation property for module PSKoans.
VERBOSE: Karma: 6
VERBOSE: Checking existence of koans folder

I tried manually updating with Update-PSKoan.

Context "Expected Behavior"

I expect it to open the specific koan-file like it used to.

Context "Additional Information"

Name    Version
----    -------
PSKoans 0.67.1
PSKoans 0.67.0

Name                           Value
----                           -----
PSVersion                      7.1.0
PSEdition                      Core
GitCommitId                    7.1.0
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

This does work code C:\Users\user\PSKoans\Introduction\AboutNumbers.Koans.ps1

vexx32 commented 4 years ago
VERBOSE: Checking existence of koans folder
VERBOSE: Koan files retrieved: 1
VERBOSE: Counting koans...
VERBOSE: Parsing koan files from []
VERBOSE: Total Koans: 5

This bit is very odd. It finds a file, somehow forgets / misplaces the filename, and then proceeds to count koans instead of opening the file.

Definitely something to look into, thanks!