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

An item with the same key has already been added. #525

Open
lomovod opened this issue Jan 25, 2017 · 0 comments
Open

An item with the same key has already been added. #525

lomovod opened this issue Jan 25, 2017 · 0 comments

Comments

@lomovod
Copy link

lomovod commented Jan 25, 2017

Sometimes we get 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 ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitAttributes(IList`1 attributes, ClassFinder context)
   at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.ConvertAttributes(AttributedNode from, AbstractEntity to)
   at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitTypeDeclaration(TypeDeclaration typeDeclaration, Object data)
   at ICSharpCode.NRefactory.Ast.TypeDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
   at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
   at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitNamespaceDeclaration(NamespaceDeclaration namespaceDeclaration, Object data)
   at ICSharpCode.NRefactory.Ast.NamespaceDeclaration.AcceptVisitor(IAstVisitor visitor, Object data)
   at ICSharpCode.NRefactory.Ast.AbstractNode.AcceptChildren(IAstVisitor visitor, Object data)
   at ICSharpCode.SharpDevelop.Dom.NRefactoryResolver.NRefactoryASTConvertVisitor.VisitCompilationUnit(CompilationUnit compilationUnit, Object data)

Unfortunatelly I cannot provide scenario to reproduce, this issue is quite rare.

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

1 participant