-
Notifications
You must be signed in to change notification settings - Fork 71
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
what's broken in spawn? #26
Comments
Hey @bcoe! You may find what issues Also, we explain why |
One big reason for the use of |
I feel like @satazor thanks for the list, it's basically a laundry list if what the Node.js tooling working group should be fixing in @ehmicky I think we could probably update the documentation to reference @satazor's list, vs., the stale information in that section of the document. |
@bcoe I might be wrong, but the |
@satazor we referenced this issue for |
The issue was closed by this comment: nodejs/node-v0.x-archive#2318 (comment). If you go through the comments history, the only suggestion people gave was to use |
Also |
I just tried |
|
List of cross-platform issues with
Issues 1) and 3) are solved with Extra information on 3): it can be solved by using a shell interpreter (
Just to be complete,
Overall I think using |
@sindresorhus @ehmicky, I'd advocate that we write-up a proposal here under initiatives, which outlines some of the issues being shimmed by exec alternatives; some of these cross-platform issues (I think) should be fixed in Node.js itself (and this is exactly the goal of the Tooling Working Group). What do you think @boneskull? Also, looping in @iansu, I think this could be some incredible projects for getting a few commits into Node.js. |
For the 5 points I was mentioning:
Based on that, I am wondering whether most of those proposals would move forward, considering they were already somewhat attempted at being fixed? However having any cross-platform issues fixed in core Node.js seems like the best approach. Please let me know if anyone has other cross-platform issues in mind when it comes to |
This PR introduces cross platform spawning of commands. Will close #174. The problem is Windows users need to use the `exec` command like this: ``` $ percy exec -- cypress.cmd run ``` If they don't, we can't spawn their original test command. What's happening is nodes `spawn` ignores windows `PATHEXT` which is kinda like `$PATH` & that means `spawn` only works on Windows for `.exe` files. See: - nodejs/node-v0.x-archive#2318 - bcoe/awesome-cross-platform-nodejs#26 Tested here: https://github.com/percy/example-percy-cypress/compare/rd/test-cross-platform The first commit uses `cross_spawn` and successfully starts Cypress. The second commit uses `0.4.0` of agent and fails to start Cypress.
@sindresorhus, @satazor in newish versions of Node.js, what issues continue to exist in
spawn
that would motivate the use ofexeca
orcross-spawn
. I wonder if:CC: @boneskull
The text was updated successfully, but these errors were encountered: