Giter VIP home page Giter VIP logo

Comments (7)

kareman avatar kareman commented on May 29, 2024 1

I think the problem is gradlew does things differently when standard input is a terminal session. I have seen similar problems before. Try using try "".runAndPrint("./gradlew", "clean") in CleanCommand.swift to change standard input to an empty stream.

from swiftshell.

kareman avatar kareman commented on May 29, 2024

Hi, does this only happen when you try to run "./gradlew clean" using SwiftShell, or does it happen with other commands too? I've never used gradle, I tried installing it in a Parallels VM to test this but I only get the error message "Could not determine java version from '10.0.2'.".

from swiftshell.

salmatarzi avatar salmatarzi commented on May 29, 2024

@kareman This happens whenever I try to use ./gradlew command in general, it doesn't happen with other commands though.

from swiftshell.

kareman avatar kareman commented on May 29, 2024

Ok, can you try these and see if there is any difference?

echo a | commandlinetool clean
commandlinetool clean | more

You say it takes forever when running from the terminal, does this mean it works, but takes a very long time, or does it never finish?
Also, when you run ./gradlew clean in the terminal, does it ask for input from the keyboard?

from swiftshell.

salmatarzi avatar salmatarzi commented on May 29, 2024

@kareman

can you try these and see if there is any difference?

The first one worked, terminated and cleaned the project, the second one stayed idle for quite some time not terminating.

You say it takes forever when running from the terminal, does this mean it works, but takes a very long time, or does it never finish?

Yes, it never finishes

Also, when you run ./gradlew clean in the terminal, does it ask for input from the keyboard?

No, it doesn't ask for any input

from swiftshell.

salmatarzi avatar salmatarzi commented on May 29, 2024

@kareman This worked! Thank you so much 🙏🏽

from swiftshell.

kareman avatar kareman commented on May 29, 2024

Glad to hear it. Good luck with the project :)

from swiftshell.

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.