From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.bugs Subject: bug#18582: 24.4.50; [python.el] completion error Date: Wed, 01 Oct 2014 13:21:20 +0200 Message-ID: <87iok4xcgf.fsf@gmx.us> References: <87lhp27gt2.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1412162544 14628 80.91.229.3 (1 Oct 2014 11:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2014 11:22:24 +0000 (UTC) Cc: 18582@debbugs.gnu.org, fabian@anue.biz To: monnier@iro.umontreal.ca Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 13:22:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XZHz6-0008KT-Bz for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 13:22:16 +0200 Original-Received: from localhost ([::1]:54789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZHz5-0000rK-Vt for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Oct 2014 07:22:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZHyy-0000p7-8f for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 07:22:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZHys-0007jR-HG for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 07:22:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37138) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZHys-0007jM-Du for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XZHyr-0007VS-SI for bug-gnu-emacs@gnu.org; Wed, 01 Oct 2014 07:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rasmus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 01 Oct 2014 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18582-submit@debbugs.gnu.org id=B18582.141216249128739 (code B ref 18582); Wed, 01 Oct 2014 11:22:01 +0000 Original-Received: (at 18582) by debbugs.gnu.org; 1 Oct 2014 11:21:31 +0000 Original-Received: from localhost ([127.0.0.1]:56935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZHyM-0007TQ-JP for submit@debbugs.gnu.org; Wed, 01 Oct 2014 07:21:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:51550) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XZHyI-0007T1-9d for 18582@debbugs.gnu.org; Wed, 01 Oct 2014 07:21:27 -0400 Original-Received: from x200s ([109.201.154.144]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MOfx8-1XeG2v1oxC-006B0n; Wed, 01 Oct 2014 13:21:23 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAANlBMVEX+/v7f3+CTk5O/v8C/ wMHPz8+fn6Cvr7C/wL92dXahoZ/AwL9MTEyAgH9gX19+f4AwLzN/gIBRedkoAAAACXBIWXMAAABI AAAASABGyWs+AAABfUlEQVRIDd3B0VbbQBBEwdstzYx3BYL8/88GYTCytD5xHpMq/gGyp5m/EInK xfMs4JLBs9TYZOdZ0diExZOisVHjGVGhamyi8UCJb2qVruTT1BkKZ4ovZsdiJJJwcBVN3CgZagJP fPHCTQYjaoIsNmEXNzInilryRZAFyGIvxUG89mmeJwFZgIM9JQc9uXEA6YUdc1S+iC/mgxs7FRwo X1ZxNRfQ2FNxr79N4qYL5IUdc68He1MIWvAjxR3ZYk9C4keKg7k1u4sHOiOqtTMiOg8EI9mCxyRO ojkYirf1tVmcRDaBOPAaHElsZidKcW9loAKIjGRdm8VeFQNeyjlX87unEDeKOV5Wzpa2CGaxF79a a3YWZ9E5m9bgEQcDsvsiBi5mLPz+xtnUxICytRQnYTMg58KZyilGmjgLu8RYBgfKluJKTRyVS3yR FjsnvskhdAlXEWGuFOXszp5pX4KdFIKoJYJ7+sTRpap6Zs+Ne9XCn+hDzDEvl6k24j/wGxJYCCwe kUkPAAAAAElFTkSuQmCC In-Reply-To: (Stefan Monnier's message of "Tue, 30 Sep 2014 20:45:29 -0400") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-Provags-ID: V03:K0:UvUuTK9wF29GKP/kt1qerxwzpzhkWkV3NzAY891M3DEl/Z4zrfu 7dlKrRWNzLXq8TuhOmZ3Vq835deJnsE1I/rE+2BfUV2iY2ZznfC79g2cWoEZqgqvsqnaDSH IbU4JUqo+B1zBY3FKhIOLeuW90UKenAlqmviNy5XKuwgOKBBffBpoVdkeyefWxg7EE2faLB XUOEaVhW1TiF/+BxpKdEg== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93955 Archived-At: Stefan Monnier writes: >> When I try to complete something in a python-buffer I get an error >> with the below backtrace. I couldn't find other reports on this >> issue, but maybe I overlooked something? > > Could you try it with the code from the `emacs-24' branch instead? > I tried your recipe and got a backtrace, but a different one. I think > I fixed it. Okay, I changed my build-script to download from: http://bzr.savannah.gnu.org/r/emacs/emacs-24/ It was trunk at the end of the url before. I don't know bzr well, so I might have done something wrong. If this means anything to you:=20 (emacs-bzr-get-version) =3D> "ueno@gnu.org-20141001022515-zphv3mmopxc6h5gs" >> write im=20 >> press M-Tab, should expand to import > > This now works for me now in `emacs-24'. Not for me (using python3). Backtrace: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) buffer-substring-no-properties(nil 5) python-shell-completion-at-point(#) python-completion-at-point() completion--capf-wrapper(python-completion-at-point all) run-hook-wrapped(completion--capf-wrapper python-completion-at-point all) completion-at-point() funcall-interactively(completion-at-point) call-interactively(completion-at-point nil nil) command-execute(completion-at-point) >> Here's another backtrace. To get it I do >> import num >> Press M-Tab, should expand to numpy > > In the new code in emacs-24, I don't get a backtrace for this one, but > I also don't get any completion. Fabi=C3=A1n? Numpy was a bad example as it's an external library. I get completion in my file-buffer, not in the shell-buffer. I guess that's another bug in itself. Maybe that's why we are seeing different things. Here's when I try to expand datetime, which should be Python-core import datet [TAB] Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) buffer-substring-no-properties(nil 13) python-shell-completion-at-point(#) python-completion-at-point() completion--capf-wrapper(python-completion-at-point all) run-hook-wrapped(completion--capf-wrapper python-completion-at-point all) completion-at-point() funcall-interactively(completion-at-point) call-interactively(completion-at-point nil nil) command-execute(completion-at-point) This is the backtrace is identical when I use python2. I could try to step through `python-shell-completion-at-point' to get a better understanding of where the bug is from. =E2=80=94Rasmus --=20 When the facts change, I change my mind. What do you do, sir?