{"action":"created","issue":{"url":"https://api.github.com/repos/davidhalter/jedi/issues/531","repository_url":"https://api.github.com/repos/davidhalter/jedi","labels_url":"https://api.github.com/repos/davidhalter/jedi/issues/531/labels{/name}","comments_url":"https://api.github.com/repos/davidhalter/jedi/issues/531/comments","events_url":"https://api.github.com/repos/davidhalter/jedi/issues/531/events","html_url":"https://github.com/davidhalter/jedi/issues/531","id":54773117,"number":531,"title":"GTK+ 3 (GObject introspection)","user":{"login":"spillz","id":89573,"avatar_url":"https://avatars2.githubusercontent.com/u/89573?v=4","gravatar_id":"","url":"https://api.github.com/users/spillz","html_url":"https://github.com/spillz","followers_url":"https://api.github.com/users/spillz/followers","following_url":"https://api.github.com/users/spillz/following{/other_user}","gists_url":"https://api.github.com/users/spillz/gists{/gist_id}","starred_url":"https://api.github.com/users/spillz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spillz/subscriptions","organizations_url":"https://api.github.com/users/spillz/orgs","repos_url":"https://api.github.com/users/spillz/repos","events_url":"https://api.github.com/users/spillz/events{/privacy}","received_events_url":"https://api.github.com/users/spillz/received_events","type":"User","site_admin":false},"labels":[{"id":17235916,"url":"https://api.github.com/repos/davidhalter/jedi/labels/feature","name":"feature","color":"02e10c","default":false},{"id":44227641,"url":"https://api.github.com/repos/davidhalter/jedi/labels/low_prio","name":"low_prio","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2015-01-19T14:54:17Z","updated_at":"2018-03-04T07:13:01Z","closed_at":null,"author_association":"NONE","body":"It appears the jedi can't handle the GObject introspection module (using jedi 0.8.0-final0 on Ubuntu 14.04):\n\n```\ns3 = jedi.Script('from gi.repository import Gtk\\nGtk.')\ns3.completions()\n\ns2 = jedi.Script('import gtk\\ngtk.')\ns2.completions()\n```\n\ns2 completions show as expected, s3 is an empty list. Note that if I manually import Gtk3 and type dir(Gtk) I get a complete list of module symbols. \n\nAre there any workarounds for this? (Don't get me started on what a disaster GI is for long suffering GTK+ app devs.)\n"},"comment":{"url":"https://api.github.com/repos/davidhalter/jedi/issues/comments/370207421","html_url":"https://github.com/davidhalter/jedi/issues/531#issuecomment-370207421","issue_url":"https://api.github.com/repos/davidhalter/jedi/issues/531","id":370207421,"user":{"login":"albfan","id":220968,"avatar_url":"https://avatars3.githubusercontent.com/u/220968?v=4","gravatar_id":"","url":"https://api.github.com/users/albfan","html_url":"https://github.com/albfan","followers_url":"https://api.github.com/users/albfan/followers","following_url":"https://api.github.com/users/albfan/following{/other_user}","gists_url":"https://api.github.com/users/albfan/gists{/gist_id}","starred_url":"https://api.github.com/users/albfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albfan/subscriptions","organizations_url":"https://api.github.com/users/albfan/orgs","repos_url":"https://api.github.com/users/albfan/repos","events_url":"https://api.github.com/users/albfan/events{/privacy}","received_events_url":"https://api.github.com/users/albfan/received_events","type":"User","site_admin":false},"created_at":"2018-03-04T07:13:01Z","updated_at":"2018-03-04T07:13:01Z","author_association":"NONE","body":"After reread all this:\r\n\r\nThis would be the way (accepted by jedi maintainer) to recognize GObject introspection\r\n```\r\nauto_import_modules = [\r\n     'hashlib',  # setattr    \r\n     'gi.repository.*',                                          \r\n]\r\n```\r\nbut it is not working https://github.com/davidhalter/jedi/issues/531#issuecomment-149850283\r\n\r\nMeanwhile it is monkey-patched on Builder https://gitlab.gnome.org/GNOME/gnome-builder/blob/master/src/plugins/jedi/jedi_plugin.py#L100"}}
{"actor":{"display_login":"albfan"}}