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
mauricio.szabo 2019-09-06T01:29:06.153400Z

@seancorfield I think it's a common pattern this one: "wrap this code/var/selection/block into something and evaluate", so maybe it'll be good to expose some kind of API?

seancorfield 2019-09-06T01:33:44.154800Z

@mauricio.szabo Maybe. Have you looked over the rest of my inspect commands in that init.coffee file?

seancorfield 2019-09-06T01:35:45.156400Z

There are several different types of context (top block, block, selection, var-at-cursor, ...) and different code wrapping (although those could all just become a function to apply to whatever text ended up being selected).

seancorfield 2019-09-06T01:38:33.157500Z

I guess I could refactor all those commands to use a common eval and present wrapper where the range computation and wrapper functions are passed in as arguments...

mauricio.szabo 2019-09-06T02:19:22.158700Z

Yes, I saw your init. There are some on mine too, that's why I thought it would be a good idea. Also, REBL integration "out of the box" could be a good feature for Chlorine to have, so I think I'll keep it on the codebase

πŸ‘ 1
seancorfield 2019-09-06T02:43:35.159400Z

I'd certainly be happy for the extra REBL commands from my init.coffee file to end up as built-in commands in Chlorine, given that it already has two of them πŸ™‚

seancorfield 2019-09-06T04:05:38.160400Z

@mauricio.szabo I refactored my init.coffee file to a wrapped_eval function that takes three (function) args https://github.com/seancorfield/atom-chlorine-setup/blob/master/init.coffee#L59-L117

seancorfield 2019-09-06T04:07:13.161500Z

If you wire up those EditorUtils range functions to use the new rewrite-cljs logic (if the feature flag is enabled) then I'd be able to test my setup more easily against your new features πŸ™‚

2019-09-06T08:55:25.167100Z

Interesting discussion. I have a problem in that I have an old school need for understanding what’s going on (React/webpack/etc takes some calm breathing to work for me...). So. This REPL thing. Anyone know of a good resource for understanding what a repl in the Clojure world is at a technical level? (Why do we have a bunch? Differences? Etc...). Thankful for any pointers πŸ˜„

2019-09-06T09:00:33.167400Z

@Matt how about this? https://lambdaisland.com/guides/clojure-repls

2019-09-06T09:04:23.167900Z

it doesn't seem to cover prepls though

2019-09-06T09:09:14.168300Z

Thanks, I’ll read anything πŸ˜„

henrik 2019-09-06T12:53:13.168400Z

This is an interesting development as of this morning. Typing in a new namespace (cljs) repeats it in the REPL (with some delay)

mauricio.szabo 2019-09-06T13:34:39.170500Z

@seancorfield great, I'll look at your code as soon as I can. I'll first have to look at the "console" implementation (I'll try to re-add the old Console because its removal broke my workflow).

mauricio.szabo 2019-09-06T13:37:26.171700Z

@henrik it's possible that the autocomplete on ClojureScript is rendering something on the console. Maybe some debug println that escaped, or something that should be ignored that it isn't. I'll look at it too.

mauricio.szabo 2019-09-06T13:38:00.172400Z

(shadow-cljs, some versions ago, didn't redirect the console so these bugs can start to appear now that it does)