Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectre.Console stripping causes runtime failure #119

Closed
ricardoboss opened this issue Dec 5, 2023 · 1 comment · Fixed by #127
Closed

Spectre.Console stripping causes runtime failure #119

ricardoboss opened this issue Dec 5, 2023 · 1 comment · Fixed by #127
Labels
bug Something isn't working

Comments

@ricardoboss
Copy link
Owner

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
@ricardoboss
Copy link
Owner Author

Possibly mitigated by spectreconsole/spectre.console#955 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant