GNU bug report logs -
#25067
Emacs pretest 25.1.90 - ipython completion
Previous Next
Reported by: Edward Flanigan <eflanigan00 <at> hotmail.com>
Date: Tue, 29 Nov 2016 21:04:02 UTC
Severity: normal
Tags: fixed
Merged with 25614
Fixed in version 25.2
Done: npostavs <at> users.sourceforge.net
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 25067 in the body.
You can then email your comments to 25067 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Tue, 29 Nov 2016 21:04:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Edward Flanigan <eflanigan00 <at> hotmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 29 Nov 2016 21:04:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The ipython shell no longer recognizes my company popup on import
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
IPython 5.1.0 -- An enhanced Interactive Python.
import num will trigger completions in Emacs 25.1.1 but not Emacs 25.1.90.1
Once I import a module everything works fine in both versions
import numpy as np
np.ara # I get popup completion for both versions of Emacs.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Tue, 29 Nov 2016 21:14:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 25067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I'm not sure if this is related but also in ipython.
I don't get tab completion when I try to use 'run'.
> run afile.py
afile.py is in the working directory and completes properly in emacs 25.1 but not 25.1.9.1
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Tue, 29 Nov 2016 23:03:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 25067 <at> debbugs.gnu.org (full text, mbox):
On Tue, Nov 29, 2016 at 4:12 PM, Edward Flanigan
<eflanigan00 <at> hotmail.com> wrote:
> I'm not sure if this is related but also in ipython.
>
> I don't get tab completion when I try to use 'run'.
>
>
>> run afile.py
>
>
> afile.py is in the working directory and completes properly in emacs 25.1
> but not 25.1.9.1
This looks related to #24401.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sun, 18 Dec 2016 15:24:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 25067 <at> debbugs.gnu.org (full text, mbox):
> From: Noam Postavsky <npostavs <at> users.sourceforge.net>
> Date: Tue, 29 Nov 2016 18:02:40 -0500
> Cc: "25067 <at> debbugs.gnu.org" <25067 <at> debbugs.gnu.org>
>
> On Tue, Nov 29, 2016 at 4:12 PM, Edward Flanigan
> <eflanigan00 <at> hotmail.com> wrote:
> > I'm not sure if this is related but also in ipython.
> >
> > I don't get tab completion when I try to use 'run'.
> >
> >
> >> run afile.py
> >
> >
> > afile.py is in the working directory and completes properly in emacs 25.1
> > but not 25.1.9.1
>
> This looks related to #24401.
Clément, could you please look into this? I'd like to fix this for
Emacs 25.2.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sun, 18 Dec 2016 16:18:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 25067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2016-12-18 10:23, Eli Zaretskii wrote:
>> From: Noam Postavsky <npostavs <at> users.sourceforge.net>
>> Date: Tue, 29 Nov 2016 18:02:40 -0500
>> Cc: "25067 <at> debbugs.gnu.org" <25067 <at> debbugs.gnu.org>
>>
>> On Tue, Nov 29, 2016 at 4:12 PM, Edward Flanigan
>> <eflanigan00 <at> hotmail.com> wrote:
>>> I'm not sure if this is related but also in ipython.
>>>
>>> I don't get tab completion when I try to use 'run'.
>
> Clément, could you please look into this? I'd like to fix this for
> Emacs 25.2.
Sure.
Edward, can you clarify which settings you're using? A recipe starting from emacs -Q would be ideal.
(IPython doesn't seem to work at all for me in Emacs; it was broken by 227e996946d4629fa8f6d665564a37668290c87f)
Cheers,
Clément.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sun, 18 Dec 2016 17:03:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 25067 <at> debbugs.gnu.org (full text, mbox):
> Cc: eflanigan00 <at> hotmail.com, 25067 <at> debbugs.gnu.org
> From: Clément Pit--Claudel <clement.pit <at> gmail.com>
> Date: Sun, 18 Dec 2016 11:16:50 -0500
>
> > Clément, could you please look into this? I'd like to fix this for
> > Emacs 25.2.
>
> Sure.
Thanks.
> (IPython doesn't seem to work at all for me in Emacs; it was broken by 227e996946d4629fa8f6d665564a37668290c87f)
Is there a bug report about that?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sun, 18 Dec 2016 17:31:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 25067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2016-12-18 12:01, Eli Zaretskii wrote:
>> (IPython doesn't seem to work at all for me in Emacs; it was broken by 227e996946d4629fa8f6d665564a37668290c87f)
>
> Is there a bug report about that?
I just created one (#25222).
Clément.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Tue, 03 Jan 2017 17:29:02 GMT)
Full text and
rfc822 format available.
Message #26 received at 25067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
IPython 5.1.0 -- An enhanced Interactive Python.
Recipe is the following:
emacs -q
eval-region on this:
(setq
python-shell-interpreter "ipython3"
python-shell-interpreter-args "--simple-prompt --pprint")
Then open *Python* which will be ipython 5.1.0
The following don't work anymore in the pre-test
1.) import num [TAB] shows possible completions in 25.1.1 but doesn't in the pretest
2.) run afile [TAB] shows possible completions for the files in the directory that match afile*
3.) cd adirec [TAB] shows possible completions
[Message part 2 (text/html, inline)]
Merged 25067 25614.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 03 Feb 2017 19:39:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sat, 04 Feb 2017 00:03:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 25067 <at> debbugs.gnu.org (full text, mbox):
Edward Flanigan <eflanigan00 <at> hotmail.com> writes:
> Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:53:06)
> IPython 5.1.0 -- An enhanced Interactive Python.
>
> Recipe is the following:
>
> emacs -q
>
> eval-region on this:
>
> (setq
> python-shell-interpreter "ipython3"
> python-shell-interpreter-args "--simple-prompt --pprint")
>
> Then open *Python* which will be ipython 5.1.0
>
> The following don't work anymore in the pre-test
>
> 1.) import num [TAB] shows possible completions in 25.1.1 but doesn't in the pretest
>
> 2.) run afile [TAB] shows possible completions for the files in the directory that match afile*
>
> 3.) cd adirec [TAB] shows possible completions
The behaviour from 25.1 can be restored by doing
(add-to-list 'python-shell-completion-native-disabled-interpreters
"ipython")
So it looks like the problem is the fix for #24401 which enables native
completion work for python 3.5, also enables it for ipython, but native
completion doesn't actually work for ipython.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sat, 04 Feb 2017 08:57:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 25067 <at> debbugs.gnu.org (full text, mbox):
> From: npostavs <at> users.sourceforge.net
> Date: Fri, 03 Feb 2017 19:03:40 -0500
> Cc: "25067 <at> debbugs.gnu.org" <25067 <at> debbugs.gnu.org>
>
> The behaviour from 25.1 can be restored by doing
>
> (add-to-list 'python-shell-completion-native-disabled-interpreters
> "ipython")
>
> So it looks like the problem is the fix for #24401 which enables native
> completion work for python 3.5, also enables it for ipython, but native
> completion doesn't actually work for ipython.
Is there any safe way to fix this for Emacs 25.2?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sat, 04 Feb 2017 14:39:01 GMT)
Full text and
rfc822 format available.
Message #37 received at 25067 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: npostavs <at> users.sourceforge.net
>> Date: Fri, 03 Feb 2017 19:03:40 -0500
>> Cc: "25067 <at> debbugs.gnu.org" <25067 <at> debbugs.gnu.org>
>>
>> The behaviour from 25.1 can be restored by doing
>>
>> (add-to-list 'python-shell-completion-native-disabled-interpreters
>> "ipython")
>>
>> So it looks like the problem is the fix for #24401 which enables native
>> completion work for python 3.5, also enables it for ipython, but native
>> completion doesn't actually work for ipython.
>
> Is there any safe way to fix this for Emacs 25.2?
I think the patch below is safe. Although I can't say that I understand
what "native completion" actually means.
--- i/lisp/progmodes/python.el
+++ w/lisp/progmodes/python.el
@@ -3255,8 +3255,10 @@ python-shell-completion-string-code
"Completion string code must work for (i)pdb.")
(defcustom python-shell-completion-native-disabled-interpreters
- ;; PyPy's readline cannot handle some escape sequences yet.
- (list "pypy")
+ ;; PyPy's readline cannot handle some escape sequences yet. Native
+ ;; completion was found to be non-functional for IPython (see
+ ;; Bug#25067).
+ (list "pypy" "ipython")
"List of disabled interpreters.
When a match is found, native completion is disabled."
:version "25.1"
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Sat, 04 Feb 2017 16:54:01 GMT)
Full text and
rfc822 format available.
Message #40 received at 25067 <at> debbugs.gnu.org (full text, mbox):
> From: npostavs <at> users.sourceforge.net
> Cc: 25067 <at> debbugs.gnu.org, eflanigan00 <at> hotmail.com
> Date: Sat, 04 Feb 2017 09:39:46 -0500
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> From: npostavs <at> users.sourceforge.net
> >> Date: Fri, 03 Feb 2017 19:03:40 -0500
> >> Cc: "25067 <at> debbugs.gnu.org" <25067 <at> debbugs.gnu.org>
> >>
> >> The behaviour from 25.1 can be restored by doing
> >>
> >> (add-to-list 'python-shell-completion-native-disabled-interpreters
> >> "ipython")
> >>
> >> So it looks like the problem is the fix for #24401 which enables native
> >> completion work for python 3.5, also enables it for ipython, but native
> >> completion doesn't actually work for ipython.
> >
> > Is there any safe way to fix this for Emacs 25.2?
>
> I think the patch below is safe.
I agree. Clément, any objections?
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Tue, 07 Feb 2017 01:53:02 GMT)
Full text and
rfc822 format available.
Message #43 received at 25067 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2017-02-04 11:52, Eli Zaretskii wrote:
>> From: npostavs <at> users.sourceforge.net
>> Cc: 25067 <at> debbugs.gnu.org, eflanigan00 <at> hotmail.com
>> Date: Sat, 04 Feb 2017 09:39:46 -0500
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>>>> From: npostavs <at> users.sourceforge.net
>>>> Date: Fri, 03 Feb 2017 19:03:40 -0500
>>>> Cc: "25067 <at> debbugs.gnu.org" <25067 <at> debbugs.gnu.org>
>>>>
>>>> The behaviour from 25.1 can be restored by doing
>>>>
>>>> (add-to-list 'python-shell-completion-native-disabled-interpreters
>>>> "ipython")
>>>>
>>>> So it looks like the problem is the fix for #24401 which enables native
>>>> completion work for python 3.5, also enables it for ipython, but native
>>>> completion doesn't actually work for ipython.
>>>
>>> Is there any safe way to fix this for Emacs 25.2?
>>
>> I think the patch below is safe.
>
> I agree. Clément, any objections?
None. The patch looks great, thanks!
Clément.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Tue, 07 Feb 2017 15:36:02 GMT)
Full text and
rfc822 format available.
Message #46 received at 25067 <at> debbugs.gnu.org (full text, mbox):
> Cc: 25067 <at> debbugs.gnu.org, eflanigan00 <at> hotmail.com
> From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
> Date: Mon, 6 Feb 2017 20:51:46 -0500
>
> >>>> The behaviour from 25.1 can be restored by doing
> >>>>
> >>>> (add-to-list 'python-shell-completion-native-disabled-interpreters
> >>>> "ipython")
> >>>>
> >>>> So it looks like the problem is the fix for #24401 which enables native
> >>>> completion work for python 3.5, also enables it for ipython, but native
> >>>> completion doesn't actually work for ipython.
> >>>
> >>> Is there any safe way to fix this for Emacs 25.2?
> >>
> >> I think the patch below is safe.
> >
> > I agree. Clément, any objections?
>
> None. The patch looks great, thanks!
Thanks. Let's get it into the emacs-25 branch, then.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#25067
; Package
emacs
.
(Wed, 08 Feb 2017 02:21:01 GMT)
Full text and
rfc822 format available.
Message #49 received at 25067 <at> debbugs.gnu.org (full text, mbox):
tags 25067 fixed
close 25067 25.2
quit
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Cc: 25067 <at> debbugs.gnu.org, eflanigan00 <at> hotmail.com
>> From: Clément Pit--Claudel <clement.pitclaudel <at> live.com>
>> Date: Mon, 6 Feb 2017 20:51:46 -0500
>>
>> >>>> The behaviour from 25.1 can be restored by doing
>> >>>>
>> >>>> (add-to-list 'python-shell-completion-native-disabled-interpreters
>> >>>> "ipython")
>> >>>>
>> >>>> So it looks like the problem is the fix for #24401 which enables native
>> >>>> completion work for python 3.5, also enables it for ipython, but native
>> >>>> completion doesn't actually work for ipython.
>> >>>
>> >>> Is there any safe way to fix this for Emacs 25.2?
>> >>
>> >> I think the patch below is safe.
>> >
>> > I agree. Clément, any objections?
>>
>> None. The patch looks great, thanks!
>
> Thanks. Let's get it into the emacs-25 branch, then.
Pushed [1: 0ba9932d14]
1: 2017-02-07 21:18:19 -0500 0ba9932d1446e91fcc96f1d3303fac5ca5029d71
Disable native completion for ipython (Bug#25067)
Added tag(s) fixed.
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Wed, 08 Feb 2017 02:21:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 25.2, send any further explanations to
25067 <at> debbugs.gnu.org and Edward Flanigan <eflanigan00 <at> hotmail.com>
Request was from
npostavs <at> users.sourceforge.net
to
control <at> debbugs.gnu.org
.
(Wed, 08 Feb 2017 02:21:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 08 Mar 2017 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 8 years and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.