Intellisense does work with GTK+ 3 (GObject Introspection)
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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:
- 主要言語
- Python
- スター
- 304
- フォーク
- 104
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/python-type-stubs のほかの issue
-
Maintenance Statusオープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/python-type-stubs#395 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
microsoft/python-type-stubs#392 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
microsoft/python-type-stubs#345 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/python-type-stubs#315 · コメント 1 件 ·
-
Unparameterized `np.ndarray` typings produce "Type of ... is partially unknown" Pyright type errors.オープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/python-type-stubs#309 · コメント 4 件 ·
microsoft/python-type-stubs の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FuRongJun-1999/dsh-memory#56 ·
メンテナーはふだん 1 日以内に返信
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pgadmin-org/pgadmin4#10503 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
521xueweihan/HelloGitHub#3857 ·
-
needs-ac
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Ikalus1988/MisakaNet#2845 ·
メンテナーはふだん 1 日以内に返信
-
bug connectors operations
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pyinfra-dev/pyinfra#1989 ·
メンテナーはふだん 3 日以内に返信