Giter VIP home page Giter VIP logo

Comments (8)

Tyrrrz avatar Tyrrrz commented on August 27, 2024 1

I reproduced this, looks like there are two issues:

  1. When copying stdin from a stream, the data is not flushed at earliest opportunity.
  2. When the underlying command finishes before stdin is fully read (in this case Console.OpenStandardInput() is not closed during command's lifetime and is technically infinite) then the execution deadlocks

I'm working on a fix now.

from cliwrap.

DaRosenberg avatar DaRosenberg commented on August 27, 2024 1

@Tyrrrz yes, tested this with 3.1.0 in the repro project I set up, and it works perfectly now. Thanks for the speedy fix! 👍

from cliwrap.

Tyrrrz avatar Tyrrrz commented on August 27, 2024

Does it work if you insert the end-of-input character (^z aka ctrl+z)?

from cliwrap.

DaRosenberg avatar DaRosenberg commented on August 27, 2024

It definitely changes something, but I can't make sense of exactly what's happening. It's like, nothing happens until I send ^Z + Enter (just ^Z does nothing) and at that point it looks a bit like git.exe processes all the input.

Looks like this:
image

First the prompt shows, then I type a + Enter + n + Enter, then ^Z + Enter and then git.exe exits with exit code 1.

Does it tell you anything?

from cliwrap.

paynecrl97 avatar paynecrl97 commented on August 27, 2024

I created a simple repo to help with reproduction: https://github.com/paynecrl97/FileMergeConflicts

  1. Clone the repo, and checkout the master branch.
  2. Use Git to merge the mergeMeIntoMaster branch into master. You'll encounter conflicts, this is expected.
  3. Run the program at the top of this thread (you'll need to change the working directory to the directory that you cloned the repo to)

from cliwrap.

Tyrrrz avatar Tyrrrz commented on August 27, 2024

Thanks for the repro, I'll check it when I have a bit more time.

from cliwrap.

Tyrrrz avatar Tyrrrz commented on August 27, 2024

Released a fix.

from cliwrap.

Tyrrrz avatar Tyrrrz commented on August 27, 2024

@DaRosenberg curious if you've tried the new version already and it works as you expect.

from cliwrap.

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.