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 FindScope (null node) #1245

@jakebailey

Description

@jakebailey

Seems like a continuation of #1194 now that GetBodyStartIndex doesn't fail.

Microsoft.Python.Analysis.Analyzer.ScopeExtensions.FindScope(IScope, IDocument, SourceLocation) in Analysis\Ast\Impl\Extensions\ScopeExtensions.cs:line 59
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 95
Microsoft.Python.LanguageServer.Implementation.Server.Completion(CompletionParams, CancellationToken) in LanguageServer\Impl\Implementation\Server.Editor.cs:line 42
Microsoft.Python.LanguageServer.Implementation.LanguageServer.Completion(JToken, CancellationToken) in E:\A\_work\1

children[i].Node is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions