randy3k / Terminus

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

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

Open ghost opened 7 months ago

ghost commented 7 months ago

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

blackjyn commented 5 months ago

the same here