Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning System.in and using readln() both fail when using gradle run #9

Open
utybo opened this issue Jun 21, 2017 · 1 comment
Open

Comments

@utybo
Copy link

utybo commented Jun 21, 2017

Using gradle run makes it impossible to use Golo's readln and Java's Scanner class with System.in

readln() yields a NullPointException, as System.console() seems to be null

Any method in the Scanner class used with System.in results in a NoSuchElementException

@utybo
Copy link
Author

utybo commented Jun 21, 2017

Workaround : using installDist then using its launching script

gradle installDist && build/install/YourAppName/bin/YourAppName

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

No branches or pull requests

1 participant