statiqdev / CleanBlog

A blogging theme for Statiq Web.
MIT License
53 stars 25 forks source link

Getting ArgumentNullException when running #4

Closed drmathias closed 4 years ago

drmathias commented 4 years ago

Wanted to give this theme a go, so decided to follow the instructions and I'm getting the following error.

[ERRO] Archives/Process » ForEachDocument » Error while executing module ExecuteConfig in Archives/Process: Value cannot be null. (Parameter 'patterns') [ERRO] Archives/Process » ForEachDocument » Document [C:/Users/drmathias/repos/ThemedBlog/src/ThemedBlog/input/theme/input/index.cshtml]: Exception of type 'Statiq.Core.ExecuteModulesException' was thrown. [DBUG] Exception while executing pipeline Archives/Process: System.ArgumentNullException: Value cannot be null. (Parameter 'patterns') at Statiq.Core.FilterSources..ctor(IEnumerable1 patterns) at Statiq.Web.Pipelines.Archives.<>c__DisplayClass0_0.<.ctor>b__1(IDocument archiveDoc, IExecutionContext ctx) at Statiq.Common.Config.<>c__DisplayClass13_01.b0(IDocument doc, IExecutionContext ctx) at Statiq.Common.Config`1.<>cDisplayClass10_0.<b0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Statiq.Common.Config1.GetAndTransformValueAsync(IDocument document, IExecutionContext context, Func2 transform) at Statiq.Common.ParallelConfigModule`1.<>cDisplayClass8_1.<b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Statiq.Common.ParallelAsyncExtensions.ParallelSelectManyAsync[TSource,TResult](IEnumerable1 items, Func2 asyncSelector, CancellationToken cancellationToken) at Statiq.Common.ParallelConfigModule1.ExecuteContextAsync(IExecutionContext context) at Statiq.Common.Module.ExecuteAsync(IExecutionContext context) at Statiq.Common.Module.ExecuteAsync(IExecutionContext context) at Statiq.Core.Engine.ExecuteModulesAsync(ExecutionContextData contextData, IExecutionContext parent, IEnumerable1 modules, ImmutableArray`1 inputs, ILogger logger)

Steps to reproduce:

  1. Follow steps at https://statiq.dev/web/#quick-start
  2. git submodule add https://github.com/statiqdev/CleanBlog.git theme
  3. Created my-first-post.md at input/posts/
daveaglick commented 4 years ago

I think I see the problem, might need to update the instructions to make this clearer: the theme folder should be alongside the input folder (not under it). If you've got the theme folder inside the input folder try moving it out and let me know if that works.

drmathias commented 4 years ago

I see, you did write that, just I didn't read it properly. Thanks.