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.

Error when go to definition of PyQt5's module #440

Closed

Description

I have code like following

from PyQt5.QtChart import QChart, QChartView, QLineSeries, QValueAxis
from PyQt5.QtWidgets import QApplication, QTabWidget, QVBoxLayout, QWidget

When I go to the definition of PyQt5.QtChart or PyQt5.QtWidgets, then VSCode popup
the OUTPUT panel and print like following

[Error - 7:18:34 PM] Request textDocument/definition failed.
Message: Value cannot be null.
Parameter name: source
Code: -32000
at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable1 source, Func2 selector)
at Microsoft.Python.LanguageServer.Implementation.Server.GetModuleReferences(IPythonProjectEntry entry, PythonAst tree, BufferVersion version, ReferencesParams params)
at Microsoft.Python.LanguageServer.Implementation.Server.FindReferences(ReferencesParams params, CancellationToken cancellationToken)
at Microsoft.Python.LanguageServer.Implementation.Server.GotoDefinition(TextDocumentPositionParams params, CancellationToken cancellationToken)
at Microsoft.Python.LanguageServer.Implementation.LanguageServer.GotoDefinition(JToken token, CancellationToken cancellationToken)

Activity

  1. MikhailArkhipov commented on Dec 19, 2018

    @MikhailArkhipov

    Needs null check

  2. ppaanngggg commented on Dec 20, 2018

    @ppaanngggg
    Author

    Thanks :D

  3. jakebailey commented on Dec 22, 2018

    @jakebailey
    Member

    Fixed in #498. Should come to the daily/beta/insiders channels later tonight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugfeature: references

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions