-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Repro script:
Start-Job -Name 'Flancy' -ScriptBlock {
Import-Module -Name 'Flancy' -ErrorAction Stop
New-Flancy -WebSchema @{
Method = 'Get'
Path= '/'
Script = {'Hello, world!'}
}
}
Wait-Job -Name 'Flancy' | Receive-Job
Output:
PS > .\Flancy-AsJob.ps1
Id Name PSJobTypeName State HasMoreData Location Command
-- ---- ------------- ----- ----------- -------- -------
2 Flancy BackgroundJob Running True localhost ...
Exception calling ".ctor" with "1" argument(s): "Unable to resolve type: Nancy.ViewEngines.ViewEngineApplicationStartup"
+ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException
+ FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
+ PSComputerName : localhost
You cannot call a method on a null-valued expression.
At .\flancy\flancy.psm1:395 char:9
+ $flancy.start()
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
PowerShell version:
Name : Windows PowerShell ISE Host
Version : 5.0.10018.0
InstanceId : 03eac871-dcbd-4e6a-8c7c-b5c018dbcda8
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : ru-RU
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.Host.ISE.ISEOptions
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
This doesn't happen with this version of Flancy.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels