GithubHelp home page GithubHelp logo

Git-command stuck about grunt-shell HOT 8 CLOSED

Jpunt avatar Jpunt commented on May 25, 2024
Git-command stuck

from grunt-shell.

Comments (8)

derpoho avatar derpoho commented on May 25, 2024

Same here.

Our Command executes git flow feature start "feature_name" and gets stuck although everything is done correctly.

Any fix?

from grunt-shell.

derpoho avatar derpoho commented on May 25, 2024

@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.

silverwind avatar silverwind commented on May 25, 2024

Also had a command getting stuck: ncu -u which is npm-check-updates.

from grunt-shell.

silverwind avatar silverwind commented on May 25, 2024

Nevermind me, my issue seems with the module itself - raineorshine/npm-check-updates#119

from grunt-shell.

zenopopovici avatar zenopopovici commented on May 25, 2024

Nope, it's a grunt-shell issue. Also npm install breaks. This could be the reason: raineorshine/npm-check-updates#119

from grunt-shell.

silverwind avatar silverwind commented on May 25, 2024

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.

sindresorhus avatar sindresorhus commented on May 25, 2024

Closing as it seems it's a Node.js core problem and nothing we can do here.

from grunt-shell.

silverwind avatar silverwind commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.