Open apexalexr opened 4 years ago
That’s strange. Terminus cannot find cmd.exe.
Yeah it's really weird do you have any idea what's causing it. I have 3 drives, however Sublime is installed in C: Also cmd is in C:/Windows/System32/cmd.exe
So it is not like its moved or anything. It isn't just this though its any of the command lines. For instance trying to open powershell will have this.
"Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 1082, in run return self.run(edit, **args) File "C:\Users\apexa\AppData\Roaming\Sublime Text 3\Installed Packages\Terminus.sublime-package\terminus/core.py", line 639, in run File "C:\Users\apexa\AppData\Roaming\Sublime Text 3\Installed Packages\Terminus.sublime-package\terminus/terminal.py", line 219, in activate File "C:\Users\apexa\AppData\Roaming\SUBLIM~1\Packages\pywinpty\ST3_WI~2\winpty\ptyprocess.py", line 89, in spawn 'executable: %s.' % command FileNotFoundError: The command was not found or was not executable: powershell.exe."
Also it does say command was not found or was not executable. I don't know how it wouldn't be executable though. But that is one angle that we might need to look at as well.
I have the same issue with an identical Traceback
@apexalexr This solution works for me:
Navigate to preferences, package settings, Terminus and Open Terminus Command Palette
Copy and paste the code below, save and restart ST3
[ { "caption": "Terminus: Open CMD", "command": "terminus_open", "args" : { "cmd": ["C:\windows\System32\cmd.exe"], "cwd": "${file_path:${folder}}", "title": "CMD" } }, ]
@rgolde96 Thanks for the suggestion, but when I do that the command doesn't show up in command palette.
Install "Pywin32" through package manager. It worked for me. :)
I don't think that's the fix. In fact, the Pywin32
package is broken.
Same error randy, any fixes?
Perhaps Terminus doesnt found cmd.exe. Did you try specifying the full path to cmd.exe?
You need to exclude C:\Users\name\AppData\Roaming\Sublime Text 3\ from your antivirus. If you have something like MalwareBytes it is blocking Sublime from using WinPTY. Just add it to an exclusion list and you should be good.
So I had 2 python installations on my computer, one from python.org and one downloaded from the microsoft store. I uninstalled the one from the microsoft store and set the PYTHONPATH to the other one and everything works perfectly now
I have installed and uninstalled both Sublime and the Terminus Package. The error I get in console when I open in panel is:
"Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 1082, in run return self.run(edit, **args) File "C:\Users\apexa\AppData\Roaming\Sublime Text 3\Installed Packages\Terminus.sublime-package\terminus/core.py", line 639, in run File "C:\Users\apexa\AppData\Roaming\Sublime Text 3\Installed Packages\Terminus.sublime-package\terminus/terminal.py", line 219, in activate File "C:\Users\apexa\AppData\Roaming\SUBLIM~1\Packages\pywinpty\ST3_WI~2\winpty\ptyprocess.py", line 89, in spawn 'executable: %s.' % command FileNotFoundError: The command was not found or was not executable: cmd.exe."
Error for opening in tab is :
"Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublimeplugin.py", line 1082, in run return self.run(edit, **args) File "C:\Users\apexa\AppData\Roaming\Sublime Text 3\Installed Packages\Terminus.sublime-package\terminus/core.py", line 639, in run File "C:\Users\apexa\AppData\Roaming\Sublime Text 3\Installed Packages\Terminus.sublime-package\terminus/terminal.py", line 219, in activate File "C:\Users\apexa\AppData\Roaming\SUBLIM~1\Packages\pywinpty\ST3_WI~2\winpty\ptyprocess.py", line 89, in spawn 'executable: %s.' % command FileNotFoundError: The command was not found or was not executable: cmd.exe."