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 closes with save while breakpoint open #54012

Closed
Jimbofbx mannequin opened this issue Sep 8, 2010 · 6 comments
Closed

IDLE closes with save while breakpoint open #54012

Jimbofbx mannequin opened this issue Sep 8, 2010 · 6 comments
Assignees
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@Jimbofbx
Copy link
Mannequin

Jimbofbx mannequin commented Sep 8, 2010

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

    @Jimbofbx
    Copy link
    Mannequin Author

    Jimbofbx mannequin commented Sep 8, 2010

    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.

    @Jimbofbx Jimbofbx mannequin added type-crash A hard crash of the interpreter, possibly with a core dump topic-IDLE labels Sep 8, 2010
    @serwy
    Copy link
    Mannequin

    serwy mannequin commented Apr 14, 2012

    This is a duplicate of bpo-6257.

    @serwy serwy mannequin closed this as completed Apr 14, 2012
    @serwy
    Copy link
    Mannequin

    serwy mannequin commented Jul 18, 2012

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

    @serwy serwy mannequin reopened this Jul 18, 2012
    @serwy
    Copy link
    Mannequin

    serwy mannequin commented Jul 18, 2012

    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.

    @serwy serwy mannequin added type-bug An unexpected behavior, bug, or error and removed type-crash A hard crash of the interpreter, possibly with a core dump labels Jul 18, 2012
    @asvetlov asvetlov self-assigned this Jul 30, 2012
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Jul 31, 2012

    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

    @asvetlov
    Copy link
    Contributor

    Thanks, Roger!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant