When i evaluate a block it doesn't appear in rebl
anyone had this?
if i type the var in rebl it has the value though
after evaluating the def in the editor
i'm using sean corfields deps.edn setup
repl is run with command clj -A:socket:rebl-11
and chlorine has successfully connected to the repl
just not printing out in rebl
have got the same thing running same setup on windows and linux
@jburvill you have to use the "inspect" functions, rather the "eval" versions.
Are you using the keymap from my Atom/Chlorine setup? https://github.com/seancorfield/atom-chlorine-setup
thanks @seancorfield the inspect commands do work, i was using the chlorine suggested keymaps, will surely check out your version now 🙂
@jburvill My repo also has a bunch of extra commands in the init
file that add even more REBL stuff -- Var and namespace browsing etc.
I might have to adapt it a bit since i'm using parinfer rather than paredit, and vim-mode-plus
I use both parinfer and paredit. I let parinfer deal with indentation and parentheses but use paredit for structural editing.
Is compliment loaded automatically?
When I input expressions in REPL and enter, there isn't happened anything.
Like (+ 1 2)
and enter, and it stays there.
In .clj
namespaces it works fine using ctrl-, b
And how can I connect with running lein
repl and shadow-cljs
both at the same time in two different projects? (And keep them running)
When repl of one project is connected, next one doesn't connect.
lein
is for server repo and shadow-cljs
for client repo.
@ahmed1hsn The REPL panel in Chlorine is just for display. You can't type into it. There's a school of thought that you simply shouldn't type into a REPL if you're in an editor -- use a comment
form in a source file for such exploratory code so you get to keep it around.
Chlorine only supports one REPL connection at a time, so you need to disconnect from one and then connect to the other when you need to swap REPLs.
And, no, compliment
is not loaded automatically. You need to add it as a dependency when starting the Socket REPL if you want auto-complete (but it should all work fine without that -- I don't have compliment
as a dependency in any non-dev processes and I can still connect Chlorine to them and use it).
There's documentation on shadow that shows how to do it. After I start the watch process over lein repl, I can connect on clojure and then run "connect embedded ClojureScript" to connect the cljs repl (as both are now running on the same socket)
Just wanted to say that if someone knows how to inject compliment on an already running repl, ping me that I'll implement it on Chlorine too :)