Skip to content

Uncaught Error: Cannot call write after a stream was destroyed #62

Description

@BAXYCode

[Enter steps to reproduce:]

tried running debbuger on this code:

days = 10
file_list = ['l', 'b', 'c', 'd', 'f', 't', 'd']
if days > 0:
    for y in range(len(file_list)):
        days -= 1
        print(days)

Atom: 1.58.0 x64
Electron: 9.4.4
OS: Microsoft Windows 10 Home
Thrown From: python-debugger package 0.2.0

Stack Trace

Uncaught Error: Cannot call write after a stream was destroyed

At events.js:200

Error [ERR_STREAM_DESTROYED] [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed
    at doWrite (_stream_writable.js:431:19)
    at writeOrBuffer (_stream_writable.js:419:5)
    at Socket.Writable.write (_stream_writable.js:309:11)
    at PythonDebuggerView.module.exports.PythonDebuggerView.stopApp (/packages/python-debugger/lib/python-debugger-view.coffee:129:29)
    at PythonDebuggerView.module.exports.PythonDebuggerView.runApp (/packages/python-debugger/lib/python-debugger-view.coffee:72:6)
    at /packages/script/node_modules/space-pen/lib/space-pen.js:220:36)
    at HTMLButtonElement.dispatch (/packages/script/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (/packages/script/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -5:34.6.0 intentions:highlight (input.hidden-input)
     -5:33.9.0 editor:paste-without-reformatting (input.hidden-input)
     -5:31.6.0 core:undo (input.hidden-input)
     -5:31.3.0 intentions:highlight (input.hidden-input)
     -5:30.7.0 script:run (input.hidden-input)
  3x -5:21 core:backspace (input.hidden-input)
     -5:04.0 intentions:highlight (input.hidden-input)
     -5:03.3.0 script:run (input.hidden-input)
     -4:44.8.0 core:backspace (input.hidden-input)
     -4:44 intentions:highlight (input.hidden-input)
     -4:43.3.0 script:run (input.hidden-input)
     -3:59.8.0 core:copy (span.syntax--meta.syntax--method-call.syntax--python)
     -3:26.8.0 python-debugger:toggle (input.hidden-input)
     -3:04.8.0 core:save-as (input.hidden-input)
  4x -2:46.6.0 core:backspace (input.hidden-input)
  2x -2:41.6.0 core:confirm (input.hidden-input)

Non-Core Packages

autocomplete-python 1.17.0 
busy-signal 2.0.1 
file-icons 2.1.47 
intentions 2.1.1 
linter 3.4.0 
linter-flake8 2.4.0 
linter-ui-default 3.4.1 
minimap 4.40.0 
predawn-syntax 1.0.4 
python-autopep8 0.1.3 
python-debugger 0.2.0 
script 3.32.2 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions