Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
terryjreedy opened this issue Jul 25, 2016 · 12 comments
Open

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

terryjreedy opened this issue Jul 25, 2016 · 12 comments
Assignees

Comments

@terryjreedy
Copy link
Member

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']

    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Jul 25, 2016

    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.

    @terryjreedy terryjreedy self-assigned this Jul 25, 2016
    @terryjreedy terryjreedy added the type-bug An unexpected behavior, bug, or error label Jul 25, 2016
    @terryjreedy
    Copy link
    Member Author

    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.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 25, 2016

    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

    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Aug 3, 2016

    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.

    @terryjreedy
    Copy link
    Member Author

    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.

    @terryjreedy
    Copy link
    Member Author

    bpo-30632 autocomplete tests
    bpo-30666 autocomplete_w tests

    @terryjreedy
    Copy link
    Member Author

    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.

    @terryjreedy terryjreedy added 3.7 (EOL) end of life 3.8 only security fixes labels May 9, 2018
    @terryjreedy
    Copy link
    Member Author

    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

    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Dec 9, 2019

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

    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Jun 6, 2020

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

    @terryjreedy terryjreedy added 3.10 only security fixes and removed 3.7 (EOL) end of life 3.8 only security fixes labels Jun 6, 2020
    @terryjreedy
    Copy link
    Member Author

    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.

    @terryjreedy
    Copy link
    Member Author

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

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @terryjreedy terryjreedy changed the title IDLE completions: format, factor, and fix IDLE completions: format, factor, and fix tasks Oct 5, 2022
    @terryjreedy terryjreedy removed type-bug An unexpected behavior, bug, or error 3.10 only security fixes labels Oct 5, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Status: No status
    Development

    No branches or pull requests

    1 participant