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
seancorfield 2020-05-30T18:03:06.070700Z

@mauricio.szabo How close to parity with Chlorine is your VS Code plugin? Does it have the new sci-based cljs configuration/extension stuff?

mauricio.szabo 2020-05-30T18:06:27.073800Z

@seancorfield not yet. I need to figure out how to add these on VSCode. In theory, it should work. The problem is mostly that VSCode does not allow me to add commands "on the fly" - they all have to be defined on package.json file. Calva adds a dropdown menu with "additonal commands", but then you can't use keymaps to evaluate code (as far as I know - still checking if there's a way). It's also not playing nice with Clojure indentation yet 😞.

mauricio.szabo 2020-05-30T18:34:37.074200Z

But... I was able to add docstrings on Autocomplete! πŸ™‚

mauricio.szabo 2020-05-30T18:34:42.074300Z

mauricio.szabo 2020-05-30T18:35:22.075400Z

There's an API that allows Atom to get these informations lazily, so it'll not slow down autocomplete as I was fearing πŸ™‚

πŸ’― 1
seancorfield 2020-05-30T18:56:08.075800Z

That's awesome! Thank you!

seancorfield 2020-05-30T18:58:29.077800Z

Re: Clover/VS Code -- if you figure out how to a) add new commands from the cljs file and b) bind them to keys, I might well switch from Atom to VS Code. There are just enough annoying differences between key bindings on Atom/macOS and Atom/Windows that I'm frustrated when switching between my laptop and my desktop -- VS Code seems better in that small respect.

pez 2020-05-30T19:23:54.080300Z

I think we can find a way for chlorine to use Calva's formatter code, if we think about it together some. Of course you can just copy it, but I think we can do something a bit smarter.

pez 2020-05-31T14:16:30.088700Z

Hello again, I'm available for a zoom, if you are.

mauricio.szabo 2020-05-31T14:29:00.088900Z

Yes, I am. Just give me about 15 minutes :)

pez 2020-05-31T14:31:36.089100Z

Join when you're ready πŸ˜ƒ https://us02web.zoom.us/j/3584342566

mauricio.szabo 2020-05-30T19:28:32.080500Z

@pez great! Do you think it would be easy to publish the formatter as a npm module, or something? (Is it Javascript or ClojureScript?)

pez 2020-05-30T21:21:59.082500Z

It’s both. πŸ˜€ Well, ts + cljs. Let's talk about it over zoom? But tomorrow, I'm off to bed now.

mauricio.szabo 2020-05-30T21:25:00.082700Z

Yes, let's try to talk tomorrow! See you then πŸ™‚

seancorfield 2020-05-30T23:06:10.083600Z

@mauricio.szabo Watching all those commits for 0.7.3 -- looking forward to updating to that version and trying it out! πŸ™‚

mauricio.szabo 2020-05-30T23:08:01.083900Z

Just published! πŸ™‚

mauricio.szabo 2020-05-30T23:12:52.084700Z

Also, I forgot to mention on the README and docs (need to update then) - p/let is now being used to "wait for promises" instead of let

seancorfield 2020-05-30T23:13:44.085200Z

Ah, that explains why nothing works for me πŸ™‚ Will update...

mauricio.szabo 2020-05-30T23:16:07.085500Z

(I hope I did not break anything in the process πŸ˜„)

seancorfield 2020-05-30T23:16:56.086200Z

Everything works locally with that change. And getNamespace() works anywhere in the file now -- THANK YOU!

seancorfield 2020-05-30T23:21:24.086700Z

Updated and pushed my atom-chlorine-setup repo.

mauricio.szabo 2020-05-30T23:28:49.087800Z

Wow, great! Now I have lots of thing to document πŸ˜„