Intellisense does work with GTK+ 3 (GObject Introspection)
还没有人认领这个 Issue。
评估
调研方向
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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/python-type-stubs 的其他 Issue
-
难度 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
-
难度 1/5 1 小时以内 新手友好度 90/100
-
bug
难度 2/5 1-3 小时 新手友好度 86/100
zostera/django-bootstrap4#894 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
use-agent-os/agent-os#3276 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#117848 ·