From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: seb@k-7.ch (=?UTF-8?Q?S=C3=A9bastien?= Gendre) Newsgroups: gmane.emacs.bugs Subject: bug#31411: 25.3; Semantic with Python: No completion for imported modules, class methodes, etc Date: Thu, 10 May 2018 19:41:24 +0200 Message-ID: <87bmdno1bv.fsf@k-7.ch> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1525975351 5739 195.159.176.226 (10 May 2018 18:02:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 May 2018 18:02:31 +0000 (UTC) To: 31411@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 10 20:02:27 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGptb-0001NO-A9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2018 20:02:27 +0200 Original-Received: from localhost ([::1]:35097 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGpvi-0001Vn-EZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 May 2018 14:04:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGptK-0008Dw-Bg for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGptI-0004Df-Vl for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGptI-0004DZ-TD for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fGptI-0000br-K0 for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 14:02:08 -0400 X-Loop: help-debbugs@gnu.org Resent-From: seb@k-7.ch (=?UTF-8?Q?S=C3=A9bastien?= Gendre) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 May 2018 18:02:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31411 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15259752682180 (code B ref -1); Thu, 10 May 2018 18:02:08 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 May 2018 18:01:08 +0000 Original-Received: from localhost ([127.0.0.1]:56820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGpsJ-0000Z0-V3 for submit@debbugs.gnu.org; Thu, 10 May 2018 14:01:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGpZT-00005P-RX for submit@debbugs.gnu.org; Thu, 10 May 2018 13:41:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGpZN-0007tK-0Z for submit@debbugs.gnu.org; Thu, 10 May 2018 13:41:34 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGpZM-0007sx-TF for submit@debbugs.gnu.org; Thu, 10 May 2018 13:41:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGpZL-0002Bt-4c for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 13:41:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGpZH-0007pN-W4 for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 13:41:31 -0400 Original-Received: from 50-102-31-185.ftth.cust.kwaoo.net ([185.31.102.50]:60340 helo=k-7.ch) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGpZH-0007of-NK for bug-gnu-emacs@gnu.org; Thu, 10 May 2018 13:41:27 -0400 Original-Received: from bilbon (alfred.local [192.168.1.1]) by k-7.ch (OpenSMTPD) with ESMTPSA id 3ffcd721 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 10 May 2018 17:41:25 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 10 May 2018 14:01:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146107 Archived-At: With Python source code, Semantic doesn't provide completion for imported modules, class methodes and properties or anything after a '.'. I try to write 'datetime.date' after importing 'datetime'. But after write 'datetime.' and pressing TAB I get 'Error in post-command-hook (completion-in-region--postch): (error "Nothing to complete")' and 'Nothing to complete' in the mini-buffer. Same thing when I try to complete a class preperty of a class I wrote on my Python buffer. :( Tested with 'emacs -q'. How te reproduce: - Start Emacs 15.3 with: emacs -q - Open a Python file - Start semantic (M-x semantic) - Import something in your python code, like 'datetime' - Write 'datetime.' and call 'completion-at-point' - You get 'Nothing to complete' in the mini-buffer Emacs informations: In GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.26) of 2018-01-12 built on buildhw-08.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.11906000 Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS Important settings: value of $LANG: fr_CH.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-idle-scheduler-mode: t semantic-mode: t diff-auto-refine-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t completion-in-region-mode: t Recent messages: Making completion list... Complete, but not unique Error in post-command-hook (completion-in-region--postch): (error "Nothing to complete") Sole completion [2 times] Error in post-command-hook (completion-in-region--postch): (error "Nothing to complete") Sole completion [3 times] Error in post-command-hook (completion-in-region--postch): (error "Nothing to complete") semantic-analyze-possible-completions: Nothing to complete [2 times] Auto-saving... Making completion list... Load-path shadows: /usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides /usr/share/emacs/25.3/lisp/gnus/spam-stat /usr/share/emacs/site-lisp/gnus-bonus/nnir hides /usr/share/emacs/25.3/lisp/gnus/nnir /usr/share/emacs/site-lisp/gnus-bonus/nnnil hides /usr/share/emacs/25.3/lisp/gnus/nnnil Features: (shadow sort mail-extr emacsbug message idna dired rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils semantic/analyze/complete semantic/db-typecache semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/edit semantic/tag-file cus-start cus-load semantic/db-file data-debug cedet-files semantic/wisent/python semantic/decorate/include semantic/db-find semantic/db-ref semantic/decorate/mode semantic/decorate pulse compile tramp-cache semantic/dep semantic/wisent/python-wy semantic/wisent semantic/wisent/wisent rx semantic/db-mode semantic/db eieio-base semantic/idle semantic/format ezimage semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet vc-git diff-mode python tramp-sh tramp tramp-compat auth-source cl-seq eieio eieio-core gnus-util mm-util help-fns mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice json map seq byte-opt bytecomp byte-compile cl-extra help-mode cconv comint ring ansi-color preview-latex emacs-goodies-loaddefs easy-mmode color-theme easymenu wid-edit cl clang-format cl-macs gv xml cl-loaddefs pcase cl-lib auto-loads tex-site time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 270440 11224) (symbols 48 28939 0) (miscs 40 128 186) (strings 32 39653 9048) (string-bytes 1 1335065) (vectors 16 43791) (vector-slots 8 805601 3667) (floats 8 465 603) (intervals 56 441 0) (buffers 976 22))