I have this idea that I can start up a socket repl, connect to it, and launch figwheel.main in it. Then send forms from Chlorine to it. What blocks me is that .cljs does not map to the open repl connection.
There's a way to do it with shadow-cljs. Check: https://github.com/mauricioszabo/repl-tooling/blob/master/src/repl_tooling/repl_client/clojure.cljs#L247
It's being used from here: https://github.com/mauricioszabo/atom-chlorine/blob/master/src/chlorine/ui/connection.cljs#L76
@danie if you want help to implement this feature, ping me: it's on the roadmap to support figwheel-main 🙂
shadow-cljs - running: lein run -m shadow.cljs.devtools.cli --npm compile dev
[:dev] Compiling ...
------ ERROR -------------------------------------------------------------------
File: /Users/danie/source/atom-chlorine/repl-tooling/src/repl_tooling/repl_client/clojure.cljs:11:11
--------------------------------------------------------------------------------
8 | [clojure.string :as str]
9 | [clojure.walk :as walk]))
10 |
11 | (def blob (blob-contents))
-----------------^--------------------------------------------------------------
IllegalArgumentException: Cannot open <nil> as a Reader.
This is on master 🙂
I think you need to follow the rules here: https://github.com/mauricioszabo/atom-chlorine/blob/master/docs/developing.md
(I'm sorry, I know the process is less than ideal :D)
I think its missing the step to copy the unrepl blob