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 executing code fixes (seems new in VS 16.8.x) #16

Open
BrightLight opened this issue Feb 9, 2021 · 1 comment
Assignees

Comments

@BrightLight
Copy link
Owner

I get a NullReferenceException when an issue is shown and I want to open the available code fixes ("suggestions") in the context menu. I have not changed the analyzer for at least months. Only thing that has changed is that I have updated my Visual Studio 2019.

System.NullReferenceException : Object reference not set to an instance of an object.
   at YouShouldSpellcheck.Analyzer.YouShouldSpellcheckAnalyzerCodeFixProvider.Suggestions(String word,IEnumerable`1 languages,Dictionary`2 allSuggestions)
   at YouShouldSpellcheck.Analyzer.YouShouldSpellcheckAnalyzerCodeFixProvider.Suggestions(Diagnostic diagnostic,String& offendingWord,Dictionary`2 allSuggestions,IEnumerable`1 languages)
   at async YouShouldSpellcheck.Analyzer.TextCodeFixProvider.RegisterCodeFixesAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.CodeFixes.CodeFixService.GetCodeFixesAsync(<Unknown Parameters>)
   at async Microsoft.CodeAnalysis.Extensions.IExtensionManagerExtensions.PerformFunctionAsync[T](<Unknown Parameters>)

TextCodeFixProvider

BrightLight added a commit that referenced this issue Feb 11, 2021
… newer versions.

Updating the packages hopefully reestablishes compatibility with Visual Studio 16.x

Issue #16
BrightLight added a commit that referenced this issue Feb 11, 2021
…to output path (which we keep intentionally to try to build against .Net Core as well soon)

Issue #16
BrightLight added a commit that referenced this issue Feb 13, 2021
…odeFixProvider.Suggestions(String word,IEnumerable`1 languages,Dictionary`2 allSuggestions)

Issue #16
@BrightLight BrightLight self-assigned this Feb 13, 2021
@BrightLight
Copy link
Owner Author

Still observable in Visual Studio 2022. Interestingly, no problem in Rider.

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

1 participant