{"action":"created","issue":{"url":"https://api.github.com/repos/Wyamio/Wyam/issues/78","labels_url":"https://api.github.com/repos/Wyamio/Wyam/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/Wyamio/Wyam/issues/78/comments","events_url":"https://api.github.com/repos/Wyamio/Wyam/issues/78/events","html_url":"https://github.com/Wyamio/Wyam/issues/78","id":111168012,"number":78,"title":"Problem with the RazorAndMarkdownBlog example","user":{"login":"yetanotherchris","id":54912,"avatar_url":"https://avatars.githubusercontent.com/u/54912?v=3","gravatar_id":"","url":"https://api.github.com/users/yetanotherchris","html_url":"https://github.com/yetanotherchris","followers_url":"https://api.github.com/users/yetanotherchris/followers","following_url":"https://api.github.com/users/yetanotherchris/following{/other_user}","gists_url":"https://api.github.com/users/yetanotherchris/gists{/gist_id}","starred_url":"https://api.github.com/users/yetanotherchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yetanotherchris/subscriptions","organizations_url":"https://api.github.com/users/yetanotherchris/orgs","repos_url":"https://api.github.com/users/yetanotherchris/repos","events_url":"https://api.github.com/users/yetanotherchris/events{/privacy}","received_events_url":"https://api.github.com/users/yetanotherchris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Wyamio/Wyam/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"daveaglick","id":1020407,"avatar_url":"https://avatars.githubusercontent.com/u/1020407?v=3","gravatar_id":"","url":"https://api.github.com/users/daveaglick","html_url":"https://github.com/daveaglick","followers_url":"https://api.github.com/users/daveaglick/followers","following_url":"https://api.github.com/users/daveaglick/following{/other_user}","gists_url":"https://api.github.com/users/daveaglick/gists{/gist_id}","starred_url":"https://api.github.com/users/daveaglick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daveaglick/subscriptions","organizations_url":"https://api.github.com/users/daveaglick/orgs","repos_url":"https://api.github.com/users/daveaglick/repos","events_url":"https://api.github.com/users/daveaglick/events{/privacy}","received_events_url":"https://api.github.com/users/daveaglick/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-10-13T12:17:30Z","updated_at":"2015-10-13T21:16:45Z","closed_at":null,"body":"I'm trying to run the RazorAndMarkdownBlog example from source but getting this problem. Is there something I'm missing?\r\n\r\n           Error while executing module ReadFiles: System.AggregateException: One or more errors occurred. ---> System\r\n    rgumentException: Document source must be unique within the pipeline.\r\n      at Wyam.Core.Pipelines.Pipeline.AddDocumentSource(String source) in C:\\Code\\Wyam\\Wyam.Core\\Pipelines\\Pipeline.cs:lin\r\n    263\r\n      at Wyam.Core.Documents.Document.Clone(String source, Stream stream, IEnumerable`1 items, Boolean disposeStream) in C\r\n    Code\\Wyam\\Wyam.Core\\Documents\\Document.cs:line 217\r\n      at Wyam.Core.Modules.ReadFiles.<>c__DisplayClass11_2.<Execute>b__2(String file) in C:\\Code\\Wyam\\Wyam.Core\\Modules\\Re\r\n    Files.cs:line 89\r\n      at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, TKey\r\n    currentKey)\r\n      at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n      at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n      at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n      at System.Linq.Parallel.QueryTask.<>c__DisplayClass0.<_cctor>b__1(Object o)\r\n      at System.Threading.Tasks.Task.InnerInvoke()\r\n      at System.Threading.Tasks.Task.Execute()\r\n      --- End of inner exception stack trace ---\r\n      at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose)\r\n      at System.Linq.Parallel.AsynchronousChannelMergeEnumerator`1.MoveNextSlowPath()\r\n      at System.Linq.Parallel.AsynchronousChannelMergeEnumerator`1.MoveNext()\r\n      at System.Linq.Parallel.QueryOpeningEnumerator`1.MoveNext()\r\n      at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()\r\n      at System.Linq.Buffer`1..ctor(IEnumerable`1 source)\r\n      at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)\r\n      at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)\r\n      at System.Collections.Immutable.ImmutableArray.ToImmutableArray[TSource](IEnumerable`1 items)\r\n      at Wyam.Core.Pipelines.Pipeline.Execute(ExecutionContext context, IEnumerable`1 modules, ImmutableArray`1 documents)\r\n    n C:\\Code\\Wyam\\Wyam.Core\\Pipelines\\Pipeline.cs:line 143\r\n    --> (Inner Exception #0) System.ArgumentException: Document source must be unique within the pipeline.\r\n      at Wyam.Core.Pipelines.Pipeline.AddDocumentSource(String source) in C:\\Code\\Wyam\\Wyam.Core\\Pipelines\\Pipeline.cs:lin\r\n    263\r\n      at Wyam.Core.Documents.Document.Clone(String source, Stream stream, IEnumerable`1 items, Boolean disposeStream) in C\r\n    Code\\Wyam\\Wyam.Core\\Documents\\Document.cs:line 217\r\n      at Wyam.Core.Modules.ReadFiles.<>c__DisplayClass11_2.<Execute>b__2(String file) in C:\\Code\\Wyam\\Wyam.Core\\Modules\\Re\r\n    Files.cs:line 89\r\n      at System.Linq.Parallel.SelectQueryOperator`2.SelectQueryOperatorEnumerator`1.MoveNext(TOutput& currentElement, TKey\r\n    currentKey)\r\n      at System.Linq.Parallel.PipelineSpoolingTask`2.SpoolingWork()\r\n      at System.Linq.Parallel.SpoolingTaskBase.Work()\r\n      at System.Linq.Parallel.QueryTask.BaseWork(Object unused)\r\n      at System.Linq.Parallel.QueryTask.<>c__DisplayClass0.<_cctor>b__1(Object o)\r\n      at System.Threading.Tasks.Task.InnerInvoke()\r\n      at System.Threading.Tasks.Task.Execute()<---\r\n\r\n           Executed pipeline \"Posts\" (1/2) in 181 ms resulting in 0 output document(s)\r\n       Executing pipeline \"Home\" (2/2) with 3 child module(s)\r\n               1 errors compiling /home.cshtml:\r\n    home.cshtml(5,21): error CS0021: Cannot apply indexing with [] to an expression of type 'IDocumentCollection'\r\n               Error while executing module Razor: System.AggregateException: One or more errors occurred. ---> System.Agg\r\n    gateException: One or more errors occurred. ---> System.Exception: /home.cshtml(5,21): error CS0021: Cannot apply inde\r\n    ng with [] to an expression of type 'IDocumentCollection'\r\n      --- End of inner exception stack trace ---\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationService.Compile(RelativeFileInfo file,\r\n    ring compilationContent) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\Compilation\\RazorCompilatio\r\n    ervice.cs:line 125\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationService.Compile(RelativeFileInfo file)\r\n     C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\Compilation\\RazorCompilationService.cs:line 61\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.VirtualPathRazorPageFactory.CreateInstance(String relativePath, Str\r\n    m stream) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\VirtualPathRazorPageFactory.cs:line 75\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.RazorViewEngine.GetRazorPageResult(ViewContext context, String page\r\n    me, Boolean isPartial, Stream stream) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\RazorViewEngin\r\n    cs:line 130\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.RazorViewEngine.GetView(ViewContext context, String viewName, Strea\r\n    stream) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\RazorViewEngine.cs:line 76\r\n      at Wyam.Modules.Razor.Razor.<>c__DisplayClass7_0.<Execute>b__1(IDocument x) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Razor\r\n    s:line 69\r\n      at System.Threading.Tasks.Parallel.<>c__DisplayClass21`2.<ForEachWorker>b__22(Int32 i)\r\n      at System.Threading.Tasks.Parallel.<>c__DisplayClass9`1.<ForWorker>b__11()\r\n      at System.Threading.Tasks.Task.InnerInvoke()\r\n      at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)\r\n      at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )\r\n      --- End of inner exception stack trace ---\r\n      at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n      at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n      at System.Threading.Tasks.Task.Wait()\r\n      at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions paralle\r\n    ptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)\r\n      at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IList`1 list, ParallelOptions parallelOptions, Acti\r\n    `1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverythi\r\n    , Func`1 localInit, Action`1 localFinally)\r\n      at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptio\r\n    , Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWith\r\n    erything, Func`1 localInit, Action`1 localFinally)\r\n      at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)\r\n      at Wyam.Modules.Razor.Razor.Execute(IReadOnlyList`1 inputs, IExecutionContext context) in C:\\Code\\Wyam\\Wyam.Modules.\r\n    zor\\Razor.cs:line 59\r\n      at Wyam.Core.Pipelines.Pipeline.Execute(ExecutionContext context, IEnumerable`1 modules, ImmutableArray`1 documents)\r\n    n C:\\Code\\Wyam\\Wyam.Core\\Pipelines\\Pipeline.cs:line 142\r\n    --> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.Exception: /home.cshtml(5\r\n    1): error CS0021: Cannot apply indexing with [] to an expression of type 'IDocumentCollection'\r\n      --- End of inner exception stack trace ---\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationService.Compile(RelativeFileInfo file,\r\n    ring compilationContent) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\Compilation\\RazorCompilatio\r\n    ervice.cs:line 125\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.Compilation.RazorCompilationService.Compile(RelativeFileInfo file)\r\n     C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\Compilation\\RazorCompilationService.cs:line 61\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.VirtualPathRazorPageFactory.CreateInstance(String relativePath, Str\r\n    m stream) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\VirtualPathRazorPageFactory.cs:line 75\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.RazorViewEngine.GetRazorPageResult(ViewContext context, String page\r\n    me, Boolean isPartial, Stream stream) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\RazorViewEngin\r\n    cs:line 130\r\n      at Wyam.Modules.Razor.Microsoft.AspNet.Mvc.Razor.RazorViewEngine.GetView(ViewContext context, String viewName, Strea\r\n    stream) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Mvc\\Microsoft.AspNet.Mvc.Razor\\RazorViewEngine.cs:line 76\r\n      at Wyam.Modules.Razor.Razor.<>c__DisplayClass7_0.<Execute>b__1(IDocument x) in C:\\Code\\Wyam\\Wyam.Modules.Razor\\Razor\r\n    s:line 69\r\n      at System.Threading.Tasks.Parallel.<>c__DisplayClass21`2.<ForEachWorker>b__22(Int32 i)\r\n      at System.Threading.Tasks.Parallel.<>c__DisplayClass9`1.<ForWorker>b__11()\r\n      at System.Threading.Tasks.Task.InnerInvoke()\r\n      at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)\r\n      at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )\r\n    --> (Inner Exception #0) System.Exception: /home.cshtml(5,21): error CS0021: Cannot apply indexing with [] to an expre\r\n    ion of type 'IDocumentCollection'<---\r\n    ---"},"comment":{"url":"https://api.github.com/repos/Wyamio/Wyam/issues/comments/147856384","html_url":"https://github.com/Wyamio/Wyam/issues/78#issuecomment-147856384","issue_url":"https://api.github.com/repos/Wyamio/Wyam/issues/78","id":147856384,"user":{"login":"yetanotherchris","id":54912,"avatar_url":"https://avatars.githubusercontent.com/u/54912?v=3","gravatar_id":"","url":"https://api.github.com/users/yetanotherchris","html_url":"https://github.com/yetanotherchris","followers_url":"https://api.github.com/users/yetanotherchris/followers","following_url":"https://api.github.com/users/yetanotherchris/following{/other_user}","gists_url":"https://api.github.com/users/yetanotherchris/gists{/gist_id}","starred_url":"https://api.github.com/users/yetanotherchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yetanotherchris/subscriptions","organizations_url":"https://api.github.com/users/yetanotherchris/orgs","repos_url":"https://api.github.com/users/yetanotherchris/repos","events_url":"https://api.github.com/users/yetanotherchris/events{/privacy}","received_events_url":"https://api.github.com/users/yetanotherchris/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T21:16:45Z","updated_at":"2015-10-13T21:16:45Z","body":"It seems to be fine for Wyam.Web but Inside `AddDocumentSource` it's trying to re-add post.cshtml to the Hashset for that particular example. I can use Wyam.Web to work from though."}}