randy3k / Terminus

Bring a real terminal to Sublime Text
https://packagecontrol.io/packages/Terminus
MIT License
1.39k stars 81 forks source link

Terminus Blank with White Cursor - Windows 10 #195

Open apexalexr opened 4 years ago

apexalexr commented 4 years ago

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."

randy3k commented 4 years ago

That’s strange. Terminus cannot find cmd.exe.

apexalexr commented 4 years ago

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.

rgolde96 commented 4 years ago

I have the same issue with an identical Traceback

rgolde96 commented 4 years ago

@apexalexr This solution works for me:

  1. Navigate to preferences, package settings, Terminus and Open Terminus Command Palette

  2. 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" } }, ]

  1. Press CTRL + SHIFT + P to open command palette and open 'Terminus: Open CMD'
apexalexr commented 4 years ago

@rgolde96 Thanks for the suggestion, but when I do that the command doesn't show up in command palette.

CHlLDSUPPORT commented 4 years ago

Install "Pywin32" through package manager. It worked for me. :)

randy3k commented 4 years ago

I don't think that's the fix. In fact, the Pywin32 package is broken.

subbbbbb commented 4 years ago

Same error randy, any fixes?

randy3k commented 4 years ago

Perhaps Terminus doesnt found cmd.exe. Did you try specifying the full path to cmd.exe?

DrKendeth commented 4 years ago

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.

subbbbbb commented 4 years ago

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