Skip to content

IDLE completions: format, factor, and fix tasks #71796

Open

Description

@terryjreedy
BPO 27609
Nosy @terryjreedy, @csabella
Dependencies
  • bpo-16198: IDLE - tabbing in a string always brings up file completion window
  • bpo-17238: IDLE: Add import statement completion
  • bpo-18766: IDLE: Autocomplete in editor doesn't work for un-imported modules
  • bpo-21261: Teach IDLE to Autocomplete dictionary keys
  • bpo-22554: Idle: optionally auto-pop-up completion window for names
  • bpo-27099: IDLE: turn built-in extensions into regular modules
  • bpo-27534: IDLE: Reduce number and time for user process imports
  • bpo-27675: IDLE file completion has 2 bugs depending on open quote used
  • bpo-30632: IDLE: add unittests to test_autocomplete
  • bpo-30666: IDLE: add tests for autocomplete window.
  • bpo-30667: IDLE: revise doc subsection 'Completions'
  • bpo-37765: IDLE: Include keywords in module-level autocomplete list
  • bpo-37766: IDLE autocomplete: revise fetch_completions, add htest
  • bpo-38943: Idle autocomplete window doesn't show up
  • bpo-38944: Idle completion windows should close on Escape key
  • bpo-40892: IDLE: use rlcompleter suffixed for completions
  • 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 = None
    created_at = <Date 2016-07-25.00:03:08.689>
    labels = ['expert-IDLE', 'type-bug', '3.10']
    title = 'IDLE completions: format, factor, and fix'
    updated_at = <Date 2020-07-09.23:51:51.090>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2020-07-09.23:51:51.090>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = False
    closed_date = None
    closer = None
    components = ['IDLE']
    creation = <Date 2016-07-25.00:03:08.689>
    creator = 'terry.reedy'
    dependencies = ['16198', '17238', '18766', '21261', '22554', '27099', '27534', '27675', '30632', '30666', '30667', '37765', '37766', '38943', '38944', '40892']
    files = []
    hgrepos = []
    issue_num = 27609
    keywords = []
    message_count = 13.0
    messages = ['271186', '271187', '271190', '271214', '271923', '296032', '296033', '316311', '349070', '358150', '370846', '373265', '373433']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'cheryl.sabella']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27609'
    versions = ['Python 3.10']

    Activity

    1. terryjreedy commented on Jul 25, 2016

      @terryjreedy
      MemberAuthor

      IDLE completions are currently implemented in two files: autocomplete.py and autocomplete_w.py. The first handles 'open' events, decides whether to open a window, and gathers possible completions. The second open a popup and works with the sorted list of possible completions.

      FIX

      Question: Why does 'dooneevent' appear in 2.x code and not 3.x code?

      Tests: The currently only for a subset of autocomplete methods. There are none for the buggy window.

    2. self-assigned this
      on Jul 25, 2016
    3. added
      type-bug
      on Jul 25, 2016
    4. terryjreedy commented on Jul 25, 2016

      @terryjreedy
      MemberAuthor

      Add dependencies. Last two, bpo-27099 and bpo-27534 involve multiple files and should be removed from this autocomplete list when autocomplete part is done.

    5. python-dev commented on Jul 25, 2016

      python-devmannequin
      Mannequin

      New changeset 1ec47de72538 by Terry Jan Reedy in branch 'default':
      Issue bpo-27609: Explicitly return None when there are other returns.
      https://hg.python.org/cpython/rev/1ec47de72538

    6. terryjreedy commented on Aug 3, 2016

      @terryjreedy
      MemberAuthor

      Add bpo-27675. If open quote is ' or '', actions (character key or box selection with up or down arrow) after first are not colored. ' and ''' do not complete, when needed, nor close.

    7. terryjreedy commented on Jun 14, 2017

      @terryjreedy
      MemberAuthor

      bpo-30666 Add completion tests
      bpo-30667 Revise completion doc
      bpo-15786 and additional discussion of completion behavior
      Tab in opened box should and usually completes, but sometimes not. I don't have a consistent example.

    8. terryjreedy commented on Jun 14, 2017

      @terryjreedy
      MemberAuthor

      bpo-30632 autocomplete tests
      bpo-30666 autocomplete_w tests

    9. terryjreedy commented on May 9, 2018

      @terryjreedy
      MemberAuthor

      In re-verifying bpo-27675, the color bug seems to be gone. The completion bug is still here, at least on Windows.

      It would be good to sort the issues by whether they appear to affect autocomplete.py or autocomplete_w.py or both.

    10. added
      3.7 (EOL)
      3.8 (EOL)
      on May 9, 2018
    11. terryjreedy commented on Aug 5, 2019

      @terryjreedy
      MemberAuthor

      bpo-37765 Include keywords in ''(main) list.

      ###### Annotate completion list, at least as an option, with 'keyword' or class, possibly prefixed with 'built-in', so 'built-in function', 'function', and so on.

      bpo-37766 revise fetch_completions, add htest

    12. terryjreedy commented on Dec 9, 2019

      @terryjreedy
      MemberAuthor

      bpo-38943 Autocomplete box sometimes does not show on Ubuntu.
      bpo-38944 Excape key should close completion box.

    13. terryjreedy commented on Jun 6, 2020

      @terryjreedy
      MemberAuthor

      bpo-40892 Use prefixes from rlcompleter. Compute constant once.

    14. added
      3.10 (EOL)
      and removed
      3.7 (EOL)
      3.8 (EOL)
      on Jun 6, 2020
    15. terryjreedy commented on Jul 7, 2020

      @terryjreedy
      MemberAuthor

      Normally, tab completion works for attributes (after '.' and a possible prefix) and files (after os.sep and a possible prefix). Unique matches to prefixes are immediately selected, as for undotted module names. After changing the completion wait time and before restarting, this is disabled and tab adds spaces instead. This need a new issue and fix.

    16. terryjreedy commented on Jul 9, 2020

      @terryjreedy
      MemberAuthor

      The removed post duplicates the content of bpo-37766. Another bug is reported and will be fixed there.

    17. transferred this issue fromon Apr 10, 2022
    18. changed the title [-]IDLE completions: format, factor, and fix[/-] [+]IDLE completions: format, factor, and fix tasks[/+] on Oct 5, 2022
    19. removed
      type-bug
      3.10 (EOL)
      on Oct 5, 2022
    20. added
      type-bug
      on Jan 15, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    topic-IDLEtype-bug

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions