-
Notifications
You must be signed in to change notification settings - Fork 100
Closed
Milestone
Description
Brief description of your issue
When I try to make a manifest I get the error Exception has been thrown by the target of an invocation, see full errorstack below (Actual behavior)
This happens before I can input values.
Steps to reproduce
wingetcreate.exe new "https://download.advanced-ip-scanner.com/download/files/Advanced_Port_Scanner_2.5.3869.exe"
Expected behavior
Entering the prompted values
Actual behavior
wingetcreate.exe new "https://download.advanced-ip-scanner.com/download/files/Advanced_Port_Scanner_2.5.3869.exe"
Downloading and parsing: https://download.advanced-ip-scanner.com/download/files/Advanced_Port_Scanner_2.5.3869.exe...
This tool will walk you through a series of questions to help you create your package manifest.
For information about the restrictions for each field, visit https://github.com/microsoft/winget-cli/blob/master/doc/ManifestSpecv1.0.md
Press ENTER to submit the value for each question including accepting the (default) value.
Please enter values for the following fields:
The package unique identifier |e.g. Microsoft.VisualStudio|
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.IOException: The handle is invalid.
at System.ConsolePal.set_CursorVisible(Boolean value)
at System.Console.set_CursorVisible(Boolean value)
at Sharprompt.Drivers.DefaultConsoleDriver.Reset()
at Sharprompt.Drivers.DefaultConsoleDriver.Dispose()
at Sharprompt.Forms.FormRenderer.Dispose()
at Sharprompt.Forms.FormBase`1.Dispose()
at Sharprompt.Prompt.Input[T](InputOptions options)
at Microsoft.WingetCreateCLI.PromptHelper.PromptValue[T](String message, Object model, String memberName, T instance)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
at Microsoft.WingetCreateCLI.PromptHelper.PromptPropertyAndSetValue[T](Object model, String memberName, T instance, Int32 minimum, Object validationModel, String validationName
)
at Microsoft.WingetCreateCLI.Commands.NewCommand.PromptPackageIdentifier(Manifests manifests)
at Microsoft.WingetCreateCLI.Commands.NewCommand.Execute()
at Microsoft.WingetCreateCLI.Program.Main(String[] args)
Environment
Windows: Windows.Desktop v10.0.19043.1566
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0WardenHub