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

Tcp pipe breaks when switching languages #17

Open
matiasmorant opened this issue Oct 13, 2017 · 3 comments
Open

Tcp pipe breaks when switching languages #17

matiasmorant opened this issue Oct 13, 2017 · 3 comments
Labels

Comments

@matiasmorant
Copy link
Owner

No description provided.

@cbrinley219
Copy link

I believe this may be the same issue. is there currently any work around to use python2?

input file

import sys
print sys.argv

went to Tools -> Debugger -> Set Language -> Python2
went to Tools -> Debugger -> Start Debugging

Console output

doesn't want to connect 0 5005
doesn't want to connect 1 5005
doesn't want to connect 2 5005
doesn't want to connect 3 5005
doesn't want to connect 4 5005
doesn't want to connect 5 5005
doesn't want to connect 6 5005
doesn't want to connect 7 5005
doesn't want to connect 8 5005
doesn't want to connect 9 5005
fully connected
language: python2
Started Debugging
Exception in thread Thread-33:
Traceback (most recent call last):
  File "./python3.3/threading.py", line 901, in _bootstrap_inner
  File "./python3.3/threading.py", line 1142, in run
  File "mydebugger in /Users/1334890/Library/Application Support/Sublime Text 3/Installed Packages/Python Debugger.sublime-package", line 45, in <lambda>
  File "backends.db in /Users/1334890/Library/Application Support/Sublime Text 3/Installed Packages/Python Debugger.sublime-package", line 37, in runscript
  File "backends.comm_utils in /Users/1334890/Library/Application Support/Sublime Text 3/Installed Packages/Python Debugger.sublime-package", line 171, in f
BrokenPipeError: [Errno 32] Broken pipe

Restarting sublime text seems to revert the language back to the default. Python 3 (sublime built-in)

@matiasmorant
Copy link
Owner Author

matiasmorant commented Jan 12, 2018

Yes, this is the bug.
Sometimes that just happens. What I do for now is restart sublime and try again, until it works. By doing that, i'm able to successfully debug python2 code.
I have just published a new release which might (or might not) solve the problem. check if it works for you.

@cbrinley219
Copy link

Thanks! your change seemed to fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants