Skip to content

IDLE closes with save while breakpoint open #54012

Closed

Description

@Jimbofbx
mannequin
BPO 9803
Nosy @terryjreedy, @serwy, @asvetlov
Files
  • issue9803.patch
  • 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/asvetlov'
    closed_at = <Date 2012-07-31.16:54:06.140>
    created_at = <Date 2010-09-08.19:42:27.532>
    labels = ['expert-IDLE', 'type-bug']
    title = 'IDLE closes with save while breakpoint open'
    updated_at = <Date 2012-07-31.16:54:06.139>
    user = 'https://bugs.python.org/Jimbofbx'

    bugs.python.org fields:

    activity = <Date 2012-07-31.16:54:06.139>
    actor = 'asvetlov'
    assignee = 'asvetlov'
    closed = True
    closed_date = <Date 2012-07-31.16:54:06.140>
    closer = 'asvetlov'
    components = ['IDLE']
    creation = <Date 2010-09-08.19:42:27.532>
    creator = 'Jimbofbx'
    dependencies = []
    files = ['26432']
    hgrepos = []
    issue_num = 9803
    keywords = ['patch']
    message_count = 6.0
    messages = ['115894', '158293', '165810', '165813', '167018', '167019']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'roger.serwy', 'asvetlov', 'Jimbofbx', 'python-dev']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue9803'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    Activity

    1. Jimbofbx commented on Sep 8, 2010

      Jimbofbxmannequin
      MannequinAuthor

      I have multiple versions of python - 2.6.1 and 3.1.2. 2.6.1 is the primary install (i.e., right click on a file and "edit with IDLE" brings up 2.6), and was installed first. This issue occurs on 3.1.2, Windows XP 32-bit

      If I highlight a breakpoint, run with the debugger, make a change, then save, IDLE will close all windows after saving without an error message. If I clear the breakpoint and then save, IDLE will not close. Reopening the file reveals that the save was successful. I do not need to actually be stopped at a highlighted breakpoint for this to occur (i.e. this will occur if I save at the beginning before the script has ran). If I run with 2.6.1 I do not see this issue. The save difference could be something simple, such as adding a space somewhere random.

    2. serwy commented on Apr 14, 2012

      serwymannequin
      Mannequin

      This is a duplicate of bpo-6257.

    3. serwy commented on Jul 18, 2012

      serwymannequin
      Mannequin

      Reopening. I mistakenly closed this issue as a duplicate, but this issue involves breakpoints, unlike 6257.

    4. reopened this on Jul 18, 2012
    5. serwy commented on Jul 18, 2012

      serwymannequin
      Mannequin

      Attached is a patch to fix the issue. The ranges_to_linenumbers function relies on the results of text.tag_ranges. The returned tuple contains Tk textindex objects. While these objects contain a string, they are not string objects. Its .string value must be used instead.

    6. added
      type-bugAn unexpected behavior, bug, or error
      and removed
      type-crashA hard crash of the interpreter, possibly with a core dump
      on Jul 18, 2012
    7. self-assigned this
      on Jul 30, 2012
    8. python-dev commented on Jul 31, 2012

      python-devmannequin
      Mannequin

      New changeset 47536beb7453 by Andrew Svetlov in branch '3.2':
      Issue bpo-9803: Don't close IDLE on saving if breakpoint is open.
      http://hg.python.org/cpython/rev/47536beb7453

      New changeset 28c935ded243 by Andrew Svetlov in branch 'default':
      Issue bpo-9803: Don't close IDLE on saving if breakpoint is open.
      http://hg.python.org/cpython/rev/28c935ded243

      New changeset 8f1a8e80f330 by Andrew Svetlov in branch '2.7':
      Issue bpo-9803: Don't close IDLE on saving if breakpoint is open.
      http://hg.python.org/cpython/rev/8f1a8e80f330

    9. asvetlov commented on Jul 31, 2012

      @asvetlov
      Contributor

      Thanks, Roger!

    10. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    topic-IDLEtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions