CCdocgen failing with exception
-
Saturday, October 06, 2012 2:42 PM
I updated to the latest version, 1.4.50910.0 and on three different projects I'm now getting exceptions from ccdocgen. My previous version was from this past March and it was working fine.
I've disabled Emit contracts into docs and my builds pass now, but I'd like to not have to turn it off.
Any ideas?
This is what I get.
CCDoc failed with uncaught exception: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Stack trace: at System.Collections.Generic.List`1.get_Item(Int32 index)
at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1 source, Int32 index)
at VBSourceEmitter.SourceEmitter.TraverseChildren(IMethodCall methodCall)
at Microsoft.Cci.CodeTraverser.Traverse(IMethodCall methodCall)
at VBSourceEmitter.SourceEmitter.TraverseChildren(IAnonymousDelegate anonymousDelegate)
at Microsoft.Cci.CodeTraverser.Traverse(IAnonymousDelegate anonymousDelegate)
at VBSourceEmitter.SourceEmitter.Traverse(IEnumerable`1 arguments)
at VBSourceEmitter.SourceEmitter.PrintArgumentList(IEnumerable`1 arguments)
at Microsoft.Cci.CodeTraverser.Traverse(IMethodCall methodCall)
at VBSourceEmitter.SourceEmitter.TraverseChildren(IMethodCall methodCall)
at Microsoft.Cci.CodeTraverser.Traverse(IMethodCall methodCall)
at CCDoc.XContract.WriteVBFromAST(IExpression expression)
at CCDoc.XPrecondition.WriteTo(XmlWriter writer)
at CCDoc.XmlTraverser.WriteEndElement(XmlReader reader, XmlWriter writer)
at CCDoc.XmlTraverserBase.Transform(XmlReader reader, XmlWriter writer)
at CCDoc.CCDoc.WriteContracts(IDictionary`2 contracts, Options options, DocTracker docTracker)
at CCDoc.CCDoc.RealMain(String[] args)
at CCDoc.CCDoc.Main(String[] args)
Thanks Andy

