Repository navigation
Closed
Labels
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = 'https://github.com/terryjreedy'
closed_at = <Date 2021-06-12.04:48:58.260>
created_at = <Date 2020-08-21.17:51:37.650>
labels = ['OS-mac', 'expert-IDLE', '3.9', '3.10', '3.11']
title = 'IDLE: problems with completions on Mac'
updated_at = <Date 2021-06-12.04:48:58.260>
user = 'https://github.com/rhettinger'bugs.python.org fields:
activity = <Date 2021-06-12.04:48:58.260>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = True
closed_date = <Date 2021-06-12.04:48:58.260>
closer = 'terry.reedy'
components = ['IDLE', 'macOS']
creation = <Date 2020-08-21.17:51:37.650>
creator = 'rhettinger'
dependencies = []
files = []
hgrepos = []
issue_num = 41611
keywords = ['patch']
message_count = 21.0
messages = ['375764', '375767', '375768', '375769', '380925', '394508', '394523', '394527', '394528', '394530', '394531', '394543', '394544', '394546', '394587', '394591', '394634', '394635', '394636', '394637', '395676']
nosy_count = 8.0
nosy_names = ['rhettinger', 'terry.reedy', 'ronaldoussoren', 'vstinner', 'taleinat', 'ned.deily', 'serhiy.storchaka', 'miss-islington']
pr_nums = ['26400', '26401', '26402', '26404', '26419', '26420']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue41611'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']
Activity
rhettinger commentedon Aug 21, 2020
In case it is helpful, here is the error log from a recent full-day IDLE session.
terryjreedy commentedon Aug 21, 2020
The Mac-specific shutdown warning from multiprocessing is not directly related to IDLE. 'multiprocessing' is not imported by IDLE and is not in sys.modules when IDLE starts.
From 'all-day' I assume that there was a time period between starting IDLE and getting the traceback.
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 1885, in __call__
return self.func(*args)
__call__ here is a method of CallWrapper, often used for event handlers.
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/idlelib/autocomplete_w.py", line 248, in winconfig_event
acw_width, acw_height = acw.winfo_width(), acw.winfo_height()
winconfig_event handles tk '<configure>' events. "A Configure event is sent to a window whenever its size, position, or border width changes, and sometimes when it has changed position in the stacking order." IDLE triggers it somehow. It has had intermittent bugs before.
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 1291, in winfo_width
self.tk.call('winfo', 'width', self._w))
_tkinter.TclError: bad window path name ".!listedtoplevel4.!frame.text.!toplevel2"
The name is for an editor window (listedtoplevel) with a frame with a text with a popup (unlisted toplevel). The toplevel2 suggests that this is the second popup for this text. The name looks correct except that I expected 'text' to maybe be '!text'. In any case, the name is generated by tkinter without IDLE being involved.
[-]IDLE warnings and exceptions[/-][+]IDLE: problem[/+][-]IDLE warnings and exceptions[/-][+]IDLE: problem[/+]terryjreedy commentedon Aug 21, 2020
Serhiy, should 'text' be '!text' in a tkinter-generated widget name?
terryjreedy commentedon Aug 21, 2020
On my Macbook Air Mohave, I don't get completion boxes on either 3.8.3rc1 or 3.9.0rc1, even when clicking Edit => Show completions. Nor does IDLE quit or print anything in Terminal.
[-]IDLE: problem[/-][+]IDLE: problems with completions on Mac[/+]18 remaining items
terryjreedy commentedon May 27, 2021
The completion freeze fix is easily backported to non-Windows installations.
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<tab><tab><tab>' = print, 'int.<tab><tab>' = 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.
taleinat commentedon May 28, 2021
New changeset 4e2e5c1 by Tal Einat in branch 'main':
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winconfig_event() (GH-26404)
4e2e5c1
taleinat commentedon May 28, 2021
New changeset 448abe8 by Miss Islington (bot) in branch '3.10':
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winconfig_event() (GH-26404)
448abe8
taleinat commentedon May 28, 2021
New changeset 21a56a4 by Miss Islington (bot) in branch '3.9':
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winconfig_event() (GH-26404)
21a56a4
taleinat commentedon May 28, 2021
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.
terryjreedy commentedon Jun 12, 2021
bpo-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.
bpo-41859 is another report by Raymond of a 'random' ValueError connected with completions. Closed as a duplicate of this.
I opened bpo-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.