Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
photex opened this issue Aug 23, 2021 · 3 comments

Comments

@photex
Copy link

photex commented Aug 23, 2021

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
Copy link

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

@photex
Copy link
Author

photex commented Jul 26, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants