PSKoans icon indicating copy to clipboard operation
PSKoans copied to clipboard

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

Open Manbearpiet opened this issue 5 years ago • 1 comments

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

Manbearpiet avatar Nov 24 '20 14:11 Manbearpiet

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!

vexx32 avatar Nov 24 '20 15:11 vexx32