randy3k / Terminus

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

Windows 'teminus_exec' seems to not work for cargo builds: "couldn't determine self executable name" #310

Closed photex closed 2 years ago

photex commented 2 years ago

Howdy!

I have a simple build system:

"target": "terminus_exec",
            "cancel": "terminus_cancel_build",
            "cmd": [
                "cargo", "check"
            ],
            "working_dir": "$project_path",

On MacOS and Linux this works perfectly fine. One windows I get the following error:

error: couldn't determine self executable name                                                                                                                         
[Finished in 0.41s with exit code 1]

Seems isolated to cargo, and even rustup. They are on in PATH, and from a terminus shell I can run this command successfully.

The regular "exec" has no trouble running cargo. And I can also use the built-in RustEnhanced targets. So I'm not stuck, but I'm bothered trying to understand why this would be happening specifically in a terminus build context.

Any ideas?

eugenesvk commented 1 year ago

@photex I see that you've closed the issue as completed, but I have the same issue. How did you resolve it? Thanks!

photex commented 1 year ago

After months of no response I uninstalled the extension and carried on with life. Switching to Vscode even though sublime is still my preference is just how it’s going in 2022 I guess.

eugenesvk commented 1 year ago

FYI in the linked issue I've found the root cause - outdated winpty; can be manually patched to make it work with cargo