chlorine-clover

About Chlorine for Atom and Clover for VS Code: https://atom.io/packages/chlorine and https://marketplace.visualstudio.com/items?itemName=mauricioszabo.clover
jlmr 2020-07-23T15:11:37.289200Z

Is the new feature for custom rendering of results documented somewhere? I might want to try if I can get vega charts to work that way

mauricio.szabo 2020-07-23T15:12:47.289600Z

It is (probably poorly) documented here: https://github.com/mauricioszabo/atom-chlorine/blob/master/docs/custom-renderers.md

👍 1
mauricio.szabo 2020-07-23T15:13:13.290300Z

If you can't figure how to do something, please ask me, and I'll update the documentation 🙂

mauricio.szabo 2020-07-23T15:17:55.290500Z

(documenting is hard 😄)

Mikael Andersson 2020-07-23T22:01:59.303600Z

Documentation is hard, no doubt about that! If I run atom -d with an apm linked chlorine, the nodejs runtime only starts when I install the plugin, and chlorine gives me an error message about it missing when I try evaluating cljs. Restarting atom without uninstalling chlorine will not start a runtime. It's mostly a bit annoying to have to uninstall/install the plugin to get the plugin dev environment running. Hot loading obviously doesn't work either unless i uninstall - restart - install. Any ideas what could be wrong on my end?

Mikael Andersson 2020-07-28T15:47:09.304700Z

Sorry, didn't see your response for some reason. Yes, I am trying to develop chlorine, and "install" refers to clicking the install button on "Settings > Packages > Development Packages > Chlorine" The only way I get shadow-cljs and chlorine to connect is to "uninstall" chlorine -> stop atom -> apm link -d -> restart atom -> "install" chlorine.

mauricio.szabo 2020-07-28T17:59:42.304900Z

Right, thanks. So, what I do to develop Chlorine is the following: 1. Enter on packages directory on Atom (on Linux, ~/.atom/packages, on windows, I believe is C:\Users\&lt;your-user&gt;\atom\packages) 2. Git clone 3. Rename the atom-chlorine folder to just chlorine 4. Inside chlorine, run scripts/setup (if on Windows, see how to rename the submodule from the <http://git.github.com:mauricioszabo.repl-tooling|git.github.com:mauricioszabo.repl-tooling> to <https://github.com/mauricioszabo/repl-tooling.git>) 5. npm install 6. npx shadow-cljs watch dev

mauricio.szabo 2020-07-28T17:59:56.305100Z

Only then I fire up Atom

mauricio.szabo 2020-07-28T18:00:47.305300Z

@mikael I never had any luck with these "Development Packages" inside Atom, so I don't know how to debug these issues 😅

Mikael Andersson 2020-07-28T18:01:34.305500Z

Haha 😂

Mikael Andersson 2020-07-28T18:01:51.305700Z

That could explain a thing or two!

Mikael Andersson 2020-07-28T18:07:13.305900Z

... always tried to run as a dev package. Let's see if that works, and if so, I'll try to trace the dev package loading to see what differs in the package startup/load. Though I find the shadow-cljs startup to be somewhat tricky to grasp, but that's a problem for later!

mauricio.szabo 2020-07-28T22:20:57.306300Z

About Shadow-CLJS startup, by using the command npx shadow-cljs watch dev, you'll listen to the "dev" build

mauricio.szabo 2020-07-28T22:21:31.306500Z

Then, after everything compiles, the Chlorine plug-in will be compiled and can be used

mauricio.szabo 2020-07-28T22:22:55.306700Z

Then you can fire up Atom and run the Chlorine command "Connect Socket REPL". This will connect a Clojure REPL. By now, you can run "Connect Embedded", and that will start the ClojureScript REPL

mauricio.szabo 2020-07-28T22:23:14.306900Z

(it's quite confusing, but that's the way ClojureScript works 😅)

mauricio.szabo 2020-07-28T22:23:51.307100Z

By then, you can use Chlorine to develop itself, every save will auto-reload the plug-in, etc 🙂

mauricio.szabo 2020-07-23T23:06:01.303700Z

Wait, what exacty are you trying to do? Are you trying to develop Chlorine on your machine?

mauricio.szabo 2020-07-23T23:06:54.303900Z

When you say install, what do you mean in this case?