Fork me on GitHub
#clr
<
2023-08-01
>
mauricio.szabo14:08:33

So, another question: I'm writing a new nREPL client for Chlorine, and so far it works with Clojure, Shadow, and Babashka. But not CLR - sometimes, I don't get a result. Here's an example:

--> {:op :clone, :id "op80"}
--> {:op :clone, :id "op81"}
<-- {"id" "op80", "status" ["done"], "session" "none", "new-session" "09d70cf2-0243-442b-bb8e-6206aa14fcc3"}
<-- {"id" "op81", "status" ["done"], "session" "none", "new-session" "f21398ed-1ed1-4bec-ad19-1fd7750e3ed9"}
--> {:op "eval", :code "(+ 1 2)\n", :id "eval82", :session "09d70cf2-0243-442b-bb8e-6206aa14fcc3"}
<-- {"id" "eval82", "value" "3", "session" "09d70cf2-0243-442b-bb8e-6206aa14fcc3", "ns" "user"}
<-- {"id" "eval82", "status" ["done"], "session" "09d70cf2-0243-442b-bb8e-6206aa14fcc3"}
--> {:op "eval", :code "(+ 1 2)\n", :id "eval90", :session "09d70cf2-0243-442b-bb8e-6206aa14fcc3"}
<-- {"id" "eval90", "status" ["done"], "session" "09d70cf2-0243-442b-bb8e-6206aa14fcc3"}

mauricio.szabo14:08:13

This is an interaction I just did with my library - see the last 2 messages, I got the status [done] but no evaluation result

mauricio.szabo14:08:37

Also, can't I use reader conditionals?

--> {:op "eval", :code "#?(:clj 2 :clr 20)\n", :id "eval62", :session "fb4ca712-1790-4d83-bc32-e06b5b6fddfa"}
<-- {"err" "System.Exception: Conditional read not allowed user REPL:1:3\n", "id" "eval62", "session" "fb4ca712-1790-4d83-bc32-e06b5b6fddfa"}

jamesd314211:01:14

I'm having this problem too. My current work around is to copy and paste the code into a file then do (load-file "tmp.cljc") in the repl console