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

System.ArgumentNullException when running populate command #12

Open
leaffan opened this issue Feb 6, 2024 · 0 comments
Open

System.ArgumentNullException when running populate command #12

leaffan opened this issue Feb 6, 2024 · 0 comments

Comments

@leaffan
Copy link

leaffan commented Feb 6, 2024

Hejhej,
I was about to give novodocx a try but I'm unfortunately unable to get it running. A very simple execution to fill the included document ends with the following message:

`
$ ndocx.exe populate SimpleTemplate.docx

Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'path')
at System.IO.File.ReadAllText(String )
at Novo.Docx.Cli.PopulateCommand.Run(ParseResult parseResult) in C:\Users\Reza\GitHub\novodocx\src\CLI\ndocx\commands\ndocx-populate\PopulateCommand.cs:line 32
at Novo.Docx.Cli.ParseResultCommandHandler.InvokeAsync(InvocationContext context) in C:\Users\Reza\GitHub\novodocx\src\CLI\ndocx\commands\ParseResultCommandHandler.cs:line 20
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass15_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<b__23_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass21_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<b__0>d.MoveNext()
`

Do you have any idea what I could have done wrong here?

Thank you in advance for your efforts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant