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
I ran into an IndexOutOfBoundsException with the builtin less that can be replicated with jline-repl.sh. I can reproduce the problem with 3.22.0 and also with the latest code.
cd demo
./jline-repl.sh
groovy-repl> less /opt/homebrew/Dockerfile
The file needs to be large enough so that it doesn't display on one page
Type G to seek to the end of the file IndexOutOfBoundsException: Index -1 out of bounds for length 81
Error: Index -1 out of bounds for length 81
java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 81
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
at java.base/java.util.Objects.checkIndex(Objects.java:385)
at java.base/java.util.ArrayList.get(ArrayList.java:427)
at org.jline.builtins.Less.getLine(Less.java:1435)
at org.jline.builtins.Less.prevLine2display(Less.java:1287)
at org.jline.builtins.Less.moveForward(Less.java:1179)
at org.jline.builtins.Less.run(Less.java:491)
at org.jline.builtins.Commands.less(Commands.java:171)
at org.jline.builtins.Commands.less(Commands.java:119)
The text was updated successfully, but these errors were encountered:
I ran into an IndexOutOfBoundsException with the builtin less that can be replicated with
jline-repl.sh
. I can reproduce the problem with 3.22.0 and also with the latest code.IndexOutOfBoundsException: Index -1 out of bounds for length 81
The text was updated successfully, but these errors were encountered: