Differences between revisions 3 and 4
Revision 3 as of 2005-02-26 17:28:42
Size: 119
Editor: ClarkUpdike
Comment:
Revision 4 as of 2005-02-28 17:54:45
Size: 2897
Editor: ClarkUpdike
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Running the jython unit tests == === IOError When Pasting Code Into Console ===
Line 3: Line 3:
Case solved: I was running using python, not the built jython jar. Silly me. Using the latest build, I'm getting IOError's when I try to paste multiple lines of code into the console.

Here it is working in the 2.1 console:
{{{
C:\WINDOWS\SYSTEM32>jython_142
Jython 2.1 on java1.4.2 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> # 1 ##############################################################################################
>>> # 2 ##############################################################################################
>>> # 3 ##############################################################################################
>>> # 4 ##############################################################################################
>>> # 5 ##############################################################################################
>>> # 6 ##############################################################################################
>>> # 7 ##############################################################################################
>>> # 8 ##############################################################################################
>>> # 9 ##############################################################################################
>>>
>>>
}}}

Here is the same thing broken in the 2.2a console:
{{{
C:\Documents and Settings\updikca1>jytip
Jython 2.2a1 on java1.4.1_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> # 1 ##############################################################################################
Traceback (innermost last):
  (no code object) at line 0
IOError: Not enough storage is available to process this command

C:\Documents and Settings\updikca1># 2 #################################################################################
#############
'#' is not recognized as an internal or external command,
<snip>
}}}

It's not entirely deterministic, but this case will work:
{{{# 1 ##############################################################################################
# 2 ##############################################################################################
# 3 ##############################################################################################
# 4 ##############################################################################################
# 5 ##############################################################################################
# 6 ##############################################################################################
# 7 ##############################################################################################
# 8 #############################################################################}}}

But adding one additional char will break it (at least for me).

Does anyone else experience this?

IOError When Pasting Code Into Console

Using the latest build, I'm getting IOError's when I try to paste multiple lines of code into the console.

Here it is working in the 2.1 console:

C:\WINDOWS\SYSTEM32>jython_142
Jython 2.1 on java1.4.2 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> # 1 ##############################################################################################
>>> # 2 ##############################################################################################
>>> # 3 ##############################################################################################
>>> # 4 ##############################################################################################
>>> # 5 ##############################################################################################
>>> # 6 ##############################################################################################
>>> # 7 ##############################################################################################
>>> # 8 ##############################################################################################
>>> # 9 ##############################################################################################
>>>
>>>

Here is the same thing broken in the 2.2a console:

C:\Documents and Settings\updikca1>jytip
Jython 2.2a1 on java1.4.1_03 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> # 1 ##############################################################################################
Traceback (innermost last):
  (no code object) at line 0
IOError: Not enough storage is available to process this command

C:\Documents and Settings\updikca1># 2 #################################################################################
#############
'#' is not recognized as an internal or external command,
<snip>

It's not entirely deterministic, but this case will work: {{{# 1 ############################################################################################## # 2 ############################################################################################## # 3 ############################################################################################## # 4 ############################################################################################## # 5 ############################################################################################## # 6 ############################################################################################## # 7 ############################################################################################## # 8 #############################################################################}}}

But adding one additional char will break it (at least for me).

Does anyone else experience this?

ClarkUpdike/ScrapBook (last edited 2008-11-15 09:16:03 by localhost)