Intellisense does work with GTK+ 3 (GObject Introspection)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 30/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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:
- Ngôn ngữ chính
- Python
- Star
- 304
- Fork
- 104
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/python-type-stubs
-
Maintenance Status Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
microsoft/python-type-stubs#395 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 58/100
microsoft/python-type-stubs#392 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
microsoft/python-type-stubs#345 ·
-
Inconsistent naming of stubs Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/python-type-stubs#315 · 1 bình luận ·
-
Unparameterized `np.ndarray` typings produce "Type of ... is partially unknown" Pyright type errors. Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/python-type-stubs#309 · 4 bình luận ·
Tất cả issue của microsoft/python-type-stubs
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
zostera/django-bootstrap4#894 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3276 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
NousResearch/hermes-agent#117848 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zilliztech/memsearch#759 ·