This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-08-01
Channels
- # announcements (1)
- # babashka (18)
- # babashka-sci-dev (10)
- # beginners (17)
- # clj-on-windows (21)
- # clj-yaml (4)
- # cljs-dev (33)
- # cljsrn (2)
- # clojure (51)
- # clojure-austin (3)
- # clojure-doc (22)
- # clojure-europe (17)
- # clojure-greece (4)
- # clojure-norway (6)
- # clr (4)
- # conjure (7)
- # datalog (14)
- # emacs (11)
- # hyperfiddle (121)
- # introduce-yourself (1)
- # kaocha (1)
- # malli (8)
- # practicalli (1)
- # releases (1)
- # shadow-cljs (26)
- # squint (2)
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"}
This is an interaction I just did with my library - see the last 2 messages, I got the status [done]
but no evaluation result
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"}
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
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