Skip to content

Idle hangs when given a nonexistent filename. #49235

Closed

Description

@della1rv
mannequin
BPO 4985
Nosy @kbkaiser
Superseder
  • bpo-3573: IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))
  • Files
  • idle_create_file_if_not_exist.python3_0.patch: Have idle create new files if files specified on the command line do not exist.
  • 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 = None
    closed_at = <Date 2009-08-13.03:29:28.610>
    created_at = <Date 2009-01-18.05:27:49.095>
    labels = ['expert-IDLE']
    title = 'Idle hangs when given a nonexistent filename.'
    updated_at = <Date 2009-08-13.03:29:28.608>
    user = 'https://bugs.python.org/della1rv'

    bugs.python.org fields:

    activity = <Date 2009-08-13.03:29:28.608>
    actor = 'gpolo'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-08-13.03:29:28.610>
    closer = 'gpolo'
    components = ['IDLE']
    creation = <Date 2009-01-18.05:27:49.095>
    creator = 'della1rv'
    dependencies = []
    files = ['12783']
    hgrepos = []
    issue_num = 4985
    keywords = ['patch']
    message_count = 4.0
    messages = ['80079', '84232', '86484', '91513']
    nosy_count = 3.0
    nosy_names = ['kbk', 'gpolo', 'della1rv']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '3573'
    type = None
    url = 'https://bugs.python.org/issue4985'
    versions = ['Python 3.0', 'Python 3.1']

    Activity

    1. della1rv commented on Jan 18, 2009

      della1rvmannequin
      MannequinAuthor

      Idle hangs when given the name of a nonexistent file. The idle window
      briefly appears, then disappears, the process hangs and has to be
      terminated.

      Platform:
      Linux 2.6.22-16-rt #1 SMP PREEMPT RT Mon Nov 24 21:03:25 GMT 2008 i686
      GNU/Linux
      Ubuntu 7.10
      Python3.0 Final built from source.
      tk8.4
      I upgraded to tk8.5, idle still does the same thing.

      To recreate type:
      rm foo.py
      idle foo.py
      # The idle window briefly appears, then disappears, the process hangs
      # and has to be terminated.

      In previous versions of idle any nonexistent files would be created by
      idle. This is what one would expect.

      I have a patch for idlelib/PyShell.py that will make idle create any
      nonexisting files.

    2. gpolo commented on Mar 26, 2009

      gpolomannequin
      Mannequin

      I tried it here but it didn't hang. But I did notice the editor window
      was created and then disappeared, differently from what happens in
      python-trunk.

      I don't believe creating new files is a good solution, idle on
      python-trunk doesn't need to do this to work normally.

    3. gpolo commented on Apr 25, 2009

      gpolomannequin
      Mannequin

      Ah, retried this bug a bit more and found out that to hang you have to
      run idle with the -e option and a non-existing filename.

      Anyway, this was all introduced by r57998.

    4. gpolo commented on Aug 13, 2009

      gpolomannequin
      Mannequin

      Closing this in favour of bpo-3573.

    5. 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

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions