read-line within clooj REPL

78 views
Skip to first unread message

kittekat

unread,
May 6, 2012, 10:57:43 AM5/6/12
to clooj
Hi,

I try to read something within the Clooj REPL:

(read-line) <=== I evaluate this in the REPL input

some input <=== my input in the REPL input generates the
following unexpected REPL output
"(do (clojure.core/dorun (clojure.core/map (fn*
[p1__1044__1045__auto__] (try (clojure.core/require
p1__1044__1045__auto__) (catch java.lang.Exception ___1046__auto__)))
(quote ()))) (clojure.core/binding [clojure.core/*source-path*
\"NO_SOURCE_PATH\" clojure.core/*file* \"NO_SOURCE_PATH\"]
(clojure.core/last (clojure.core/map clojure.core/eval (clojure.core/
let [sr__1039__auto__ (java.io.StringReader. \"some input\")
rdr__1040__auto__ (clojure.core/proxy
[clojure.lang.LineNumberingPushbackReader] [sr__1039__auto__]
(clooj.repl/getLineNumber [] (clojure.core/+ 0 (clojure.core/proxy-
super clooj.repl/getLineNumber))))] (clojure.core/take-while (fn*
[p1__1038__1041__auto__] (clojure.core/not=
p1__1038__1041__auto__ :EOF_REACHED)) (clojure.core/repeatedly (fn* []
(try (clojure.core/read rdr__1040__auto__) (catch java.lang.Exception
e__1042__auto__ :EOF_REACHED))))))))))"

If I do the same in a Leiningen REPL, I see the expected response:
user=> (read-line)
some input
"some input"
user=>

How can I get this also in Clooj?

I am on clooj 0.3.3 and clojure 1.3.0

Best regards
Kittekat

Делян Пирински

unread,
Sep 5, 2013, 7:20:26 AM9/5/13
to cl...@googlegroups.com
I have the same problem. Any help or advice?

Делян Пирински

unread,
Sep 5, 2013, 11:15:22 AM9/5/13
to cl...@googlegroups.com
(defn unclooj [shity-input]
  (subs shity-input 724 (- (count shity-input) 337)))
Reply all
Reply to author
Forward
0 new messages