You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSharpier crashes with the following stack trace when run with an empty .csharpierrc.yaml:
$ dotnet tool run dotnet-csharpier .
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
at CSharpier.ConfigurationFileOptions.CreatePrinterOptions(String baseDirectoryPath, IFileSystem fileSystem) in /home/runner/work/csha
rpier/csharpier/Src/CSharpier/ConfigurationFileOptions.cs:line 27
at CSharpier.CommandLineFormatter.<>c__DisplayClass9_0.<<Format>g__CreateFormatter|0>d.MoveNext() in /home/runner/work/csharpier/cshar
pier/Src/CSharpier/CommandLineFormatter.cs:line 69
--- End of stack trace from previous location ---
at CSharpier.CommandLineFormatter.Format(CommandLineOptions commandLineOptions, IFileSystem fileSystem, IConsole console, Cancellation
Token cancellationToken) in /home/runner/work/csharpier/csharpier/Src/CSharpier/CommandLineFormatter.cs:line 118
at CSharpier.Program.Run(String[] directoryOrFile, Boolean check, Boolean fast, Boolean skipWrite, Boolean writeStdout, CancellationTo
ken cancellationToken) in /home/runner/work/csharpier/csharpier/Src/CSharpier/Program.cs:line 68
at System.CommandLine.Invocation.CommandHandler.GetResultCodeAsync(Object value, InvocationContext context)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseErrorReporting>b__21_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass25_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__22_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseParseDirective>b__20_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseDebugDirective>b__11_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseExceptionHandler>b__0>d.MoveNext()
Instead it should probably display a helpful warning that the config file was empty?
The text was updated successfully, but these errors were encountered:
CSharpier crashes with the following stack trace when run with an empty .csharpierrc.yaml:
Instead it should probably display a helpful warning that the config file was empty?
The text was updated successfully, but these errors were encountered: