Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

NRE in GetBodyStartIndex #1194

@jakebailey

Description

@jakebailey
Microsoft.Python.Analysis.Analyzer.ScopeExtensions.GetBodyStartIndex(IScope) in Analysis\Ast\Impl\Extensions\ScopeExtensions.cs:line 31
Microsoft.Python.Analysis.Analyzer.ScopeExtensions.FindScope(IScope, IDocument, SourceLocation) in Analysis\Ast\Impl\Extensions\ScopeExtensions.cs:line 45
Microsoft.Python.LanguageServer.Completion.TopLevelCompletion.GetCompletions(Node, ScopeStatement, CompletionContext) in LanguageServer\Impl\Completion\TopLevelCompletion.cs:line 38
Microsoft.Python.LanguageServer.Completion.CompletionSource.GetCompletions(IDocumentAnalysis, SourceLocation) in LanguageServer\Impl\Completion\CompletionSource.cs:line 91
Microsoft.Python.LanguageServer.Implementation.Server.Completion(CompletionParams, CancellationToken) in E:\A\_work\594\s\src\LanguageServer\Impl\Implementati

scope.Node is null (the scope is not, or the NRE would have happened earlier in FindScope).

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions