Sublime Forum

Terminus does not see wsl.exe

#1

I have been using Terminus for a while and there is specific problem that I have. When Terminus starts in Sublime I can type commands with no problems. Terminus can see all .exe files that are in my Path, same as cmd. Also I can start Powershell and Bash(from specified folder that I added to Path) shell in Terminus. But when try to use wsl there is this error:
'wsl' is not recognized as an internal or external command, operable program or batch file.

When I type where wsl in Terminus I get:
INFO: Could not find files for the given pattern(s).

When I type where wsl in Windows CMD I get C:\Windows\System32\wsl.exe and wsl starts with no problems. I have also added C:\Windows\System32\wsl.exe to both user PATH and system PATH with no avail.

0 Likes

#2

WSL is correctly detected by Terminus on my Win 10/11 machines.

So this issue is likely caused by something specific to your setup.

Sublime Text reads environment variables at startup. You can check them via import os;os.environ.

Maybe ST was started from a context, which does not include required PATH values?

1 Like

#3

This is strange. It appears that Terminus does not see wsl for some reason:

0 Likes

#4

It appears that it’s not working in portable version.

0 Likes

#5

It works on both, installed and portable version on my machine.

1 Like

#6

I needed to download new version of portable, it’s working now xD. Thanks.

0 Likes