You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing to stdout using for instance System.out.println, the line is printed as appended to the end of the line, instead of on a new line of its own:
println(1)1
I would expect a new line after println:
println(1)
1
The text was updated successfully, but these errors were encountered:
Sorry to not reply before, and yes, I'm aware of that error, some times not sure why it doesn't happens but most of the times it does.
The problem is Gradle and its pour support for managing I/O in the console, check this #2.
We were talking today in another issue how limited is to run JShell from Gradle and it would be ideal to run the process outside Gradle to solve this and other problems (#12 (comment)), but for now, I'm limited of time to work on it 😞 .
// build.gradle
plugins {
id 'com.github.mrsarm.jshell.plugin' version '1.2.1'
}
The actual result differs from the expected:
$ rlwrap ./gradlew --no-daemon --console plain jshell
# Expected
jshell> new String("Hello");$1 ==>"Hello"# Actual
jshell> new String("Hello");
new String("Hello")$1 ==>"Hello"
While in a vanilla jshell:
$ jshell
jshell> new String("Hello");$1 ==>"Hello"
When writing to stdout using for instance
System.out.println
, the line is printed as appended to the end of the line, instead of on a new line of its own:I would expect a new line after println:
The text was updated successfully, but these errors were encountered: