Details
-
Type:
Defect
-
Status:
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
Converted from http://www.assembla.com/spaces/clojure/tickets/65
Attachments:
main-not-exit.patch - https://www.assembla.com/spaces/clojure/documents/bcXZ2Cw3Cr3Qr1eJe5aVNr/download/bcXZ2Cw3Cr3Qr1eJe5aVNr