1
Vote

Crashes most of the times when using Code Review

description

Plugin crashed most of times when opening file in Code review or sometimes when opening code files with the below error.
<entry>
<record>1763</record>
<time>2016/05/25 22:35:01.391</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidCastException: Unable to cast object of type &apos;ICSharpCode.NRefactory.CSharp.ReturnStatement&apos; to type &apos;ICSharpCode.NRefactory.CSharp.BlockStatement&apos;.&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.ConversionVisitor.Visit(Property p)&#x000D;&#x000A;   at Mono.CSharp.Property.Accept(StructuralVisitor visitor)&#x000D;&#x000A;   at Mono.CSharp.StructuralVisitor.VisitTypeDefinition(TypeDefinition tc)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.ConversionVisitor.Visit(Class c)&#x000D;&#x000A;   at Mono.CSharp.Class.Accept(StructuralVisitor visitor)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.ConversionVisitor.Visit(NamespaceContainer ns)&#x000D;&#x000A;   at Mono.CSharp.NamespaceContainer.Accept(StructuralVisitor visitor)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.ConversionVisitor.Visit(ModuleContainer mc)&#x000D;&#x000A;   at Mono.CSharp.ModuleContainer.Accept(StructuralVisitor visitor)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(CompilerCompilationUnit top, String fileName)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(ITextSource program, String fileName, Int32 initialLine, Int32 initialColumn)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(ITextSource program, String fileName)&#x000D;&#x000A;   at ICSharpCode.NRefactory.CSharp.CSharpParser.Parse(TextReader reader, String fileName)&#x000D;&#x000A;   at CodeMetrics.Parsing.MethodsExtractor.Extract(String fileCode)&#x000D;&#x000A;   at CodeMetrics.Adornments.MetricsAdornment.Init(ITextSnapshot textSnapshot)&#x000D;&#x000A;   at CodeMetrics.Adornments.MetricsAdornment.OnTextBufferChanged(Object sender, EventArgs eventArgs)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent(Object sender, EventHandler eventHandlers)</description>
</entry>

comments