vscode-python: Autocomplete doesn't work for Gtk+ 3

Environment data

VS Code version: Code 1.19.1 (0759f77bb8d86658bc935a10a64f6182c5a1eeba, 2017-12-19T09:46:23.884Z) Python Extension version: 0.9.1 Python Version: 2.7.14 OS and version: Windows_NT x64 10.0.16299

Actual behavior

Autocomplete doesn’t work for Gtk+ 3 library. It does work for all other libraries I have tried in the past. It also works for pygtk (gtk 2.x). Even in the given script, it works with gi but doesn’t work with Gtk. It shows all the member functions and variables for gi, auto completion only shows suggestions based on used keywords and no member functions.

Is this related to the Gobject and introspection ?

Expected behavior

Autocomplete should show member functions

Steps to reproduce:

import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
win = Gtk.

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)

Kudos on the awesome extension BTW 😉

Cheers Pavan

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 5
  • Comments: 22 (8 by maintainers)

Most upvoted comments