Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Unable to run when script uses readLine() #112

Open
clayellis opened this issue Jul 25, 2017 · 2 comments
Open

Unable to run when script uses readLine() #112

clayellis opened this issue Jul 25, 2017 · 2 comments
Labels

Comments

@clayellis
Copy link

Marathon seems unable to run scripts that make use of readLine().

Steps to reproduce:

  1. marathon create GetInput "import Foundation; print(\"Enter something\"); let result = readLine(); print(result)"
  2. marathon run GetInput

Marathon will then hang indefinitely without even printing Enter something. However, if you navigate to the cache location and build/run the script there, everything works as expected.

@JohnSundell
Copy link
Owner

@clayellis sorry for the slow response 😞 This is because of a limitation of ShellOut, that it currently only operates synchronously. This is definitely something that I want to fix, since some new tools that I'm working on that require user input are also blocked by this. Hopefully I (or someone else 😇) can get around to fixing it soon.

@ghost
Copy link

ghost commented Apr 14, 2018

I'm looking forward to this to! So I made ShellOut asynchronous here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants