dpo / atom-python-debugger

IDE-like Python debugger for Atom
MIT License
42 stars 13 forks source link

Uncaught error: This socket is closed #25

Open syntaxaire opened 7 years ago

syntaxaire commented 7 years ago

Same as in #12, that one was closed with a request to open a new issue if it happened again.

Steps to reproduce:

  1. Running debugger on project Frescobaldi (https://github.com/wbsoft/frescobaldi)
  2. Viewing file textedit.py in frescobaldi_app subdirectory, set a breakpoint on line 48, m = textedit_match(url)
  3. Enter debugger command "e=../frescobaldi"
  4. Press "run" button in debugger console
  5. Debugger exits with code: 1
  6. Press "run" button in debugger console again
  7. Crash

Atom: 1.16.0 x64 Electron: 1.3.13 OS: Ubuntu 17.04 Thrown From: python-debugger package 0.2.0

Stack Trace

Uncaught Error: This socket is closed

At events.js:160

Error: This socket is closed
    at Socket._writeGeneric (net.js:673:19)
    at Socket._write (net.js:725:8)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Socket.Writable.write (_stream_writable.js:220:11)
    at Socket.write (net.js:651:40)
    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/python-debugger/node_modules/space-pen/lib/space-pen.js:220:36)
    at HTMLButtonElement.dispatch (/packages/python-debugger/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLButtonElement.elemData.handle (/packages/python-debugger/node_modules/jquery/dist/jquery.js:4121:28)

Commands

  6x -4:27.2.0 core:backspace (input.hidden-input)
     -4:20.7.0 core:confirm (input.hidden-input)
     -1:56 application:add-project-folder (span.name.icon.icon-file-text)
     -1:26.1.0 python-debugger:toggle (input.hidden-input)
     -1:16.1.0 python-debugger:breakpoint (input.hidden-input)
     -0:55.1.0 core:confirm (input.hidden-input)

Non-Core Packages

autocomplete-python 1.8.63 
busy-signal 1.3.0 
Hydrogen 1.11.2 
intentions 1.1.2 
linter 2.1.4 
linter-pycodestyle 2.0.2 
linter-tidy 2.3.1 
linter-ui-default 1.2.3 
python-debugger 0.2.0 
python-indent 1.0.2 
python-tools 0.6.9