Giter Club home page Giter Club logo

Comments (4)

kareman avatar kareman commented on May 18, 2024

I created a new macOS app project, imported SwiftShell and the following code ran fine:

let var1 = runAsync(bash: "echo hi").onCompletion {
	 command in self.label.stringValue = command.stdout.read()
}
do {
	try var1.finish()
} catch {
	print(error)
}

Could you try a complete clean build of your project? If that doesn't work, is there a version of your project with this problem that you could share?

from swiftshell.

scifiman avatar scifiman commented on May 18, 2024

I was able to fix my issue.
My swiftshell framework was compiled before one of the Xcode updates came through, either 9.3 or 9.3.1 and I needed to recompile the framework after that update.
I am seeing another issue where runAsync doesn't appear to actually be running asynchronously. That is, it causes the GUI to stop responding and I see the spinning pinwheel.
Is that something you want me to open a separate ticket about?

from swiftshell.

kareman avatar kareman commented on May 18, 2024

Yes a new ticket would be nice. Also code examples, and could you also check if runAsync is started from the main thread?

from swiftshell.

scifiman avatar scifiman commented on May 18, 2024

Sure. Thank you.

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.