This project has moved. For the latest updates, please go here.
2
Vote

Errors in VS 2015 Update 2 Activity log

description

Addon generates from time to time errors in VS Activity log. I have VS 2015 version 14.0.25123.00 Update 2 and I see multiple extension errors each day. Activity log contains multiple instances of following:
<entry>
    <record>451</record>
    <time>2016/06/27 11:00:35.539</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(Method m)&#x000D;&#x000A;   at Mono.CSharp.Method.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..ctor(IWpfTextView view, IMethodsExtractor methodsExtractor, IComplexityCalculator complexityCalculator)&#x000D;&#x000A;   at CodeMetrics.Adornments.MeticsAdornmentFactory.TextViewCreated(IWpfTextView textView)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.&lt;&gt;c__DisplayClass241_0.&lt;BindContentTypeSpecificAssets&gt;b__1()&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)</description>
  </entry>
  <entry>
    <record>452</record>
    <time>2016/06/27 11:00:35.804</time>
    <type>Error</type>
    <source>Editor or Editor Extension</source>
    <description>System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at CodeMetrics.Adornments.MetricsAdornment.RepaintComplexity(ITextSnapshot textSnapshot)&#x000D;&#x000A;   at CodeMetrics.Adornments.MetricsAdornment.OnLayoutChanged(Object sender, TextViewLayoutChangedEventArgs e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)</description>
  </entry>

comments