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

Confirmed: System.console() does not work from IDE #156

Open
sbb opened this issue May 25, 2022 · 1 comment
Open

Confirmed: System.console() does not work from IDE #156

sbb opened this issue May 25, 2022 · 1 comment

Comments

@sbb
Copy link

sbb commented May 25, 2022

https://code-maven.com/groovy-read-from-stdin

I read your article at the URL above, and can confirm that from within an IDE (IntelliJ IDEA), when running the code in a "Run" window, System.console() returns null, and thus readLine is not available on it. System.in.newReader().readLine() does work fine in this environment.

@szabgab
Copy link
Owner

szabgab commented May 26, 2022

thanks

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

2 participants