JustinGrote / PowerPrompt

Yet another prompt theme module. Trying to take the magic of Oh-My-Posh, Pansies, Powerline and make them cross-platform compatible
MIT License
7 stars 0 forks source link

PromptBuilder class is not packaged in the module #1

Open glennsarti opened 4 years ago

glennsarti commented 4 years ago

After running Invoke-Build the build output is succesful but the New-PowerPromptBuilder function errors with:

Unable to find type [PromptBuilder].
At C:\Source\tmp\PowerPrompt\BuildOutput\PowerPrompt\0.2.0\PowerPrompt.psm1:604 char:12
+     return [PromptBuilder]::new()
+            ~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (PromptBuilder:TypeName) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound

Looking at the built module, it appears that the classes are not appended into the PowerPrompt.psm1 file, so that can't be loaded.

JustinGrote commented 4 years ago

Thanks for submitting! It's still a draft work in progress, did you download the module from powershell gallery?

On Tue, Jan 7, 2020, 12:33 AM Glenn Sarti notifications@github.com wrote:

After running Invoke-Build the build output is succesful but the New-PowerPromptBuilder function errors with:

Unable to find type [PromptBuilder]. At C:\Source\tmp\PowerPrompt\BuildOutput\PowerPrompt\0.2.0\PowerPrompt.psm1:604 char:12

  • return [PromptBuilder]::new()
  • CategoryInfo : InvalidOperation: (PromptBuilder:TypeName) [], RuntimeException
  • FullyQualifiedErrorId : TypeNotFound

Looking at the built module, it appears that the classes are not appended into the PowerPrompt.psm1 file, so that can't be loaded.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JustinGrote/PowerPrompt/issues/1?email_source=notifications&email_token=ADUNKUW5LXDTYEHDZHQWRLTQ4QHZDA5CNFSM4KDR6LY2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEMU4UA, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUNKUVSIXCWRK3WWP52YFDQ4QHZDANCNFSM4KDR6LYQ .

glennsarti commented 4 years ago

Hi @JustinGrote . I was inspired by your Portland PowerShell User Group talk so I started using PowerPrompt.

I didn't see it on the Gallery. And searching under your name, it's not listed (https://www.powershellgallery.com/profiles/JustinGrote)

Search for powerprompt returned 0 packages

For my issue, I was building from source. I figured it's a Work-In-Progress due to https://github.com/JustinGrote/PowerPrompt/blob/91b6887387c2a43cf4fa940d4ea2c8de36c06057/Tests/zDefaultTheme.Tests.ps1#L7

JustinGrote commented 4 years ago

@glennsarti Oh yeah still work in progress, it works "for me" but it's not ready for prime time.When a prerelease version will be available on gallery I'll close this comment and notify you. In the meantime, I can recommend oh-my-posh (thought it is slow and that's what I'm trying to fix)

Thanks for your interest!