<< Back to previous view

[CLJ-725] (;) causes repl to hang in Clojure 1.3-0-alpha3 on Mac OS X 10.6.3 Intel Created: 22/Jan/11  Updated: 26/Jan/11  Resolved: 26/Jan/11

Status: Closed
Project: Clojure
Component/s: None
Affects Version/s: Release 1.2
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Jason E. Aten Assignee: Unassigned
Resolution: Declined Votes: 0
Labels: None


From the new-to-Clojure but very excited about the language perspective, this seems simply seemed like low-priority-but-should-be-fixed-eventually bug. When I invoked ; as a function name by accident, I found that the REPL simply hung.

jaten@host151:~$ uname -a
Darwin host151.wifi.epochcoffee.com 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386

jaten@host151:~$ java -server -cp "/home/jaten/pkg/clojure/jars/*" clojure.main
Clojure 1.3.0-alpha3
user=> ( ; causes REPL to hang forever...???

Also happens in clojure 1.2.0. I didn't try any other versions.

Comment by Chouser [ 26/Jan/11 12:30 AM ]

The semicolon comments out the rest of the line, including the close paren. The REPL then blocks waiting for the expression begun with the open paren to be completed with an (uncommented) close paren. If you type a second close paren on and press Enter, I think you'll see the REPL was not hung but just waiting for more input.

I don't know if it would be useful to provide a different prompt instead of no prompt at all when the REPL is waiting for the conclusion of an expression, but in any case that would be a feature request.

The current behavior is as expected.

Generated at Sat Jan 20 23:11:00 CST 2018 using JIRA 4.4#649-r158309.