randy3k / Terminus

Bring a real terminal to Sublime Text

Home Page:https://packagecontrol.io/packages/Terminus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terminus doesn't work at all, outputs "C:\Python312\ -u" at the beginning of an error

Valdemarcheck opened this issue · comments

The case

I'm using the latest version of Terminus. I've installed it via package manager in Sublime Text 4, setup a build system based on Python (also latest version up to this date). When I try to build any python file, I get this in my terminal:
image

My build settings

	"target": "terminus_exec",
	"cancel": "terminus_cancel_build",
	"working_dir": "$file_path",
	"cmd": ["python3", "-u", "$file"],
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
	"selector": "source.python",

	"env": {"PYTHONIOENCODING": "utf-8"},

	"windows": {
		"cmd": ["py", "-u", "$file"],
	},

	"variants":
	[
		{
			"name": "Syntax Check",
			"cmd": ["python3", "-m", "py_compile", "$file"],

			"windows": {
				"cmd": ["py", "-m", "py_compile", "$file"],
			}
		}
	]
}

Additional note

I was told on Sublime Discord (unofficial) server that:

  • The way that it quotes "C:\Python312\ -u" looks suspicious, but I can't tell how it would arrive there from your build system. If it doesn't occur in the default build system, I suggest creating a Terminus issue, also mentioning your system locale/language

Expected result

python file builds like normal with Terminus working properly without issues