[issue41611] IDLE: problems with completions on Mac

2021-06-11 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-06-11 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

#40128, which inserted update_idletasks in a different place, fixed completions 
for me in installed 3.9.5.  They already worked fine for me in installed 
3.10.0b2.

#41859 is another report by Raymond of a 'random' ValueError connected with 
completions.  Closed as a duplicate of this.

I opened #44398 about 'cntl+space' being changed to the currently 
non-functional '^S' as the shortcut for Show completions on the macOS Edit 
menu.  ^space does work.  Nearly the same issue as cntl+backslash for Show 
calltip be displayed as the non-functional ^B.

--
resolution: fixed -> 
stage: resolved -> 
status: closed -> open
type: behavior -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-06-02 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
pull_requests:  -25083

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-06-02 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner
nosy_count: 7.0 -> 8.0
pull_requests: +25083
pull_request: https://github.com/python/cpython/pull/26487

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

Both the original bug reported here, and the bug whereby completion could cause 
IDLE to freeze on macOS, have been fixed and backported to 3.10 and 3.9.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset 21a56a4bce186cd19a50502d2de5117551616005 by Miss Islington (bot) 
in branch '3.9':
bpo-41611: IDLE: Catch TclError exceptions in 
AutoCompleteWindow.winconfig_event() (GH-26404)
https://github.com/python/cpython/commit/21a56a4bce186cd19a50502d2de5117551616005


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset 448abe8d8bcfdf50a5ecae1196199da46bdfed04 by Miss Islington (bot) 
in branch '3.10':
bpo-41611: IDLE: Catch TclError exceptions in 
AutoCompleteWindow.winconfig_event() (GH-26404)
https://github.com/python/cpython/commit/448abe8d8bcfdf50a5ecae1196199da46bdfed04


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25015
pull_request: https://github.com/python/cpython/pull/26420

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +25014
pull_request: https://github.com/python/cpython/pull/26419

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset 4e2e5c1c4f792b4011e4c78d011baea2aee39f1b by Tal Einat in branch 
'main':
bpo-41611: IDLE: Catch TclError exceptions in 
AutoCompleteWindow.winconfig_event() (GH-26404)
https://github.com/python/cpython/commit/4e2e5c1c4f792b4011e4c78d011baea2aee39f1b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

The completion freeze fix is easily backported to non-Windows installations.

1. Run IDLE
2. File => Open Module, enter 'idlelib.autocomplete_w', OK.
3. Goto line 247 (3.9) or 250 (3.10) with "acw.update".
4. Add # in from of above to disable it.
5. Save and close IDLE, then restart.

For me, with 3.10.0b1, this restores full functions, with boxes appearing as 
appropriate.  With 3.9.5, no freeze by also no box.  2 or 3 tabs brings up 
first match.  'pr' = print, 'int.' = 
int.as_integer_ratio.  As far as I know, the file is the same in both versions. 
 Both versions are the same in Shell and Editor, so it is not the improved 3.10 
shell.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

See a second PR for the originally reported bug, GH-26404.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Change by Tal Einat :


--
pull_requests: +24997
pull_request: https://github.com/python/cpython/pull/26404

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread miss-islington


miss-islington  added the comment:


New changeset 65fb9a2701df276852720618bdc2a4bf6adbf810 by Miss Islington (bot) 
in branch '3.9':
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
https://github.com/python/cpython/commit/65fb9a2701df276852720618bdc2a4bf6adbf810


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread miss-islington


miss-islington  added the comment:


New changeset 5e6219b8fa14bc36d1a98dc03b4e01756829fffa by Miss Islington (bot) 
in branch '3.10':
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
https://github.com/python/cpython/commit/5e6219b8fa14bc36d1a98dc03b4e01756829fffa


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread miss-islington


Change by miss-islington :


--
pull_requests: +24995
pull_request: https://github.com/python/cpython/pull/26402

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:


New changeset abc4bd5db91c86b6b74289241378a13bd3a0a5e2 by Tal Einat in branch 
'main':
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
https://github.com/python/cpython/commit/abc4bd5db91c86b6b74289241378a13bd3a0a5e2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 6.0 -> 7.0
pull_requests: +24994
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/26401

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

To clarify, the above is regarding IDLE freezing on macOS after hitting tab to 
complete, with no completions window open, and with multiple completions 
possible.  That may not be identical to the issue originally reported here.  
Apologies if I've caused some confusion.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

See PR GH-26400.

--
stage: patch review -> needs patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Change by Tal Einat :


--
keywords: +patch
pull_requests: +24993
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/26400

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

I've confirmed that the acw.update() call is still required on Windows to avoid 
the completion list positioning bug, and that IDLE doesn't freeze as described 
in this issue on Windows with that call in place.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Change by Tal Einat :


--
stage:  -> needs patch
type:  -> behavior
versions: +Python 3.10, Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

I can reproduce this consistently on macOS by running IDLE, typing "sys.ba" in 
the shell and pressing the tab key.

I've carefully narrowed this down to the call to acw.update() in 
AutoCompleteWindows.winconfig_event().  Removing that call makes everything 
work properly.

That call to acw.update() was added to address the bug reported in bpo-37849 
(see PR GH-15267).  That bug was reported on Windows, but apparently doesn't 
occur on macOS.  A quick test on Ubuntu 20.04 with that call removed also 
appears to not exhibit that bug.

Therefore, I propose making that call only on Windows.

Note that there is already another fragile call in the same method that is 
conditionally called only on Windows, so there is definitely precedent for such 
a solution.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-27 Thread Tal Einat


Tal Einat  added the comment:

> With 3.10.0b1 on Mac I am getting attribute completion freezes.  I had to 
> turn them off.  I am tempted to disable completions until there is a Mac IDLE 
> developer to dig into issues like this.

Confirmed. This may be a separate issue.

I have a macOS machine to develop with an will look into this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2021-05-26 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

With 3.10.0b1 on Mac I am getting attribute completion freezes.  I had to turn 
them off.  I am tempted to disable completions until there is a Mac IDLE 
developer to dig into issues like this.

--
nosy: +taleinat

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2020-11-13 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

It looks like the lack of completions in msg375769 is a problem with Tk 8.6.8 
as used by the python.org installers.

I have a build of master with Tk 8.6.10 on my DTK system and with that 
Edit->Show completions works in a shell window.

However: Ctrl+s does not show the completion pop-up, even though the "Edit" 
button in the application menu flashes (which indicates that Ctrl+s is 
recognised as a keyboard shortcut).  Just using Tab for completion works fine 
though (shows the completion pop-up).

---

I did get a similar traceback to the one in msg375764 once, this is without 
using multiprocessing. I haven't been able to reproduce this yet.

python3.10 -m idlelib  
Exception in Tkinter callback
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py",
 line 1884, in __call__
return self.func(*args)
  File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/idlelib/autocomplete_w.py",
 line 248, in winconfig_event
acw_width, acw_height = acw.winfo_width(), acw.winfo_height()
  File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/__init__.py",
 line 1290, in winfo_width
self.tk.call('winfo', 'width', self._w))
_tkinter.TclError: bad window path name 
".!listedtoplevel.!frame.text.!toplevel8"

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41611] IDLE: problems with completions on Mac

2020-08-21 Thread Terry J. Reedy


Change by Terry J. Reedy :


--
title: IDLE: problem -> IDLE: problems with completions on Mac

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com