-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
Description
Description of the bug
Latest dev builds (ST4153/4154) break SublimeREPL package. I just had a hard time trying to reproduce a users error, because sending text to a REPL failed with WinError 6.
Exactly the same procedure works in ST4143. (Haven't checked 4152)
Steps to reproduce
- Setup a new portable ST instance (SAFE MODE is not possible as SublimeREPL needs restart)
- Install Package Control
- Install SublimeREPL
- Restart ST
- Call "SublimeREPL: Python" from command palette (python must be installed and accessible via path)
- Create a dummy.py with a single line
print("me")and save it. - With that file focused hit
ctrl+,,fkey sequence to send file content to the repl.
Expected behavior
- Content of the debug.py is executed.
- REPL displays result.
That's what ST4143 does.
Actual behavior
ST4153/54 however displays a WinError 6, while checking for alive interpreters.
Traceback (most recent call last):
File "C:\Apps\Sublime Text 4153\Lib\python33\sublime_plugin.py", line 1488, in run_
return self.run(edit, **args)
File "C:\Apps\Sublime Text 4153\Data\Packages\SublimeREPL\text_transfer.py", line 141, in run
for rv in manager.find_repl(external_id):
File "C:\Apps\Sublime Text 4153\Data\Packages\SublimeREPL\sublimerepl.py", line 470, in find_repl
if not (rv.repl and rv.repl.is_alive()):
File "C:\Apps\Sublime Text 4153\Data\Packages\SublimeREPL\repls\subprocess_repl.py", line 209, in is_alive
return self.popen.poll() is None
File "./python3.3/subprocess.py", line 930, in poll
File "./python3.3/subprocess.py", line 1145, in _internal_poll
OSError: [WinError 6] Das Handle ist ungültig
I can however successfully call the following in ST's console:
>>> import subprocess;p = subprocess.Popen(["python"], bufsize=0, stderr=subprocess.STDOUT, stdin=subprocess.PIPE, stdout=subprocess.PIPE); p.poll()Sublime Text build number
4153
Operating system & version
Windows 11
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
No response
Reactions are currently unavailable