Issue2268

classification
Title: JLine2 console fails if using "!"
Type: Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: zyasoft Nosy List: zyasoft
Priority: urgent Keywords: console

Created on 2015-02-11.00:34:08 by zyasoft, last changed 2015-02-11.17:08:31 by zyasoft.

Messages
msg9511 (view) Author: Jim Baker (zyasoft) Date: 2015-02-11.00:34:08
As discovered with attempting to create jar URLs. But it can be as simple as the follows:

>>> p = "!"
[ERROR] Could not expand event
java.lang.IllegalArgumentException: !": event not found
	at jline.console.ConsoleReader.expandEvents(ConsoleReader.java:779)
	at jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:631)
	at jline.console.ConsoleReader.accept(ConsoleReader.java:2019)
	at jline.console.ConsoleReader.readLine(ConsoleReader.java:2666)
	at jline.console.ConsoleReader.readLine(ConsoleReader.java:2269)
	at org.python.util.JLineConsole.readerReadLine(JLineConsole.java:207)
	at org.python.util.JLineConsole.access$100(JLineConsole.java:28)
	at org.python.util.JLineConsole$Stream.getLine(JLineConsole.java:161)
	at org.python.util.ConsoleInputStream.fillBuffer(ConsoleInputStream.java:101)
	at org.python.util.ConsoleInputStream.read(ConsoleInputStream.java:180)
	at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:385)
	at org.python.core.io.StreamIO.readinto(StreamIO.java:123)
	at org.python.core.io.BufferedReader.peek(BufferedReader.java:86)
	at org.python.core.io.BufferedReader.read1(BufferedReader.java:100)
	at org.python.core.io.TextIOBase.readChunk(TextIOBase.java:261)
	at org.python.core.io.BinaryIOWrapper.readline(BinaryIOWrapper.java:101)
	at org.python.core.io.TextIOWrapper.readline(TextIOWrapper.java:178)
	at org.python.core.PyFile.file_readline(PyFile.java:370)
	at org.python.core.PyFile.readline(PyFile.java:378)
	at org.python.core.__builtin__.readline(__builtin__.java:983)
	at org.python.core.__builtin__.raw_input(__builtin__.java:1007)
	at org.python.core.__builtin__.raw_input(__builtin__.java:1030)
	at org.python.util.InteractiveConsole.raw_input(InteractiveConsole.java:179)
	at org.python.util.InteractiveConsole.interact(InteractiveConsole.java:127)
	at org.python.util.jython.run(jython.java:396)
	at org.python.util.jython.main(jython.java:145)
msg9512 (view) Author: Jim Baker (zyasoft) Date: 2015-02-11.00:35:08
Fix described here: https://github.com/jline/jline2/issues/96
msg9514 (view) Author: Jim Baker (zyasoft) Date: 2015-02-11.17:08:31
Fixed as of https://hg.python.org/jython/rev/3d3e16363dc1
History
Date User Action Args
2015-02-11 17:08:31zyasoftsetstatus: open -> closed
resolution: fixed
messages: + msg9514
2015-02-11 00:35:09zyasoftsetmessages: + msg9512
2015-02-11 00:34:08zyasoftcreate