Open
Description
Environment data
- Language Server version: v2020.11.2
- OS and version: Ubuntu 20.04 (WSL2) on Win 10, 19041.630
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.8.5
Expected behaviour
Autocomplete should show member functions and variables for GTK+ 3 library (import gi
)
Actual behaviour
Autocomplete does not work for import gi
Logs
Nothing of relevance appeared to be in the logs for the language server. Things like: "setFileOpened, getDiagnosticsForRange, parsing file, binding, file, getSemanticTokens", but nothing odd.
Code Snippet / Additional information
- Install
GTK graphical user interface library -- gir bindings (gir1.2-gtk-3.0)
- Install
Python 3 bindings for gobject-introspection libraries (python3-gi)
- Try to autocomplete Gtk.
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
win = Gtk.
Key issue: This works as expected if I change the language server to jedi
, but does not work with pylance
. Autocomplete also works fine in the Ubuntu command line interpreter (python3
).
Related discussion that I found (but had trouble interpreting) on other github projects: