Comments (8)
Same here.
Our Command executes git flow feature start "feature_name"
and gets stuck although everything is done correctly.
Any fix?
from grunt-shell.
@Jpunt After a quick test i suggest you to use grunt-exec in the meantime until this is fixed.
It works for us and the commands are the same.
from grunt-shell.
Also had a command getting stuck: ncu -u
which is npm-check-updates.
from grunt-shell.
Nevermind me, my issue seems with the module itself - raineorshine/npm-check-updates#119
from grunt-shell.
Nope, it's a grunt-shell issue. Also npm install
breaks. This could be the reason: raineorshine/npm-check-updates#119
from grunt-shell.
I think the issue with ncu
boils down to process.stdin.isTTY being undefined
in processes spawned by exec
, making is-stdin
think there i something on stdin when there is not. grunt-shell
's attempt to pipe stdin (process.stdin.pipe(cp.stdin)
) to the child is fruitless because the exec command already has run by the point this pipe is attached.
I think the proper solution here would be to switch to spawn
and define stdio stream handling inside the spawn
options. Either that, or it's a node bug with isTTY
(though undefined
vs false
doesn't change much for this bug).
from grunt-shell.
Closing as it seems it's a Node.js core problem and nothing we can do here.
from grunt-shell.
I think this should be fixed in this module or maybe a wrapper by calling stdin.end()
on the ChildProcess. Any child process that waits on stdin will hang until stdin is explicitely closed:
https://nodejs.org/api/child_process.html#child_process_child_stdin
from grunt-shell.
Related Issues (20)
- add '/node_modules/.bin' to the path for executing local commands HOT 1
- error when command has “^” HOT 1
- "Iron-node" command is not working HOT 1
- Keep receiving TypeError: Path must be a string. Received undefined HOT 1
- This socket is closed HOT 2
- SyntaxError: Use of const in strict mode. shell.js:2 HOT 4
- SyntaxError: Use of const in strict mode; shell.js:2 HOT 2
- Bash pattern matching does not work properly with git bash
- Problem with paths added HOT 2
- Conflict with grunt-cli 1.3.x HOT 1
- Problem with chalk dependency in 3.0.0
- bug(commands): Travis Command Line Client
- Update strip-ansi to prevent moderate npm audit issue HOT 2
- time for esm HOT 3
- Print command to terminal for verification
- Stdin does not support read HOT 1
- Each command failOnError callback ? HOT 1
- Invalid version: "0.5" HOT 1
- does not work in 1.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-shell.