ricardoboss / STEP

The STEP programming language
http://step-lang.dev/
MIT License
5 stars 1 forks source link

Spectre.Console stripping causes runtime failure #119

Open ricardoboss opened 11 months ago

ricardoboss commented 11 months ago

Spectre Console is unable to find the constructor for ParseCommand:

System.InvalidOperationException: Could not find a constructor for 'StepLang.CLI.Commands.ParseCommand'.
  at ConstructorInfo Spectre.Console.Cli.ReflectionActivator.GetGreediestConstructor(Type type) in /_/src/Spectre.Console.Cli/Internal/Composition/Activators.cs:123
  at Spectre.Console.Cli.ReflectionActivator..ctor(Type type) in /_/src/Spectre.Console.Cli/Internal/Composition/Activators.cs:61
  at void Spectre.Console.Cli.DefaultTypeRegistrar.Register(Type service, Type implementation) in /_/src/Spectre.Console.Cli/Internal/Composition/DefaultTypeRegistrar.cs:26
  at void Spectre.Console.Cli.TypeRegistrarExtensions.RegisterDependencies(ITypeRegistrar registrar, CommandModel model) in /_/src/Spectre.Console.Cli/Internal/Extensions/TypeRegistrarExtensions.cs:22
  at async Task<int> Spectre.Console.Cli.CommandExecutor.Execute(IConfiguration configuration, IEnumerable<string> args) in /_/src/Spectre.Console.Cli/Internal/CommandExecutor.cs:26
  at async Task<int> Spectre.Console.Cli.CommandApp.RunAsync(IEnumerable<string> args) in /_/src/Spectre.Console.Cli/CommandApp.cs:84