Intellisense does work with GTK+ 3 (GObject Introspection)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start with the GTK/GObject Introspection reproduction in the issue, including import gi, gi.require_version, and from gi.repository import Gtk. Review the linked Jedi and vscode-python discussions to understand the missing autocomplete support. Done means Pylance offers member functions and variables after Gtk. as Jedi does.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- Lingua principale
- Python
- Stelle
- 304
- Fork
- 104
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/python-type-stubs
-
Maintenance Status Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
microsoft/python-type-stubs#395 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 58/100
microsoft/python-type-stubs#392 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
microsoft/python-type-stubs#345 ·
-
Inconsistent naming of stubs Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/python-type-stubs#315 · 1 commento ·
-
Unparameterized `np.ndarray` typings produce "Type of ... is partially unknown" Pyright type errors. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/python-type-stubs#309 · 4 commenti ·
Tutte le issue di microsoft/python-type-stubs
Issue simili
-
link-check link-check:sphinx-theme
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenHands/extensions#626 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
CSCfi/sd-search-api#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100