REPL evaluation of conditional reader forms fails

Description

When using reader conditionals, evaluating a reader conditional in a vanilla command-line REPL (not nRepl or anything like that) results in a "Conditional read not allowed" error message.

Loading the whole file with load-file works as expected.

This breaks the very normal workflow of eval-ing forms from a *.cljc file in a Clojure repl using (e.g.) inferior lisp.

Approach: clojure.main/repl (also used by swank I think) enables reader conditionals at the REPL.

Patch: clj-1700.patch

Environment

1.7-beta1

Attachments

1

Activity

Show:

Colin JonesApril 21, 2015 at 6:53 AM

Looks/works great for me - I quite literally wrote the exact same patch before talking w/ Luke today about this.

Completed

Details

Assignee

Reporter

Labels

Approval

Ok

Patch

Code

Priority

Affects versions

Fix versions

Created April 12, 2015 at 8:24 PM
Updated April 24, 2015 at 4:14 PM
Resolved April 24, 2015 at 4:14 PM