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

Activity

Show:
Colin Jones
April 21, 2015, 6:53 AM

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

Completed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Unassigned

Reporter

Luke VanderHart

Labels

Approval

Ok

Patch

Code

Priority

Minor

Affects versions

Fix versions