Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException #12

Open
EFLFE opened this issue Jun 29, 2020 · 1 comment
Open

NullReferenceException #12

EFLFE opened this issue Jun 29, 2020 · 1 comment

Comments

@EFLFE
Copy link

EFLFE commented Jun 29, 2020

Hello. Visual studio shows an error when I open the project for the first time.

This window
error window

It always shows that error when opening a file with this code:

#if INF
...
#endif
/*
...
*/

The last text from ActivityLog.xml:

  <entry>
    <record>561</record>
    <time>2020/06/29 13:37:37.786</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 Microsoft.CodeAnalysis.CSharp.CSharpExtensions.Kind(SyntaxNode node)&#x000D;&#x000A;   at ColorCoder.Extensions.CSharpExtensions.IsCSharpAttributeSyntaxKind(SyntaxNode node) in C:\Users\Hamid\source\VisualStudio-ColorCoder\ColorCoder\Extensions\CSharpExtensions.cs:line 21&#x000D;&#x000A;   at ColorCoder.ColorCoderCore.ColorCoderTaggerServices.GetExpression(SyntaxNode node) in C:\Users\Hamid\source\VisualStudio-ColorCoder\ColorCoder\ColorCoderCore\ColorCoderTaggerServices.cs:line 42&#x000D;&#x000A;   at ColorCoder.ColorCoderCore.ColorCoderTaggerServices.&lt;GetClassificationTags&gt;d__2.MoveNext() in C:\Users\Hamid\source\VisualStudio-ColorCoder\ColorCoder\ColorCoderCore\ColorCoderTaggerServices.cs:line 65&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.&lt;GetTagsForBuffer&gt;d__39.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
  </entry>

Visual Studio 2017, Color Coder v1.1.0

@HamidMosalla
Copy link
Owner

I've tried to reproduce the issue with the piece of code you've provided, but I didn't encountered any errors. Could you share a file or a project where this happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants