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

'System.NullReferenceException' occurs when starting up Visual Studio 2019 (Professional) #10

Closed
michaelm7456 opened this issue May 7, 2019 · 4 comments

Comments

@michaelm7456
Copy link

michaelm7456 commented May 7, 2019

When starting up Visual Studio 2019 Professional, a Visual Studio MessageBox pops up advising the Extension has caused an issue and to check the following .xml file for more details.

C:\Users\UserName\AppData\Roaming\Microsoft\VisualStudio\16.0_43a43d77\ActivityLog.xml

[Contents of 'ActivityLog.xml' file]

[Stack Trace]

2529
2019/05/07 14:20:45.911
Error

Editor or Editor Extension System.NullReferenceException: Object reference not set to an instance of an object. at CodeMetrics.Adornments.MetricsAdornment.RepaintComplexity(ITextSnapshot textSnapshot) at CodeMetrics.Adornments.MetricsAdornment.OnLayoutChanged(Object sender, TextViewLayoutChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
@michaelm7456
Copy link
Author

michaelm7456 commented May 7, 2019

This looks to be very similar to Issue # 3

Where there is an issue related to the 'CodeMetrics.Adornments.MetricsAdornment.RepaintComplexity' Method.

@michaelm7456 michaelm7456 changed the title Exception occurs when starting up Visual Studio 2019 (Professional) 'System.NullReferenceException' occurs when starting up Visual Studio 2019 (Professional) Sep 30, 2019
@elishalom
Copy link
Owner

A possible fix to this issue is in version 0.9.1.1

@coolhome
Copy link

Currently working for myself in VS2019

@michaelm7456
Copy link
Author

I've since downloaded Version 0.9.1.1 and encountered no further occurrences 'System.NullReferenceException' when starting Visual Studio 2019.

I'm happy for this one to be marked as resolved and will mark it as closed.

Many thanks for looking into this one guys!

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

3 participants