Clojure

GC Issue 62: Make clojure.main not exit when exception during --init if user requested a repl

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Reported by arohner, Jan 31, 2009

Describe the feature/change.

clojure.main should not exit if there was an exception in an --init file
and the user requested a repl. i.e.

java -cp clojure.jar clojure.main --init file-with-errors.clj -r 

should not exit. Having a repl is useful to read doc strings and experiment
with fixes for the problem.

Was this discussed on the group? If so, please provide a link to the
discussion:

http://groups.google.com/group/clojure/browse_frm/thread/f96109d71fa47200#

The attached patch adds a try/catch around the init method for the repl in
clojure.main. It does not change the behavior for the case where the user
specifies a file to run rather than a repl.

Comment 1  by richhickey, Feb 09, 2009
patch applied - svn 1258 - thanks!
Status: Fixed

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - oranenj said: [file:bcXZ2Cw3Cr3Qr1eJe5aVNr]
Hide
Assembla Importer added a comment -

oranenj said: Updating tickets (#63, #65, #66, #67, #68, #70, #73, #74, #75, #76, #78, #80, #81, #83, #86, #88, #90, #92, #93, #95, #97, #98)

Show
Assembla Importer added a comment - oranenj said: Updating tickets (#63, #65, #66, #67, #68, #70, #73, #74, #75, #76, #78, #80, #81, #83, #86, #88, #90, #92, #93, #95, #97, #98)

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: