[ 
https://issues.apache.org/jira/browse/FELIX-5449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guillaume Nodet resolved FELIX-5449.
------------------------------------
    Resolution: Cannot Reproduce
      Assignee: Guillaume Nodet

> gogo jline shell completely dies on unexpected tab character
> ------------------------------------------------------------
>
>                 Key: FELIX-5449
>                 URL: https://issues.apache.org/jira/browse/FELIX-5449
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo JLine
>            Reporter: Bram Pouwelse
>            Assignee: Guillaume Nodet
>
> 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
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to