Skip to content

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

@sbb

Description

@sbb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions