[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 | ||
| Description |
|
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 jaten@host151:~$ java -server -cp "/home/jaten/pkg/clojure/jars/*" clojure.main Also happens in clojure 1.2.0. I didn't try any other versions. |
| Comments |
| 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. |