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-24T01:45:44.097900Z

Great, I'll add these too 🙂

mauricio.szabo 2019-09-24T13:51:11.099700Z

@seancorfield just added the missing commands. Please notice that I'm not removing the old commands so far, so if you find any problem ping me (and use the old code) so I can fix it

sparkofreason 2019-09-24T15:01:52.100400Z

Are there other Atom plugins or settings people find useful in conjunction with Chlorine?

mauricio.szabo 2019-09-24T15:02:35.100800Z

I use lisp-paredit and parinfer.

1
sparkofreason 2019-09-24T15:53:27.103300Z

When I paste with parinfer on, the pasted test is placed inside the previous form in the file, regardless of the cursor position. Is that just how it works, or is there some setting which controls this?

seancorfield 2019-09-24T16:52:49.105900Z

@dave.dixon That's because parinfer adjusts the structure to match the indentation (of the code being pasted in). So, "that [is] just how it works". You could also turn parinfer off temporarily when pasting -- but then you potentially lose structural integrity of the code.

sparkofreason 2019-09-24T16:53:42.106200Z

Thanks. Just a minor difference from how it worked in Cursive.

seancorfield 2019-09-24T16:55:44.107300Z

Yeah, I don't think there's a single "right" choice here, because of the inherent tension between indentation and structure that parinfer usage implies.

mauricio.szabo 2019-09-24T16:56:53.108900Z

With parinfer, sometimes I just toggle for "parens mode" and paste my code, so I don't loose integrity and my code is auto-indented

mauricio.szabo 2019-09-24T16:57:04.109200Z

I think it's the best of both worlds

sparkofreason 2019-09-24T17:05:29.109800Z

Nice, great tip!

mauricio.szabo 2019-09-24T19:48:52.111400Z

Just published a new version now 🙂. I just found that, for some reason, exceptions are being duplicated on the console, and I have no idea why I'm not experimenting this behavior on my local development. Anywway, I'll fix it too 🙂

seancorfield 2019-09-24T19:55:59.111600Z

Updating to 0.2.0

seancorfield 2019-09-24T19:56:14.112100Z

https://github.com/mauricioszabo/atom-chlorine/blob/master/docs/extending.md is the URL of the extending doc now BTW

seancorfield 2019-09-24T19:57:27.112500Z

Oh, and it's JS not CoffeeScript 😞

mauricio.szabo 2019-09-24T20:02:38.113600Z

For some reason, my init script is JS, not CoffeeScript. But I just saw here on a blank-slate Atom that the default init script is, indeed, CoffeeScript, so I'll update this documentation to use Coffee

mauricio.szabo 2019-09-24T20:02:56.114Z

(otherwise people can be really confused...)

seancorfield 2019-09-24T20:30:02.114800Z

My atom-chlorine-setup init.coffee file has been updated for Chlorine 0.2.0 and everything seems to work! Thank you @mauricio.szabo!

mauricio.szabo 2019-09-24T20:54:47.115700Z

Great! Glad to see that everything is working fine!

seancorfield 2019-09-24T20:55:33.116100Z

Much nicer code too.

seancorfield 2019-09-24T20:56:28.117Z

I'm just about to push a change to make pkg clearer (`chlorine = pkg.mainModule` and then chlorine.ext...) but it's functionally the same.

seancorfield 2019-09-24T20:56:39.117300Z

(`package` is a reserved word in CS I discovered!)

seancorfield 2019-09-24T21:03:49.117900Z

Removed compliment from my dev dependencies and the new autocomplete all seems really good so kudos there too!

mauricio.szabo 2019-09-24T22:29:58.119500Z

Great! I'll just ask to be cautious with the name chlorine as a var. As I was testing these extension points, I found out that if I define a chlorine variable on the devtools while I'm developing the package, it conflicts with goog.global.chlorine and things break in a bizarre way 😄

mauricio.szabo 2019-09-24T22:30:34.120100Z

This is not a problem with production builds, so maybe we can keep it on the init.coffee file 🙂

seancorfield 2019-09-24T22:33:07.120600Z

Ah, interesting. I nearly used an abbreviation for it. Perhaps I'll update it to do that.

seancorfield 2019-09-24T22:59:44.121400Z

Changed to Cl (the element symbol). Although I wonder if CoffeeScript avoids the potential breakage?

mauricio.szabo 2019-09-24T23:02:06.122700Z

I think it does. Indeed, probably on init script it also avoids the breakage even in Javascript because it doesn't allow you to create global variables. It's just in the devtools that these problems occur