Boo

Attempting to Backspace after using /help in Booish resutls in Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.9.2
  • Fix Version/s: 0.9.2
  • Component/s: Command line tools
  • Labels:
    None
  • Environment:
    Windows Server 2003
  • Number of attachments :
    0

Description

Steps to reproduce

  • Launch a cmd or powershell window
  • Start Booish
  • Type /help and press <enter>
  • Type a single character
  • Press BackSpace
  • Note Exception and JIT Exception Handling

Exception Stack

Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range.
Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
at Boo.Lang.Interpreter.InteractiveInterpreter2.Delete(Int32 count)
at Boo.Lang.Interpreter.InteractiveInterpreter2.ConsoleLoopEval()
at Booish2Module.Main(String[] argv)

Activity

Hide
Scott Markwell added a comment -

Example Session

H:\>booish
Cannot load history from 'C:\Documents and Settings\scott.markwell\Local Setting
s\Application Data\booish_history'
Welcome to booish, an interactive interpreter for the boo programming language.
Running boo 0.9.2.3383 on CLR 2.0.50727.3053.

Enter boo code in the prompt below (or type /help).
>>>/help
The following builtin functions are available :
dir(type) : returns the members of a type
describe(type) : describe a type as boo code
globals() or /g : returns names of all variables known to interpreter
load(file) or /l file : evals an external boo file
save(file) or /s file : writes your current booish session into file
quit() or /q : exits the interpreter
>>>>>>d
Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range.
Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length)
at Boo.Lang.Interpreter.InteractiveInterpreter2.Delete(Int32 count)
at Boo.Lang.Interpreter.InteractiveInterpreter2.ConsoleLoopEval()
at Booish2Module.Main(String[] argv)

Show
Scott Markwell added a comment - Example Session H:\>booish Cannot load history from 'C:\Documents and Settings\scott.markwell\Local Setting s\Application Data\booish_history' Welcome to booish, an interactive interpreter for the boo programming language. Running boo 0.9.2.3383 on CLR 2.0.50727.3053. Enter boo code in the prompt below (or type /help). >>>/help The following builtin functions are available : dir(type) : returns the members of a type describe(type) : describe a type as boo code globals() or /g : returns names of all variables known to interpreter load(file) or /l file : evals an external boo file save(file) or /s file : writes your current booish session into file quit() or /q : exits the interpreter >>>>>>d Unhandled Exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Text.StringBuilder.Remove(Int32 startIndex, Int32 length) at Boo.Lang.Interpreter.InteractiveInterpreter2.Delete(Int32 count) at Boo.Lang.Interpreter.InteractiveInterpreter2.ConsoleLoopEval() at Booish2Module.Main(String[] argv)
Hide
blubb added a comment -

I was able to reproduce this bug with version 0.9.1, but no longer with the build from svn revision 3465. I suggest someone closes this bug.

Show
blubb added a comment - I was able to reproduce this bug with version 0.9.1, but no longer with the build from svn revision 3465. I suggest someone closes this bug.
Hide
Cedric Vivier added a comment -

Thanks for the reminder.

Show
Cedric Vivier added a comment - Thanks for the reminder.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: