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

NRE from spell checker while working in Roslyn #69919

Closed
tmat opened this issue Sep 12, 2023 · 0 comments · Fixed by #69927
Closed

NRE from spell checker while working in Roslyn #69919

tmat opened this issue Sep 12, 2023 · 0 comments · Fixed by #69927
Assignees
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@tmat
Copy link
Member

tmat commented Sep 12, 2023


System.NullReferenceException: Object reference not set to an instance of an object.
      at Roslyn.Utilities.BKTree.Find(TemporaryArray`1& result, String value, Nullable`1 threshold)
      at Roslyn.Utilities.SpellChecker.FindSimilarWords(TemporaryArray`1& similarWords, String value, Boolean substringsAreSimilar)
      at Microsoft.CodeAnalysis.FindSymbols.SymbolTreeInfo.FuzzyFindAsync(AsyncLazy`1 lazyAssembly, String name, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.FindSymbols.SymbolTreeInfo.FindAsync(SearchQuery query, AsyncLazy`1 lazyAssembly, SymbolFilter filter, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.MetadataSymbolsSearchScope.FindDeclarationsAsync(SymbolFilter filter, SearchQuery searchQuery, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.SearchScope.FindDeclarationsAsync(String name, TSimpleNameSyntax nameNode, SymbolFilter filter, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.SymbolReferenceFinder.GetReferencesForMatchingTypesAsync(SearchScope searchScope, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.SymbolReferenceFinder.DoAsync(SearchScope searchScope, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.ProcessReferencesAsync(ConcurrentQueue`1 allSymbolReferences, Int32 maxResults, CancellationTokenSource linkedTokenSource, Task`1 task)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.FindResultsInUnreferencedMetadataSymbolsAsync(ConcurrentDictionary`2 referenceToCompilation, Project project, ConcurrentQueue`1 allSymbolReferences, Int32 maxResults, SymbolReferenceFinder finder, Boolean exact, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.FindResultsAsync(ConcurrentDictionary`2 projectToAssembly, ConcurrentDictionary`2 referenceToCompilation, Project project, Int32 maxResults, SymbolReferenceFinder finder, Boolean exact, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.FindResultsAsync(Document document, SemanticModel semanticModel, String diagnosticId, SyntaxNode node, Int32 maxResults, ISymbolSearchService symbolSearchService, AddImportOptions options, ImmutableArray`1 packageSources, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.GetFixesInCurrentProcessAsync(Document document, TextSpan span, String diagnosticId, Int32 maxResults, ISymbolSearchService symbolSearchService, AddImportOptions options, ImmutableArray`1 packageSources, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.AddImport.AbstractAddImportFeatureService`1.GetFixesAsync(Document document, TextSpan span, String diagnosticId, Int32 maxResults, ISymbolSearchService symbolSearchService, AddImportOptions options, ImmutableArray`1 packageSources, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.Remote.RemoteMissingImportDiscoveryService.<>c__DisplayClass3_0.<<GetFixesAsync>b__0>d.MoveNext()
   --- End of stack trace from previous location ---
      at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.<>c__DisplayClass9_0`1.<<RunWithSolutionAsync>g__ProcessSolutionAsync|1>d.MoveNext()
   --- End of stack trace from previous location ---
      at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Int32 workspaceVersion, Boolean updatePrimaryBranch, Func`2 implementation, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.Remote.RemoteWorkspace.RunWithSolutionAsync[T](AssetProvider assetProvider, Checksum solutionChecksum, Int32 workspaceVersion, Boolean updatePrimaryBranch, Func`2 implementation, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.RunWithSolutionAsync[T](Checksum solutionChecksum, Func`2 implementation, CancellationToken cancellationToken)
      at Microsoft.CodeAnalysis.Remote.BrokeredServiceBase.RunServiceImplAsync[T](Func`2 implementation, CancellationToken cancellationToken)
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 12, 2023
@tmat tmat changed the title NRW from spell checker NRE from spell checker while working in Roslyn Sep 12, 2023
@CyrusNajmabadi CyrusNajmabadi self-assigned this Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants