Skip to content
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
ppaanngggg opened this issue Nov 30, 2018 · 3 comments
Closed

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

ppaanngggg opened this issue Nov 30, 2018 · 3 comments
Assignees
Labels
bug Something isn't working feature: references

Comments

@ppaanngggg
Copy link

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)

@MikhailArkhipov
Copy link

Needs null check

@ppaanngggg
Copy link
Author

Thanks :D

@jakebailey
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: references
Projects
None yet
Development

No branches or pull requests

3 participants