Unanswered 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



    • Edited by ajj3085 Saturday, October 06, 2012 2:42 PM
    • Edited by ajj3085 Saturday, October 06, 2012 2:42 PM
    •  

All Replies

  • Sunday, October 07, 2012 6:27 PM
    Owner
     
     
    Can you put your solution into a zip file and send it to me? I think I've fixed this, but would like to test it to make sure it works on your code.

    Mike Barnett