Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
None
-
None
-
None
Description
Had a quick look at the new org.apache.felix.gogo.jline 1.0.2 that is to be released in an Eclipse project. When a non exising comand is followed by a tab character the console completely dies with the stacktrace below.
To reproduce just type l [tab] and hit return
g! l gogoArithmeticException: / by zero java.lang.ArithmeticException: / by zero at org.jline.reader.impl.LineReaderImpl.toColumns(LineReaderImpl.java:4293) at org.jline.reader.impl.LineReaderImpl.toColumns(LineReaderImpl.java:4268) at org.jline.reader.impl.LineReaderImpl.computePost(LineReaderImpl.java:4232) at org.jline.reader.impl.LineReaderImpl.doList(LineReaderImpl.java:4082) at org.jline.reader.impl.LineReaderImpl.doComplete(LineReaderImpl.java:3768) at org.jline.reader.impl.LineReaderImpl.expandOrComplete(LineReaderImpl.java:3516) at org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:533) at org.apache.felix.gogo.jline.Shell.runShell(Shell.java:407) at org.apache.felix.gogo.jline.Shell.gosh(Shell.java:329) at org.apache.felix.gogo.jline.Activator.lambda$startShell$0(Activator.java:137) at java.lang.Thread.run(Thread.java:745)