Sublime Forum

Unable to run file using terminus in build system

#1

I’ve exhausted all my knowledge and searching skills to fix this.

On my laptop, everything is working perfectly. I copied my Appdata Sublime Text folder over to my desktop to bring all my settings and packages over, like I’ve done several times in the past without issue, but now I can’t run my python files.

This is my system build to open a new Terminus tab:

{
    "target": "terminus_open",

    "auto_close": false,
    "title": "Python Output",
    "timeit": true,

    "post_window_hooks": [
        ["carry_file_to_pane", {"direction": "right"}]
    ],

    "cmd": ["C:/Program Files/Python310/python.exe", "-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"],
            }
        }
    ]
}

Everything should work fine, as it’s the exact same as my laptop. However it instead returns:

Unable to create process using '"C:\Users\<MY NAME>\AppData\Local\Programs\Python\Python311\ -u" "U:\Python Projects\SlotsProject\main.py"': The system cannot find the file specified.

Now, I’d expect the issue to be somewhere in the cmd: line, like a wrong path or something. But when I comment out everything above it, i.e. ONLY the Terminus and Origami things, it works fine. In fact, just having the target: line in there is enough to break it. Why can’t I use Terminus on this computer when the package is installed (and reinstalled numerous times)??? It just doesn’t make any sense to me.

Please help!!

0 Likes