Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

ArgumentException when modifying a page while taste is running #296

Closed
hartez opened this issue Feb 6, 2016 · 1 comment
Closed

ArgumentException when modifying a page while taste is running #296

hartez opened this issue Feb 6, 2016 · 1 comment

Comments

@hartez
Copy link
Contributor

hartez commented Feb 6, 2016

While running pretzel taste with the Razor engine, modifying a page results in the following exception:

System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Pretzel.Logic.Templating.Razor.ExtensibleProxy`1..ctor(IEnumerable`1 extensibleMethods)
   at Pretzel.Logic.Templating.Razor.ExtensibleActivator..ctor(IActivator defaultActivator, IEnumerable`1 filters, IEnumerable`1 tags)
   at Pretzel.Logic.Templating.Razor.RazorSiteEngine.RenderTemplate(String content, PageContext pageData)
   at Pretzel.Logic.Templating.JekyllEngineBase.ProcessFile(String outputDirectory, Page page, Page previous, Page next, Boolean skipFileOnError, String relativePath)
Failed to process C:\Users\hartez\Documents\Bitbucket\alumnihome\newsite\_site\about.html: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Pretzel.Logic.Templating.Razor.ExtensibleProxy`1..ctor(IEnumerable`1 extensibleMethods)
   at Pretzel.Logic.Templating.Razor.ExtensibleActivator..ctor(IActivator defaultActivator, IEnumerable`1 filters, IEnumerable`1 tags)
   at Pretzel.Logic.Templating.Razor.RazorSiteEngine.RenderTemplate(String content, PageContext pageData)
   at Pretzel.Logic.Templating.JekyllEngineBase.ProcessFile(String outputDirectory, Page page, Page previous, Page next, Boolean skipFileOnError, String relativePath)
@laedit
Copy link
Member

laedit commented Feb 7, 2016

Fixed by #297

@laedit laedit closed this as completed Feb 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants