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
Rowan Barnard 2020-07-29T03:50:52.309600Z

@seancorfield Hi Sean, hope things are well with you, been a while since I've been on here. I have some questions regarding your Chlorine setup that I'm using.

Rowan Barnard 2020-07-29T03:54:16.312900Z

1. When I press Ctrl+Enter to make a newline when my cursor is positioned before a closing parenthesis, it just makes a newline and moves my cursor to that new line - how do I make it so that the closing parenthesis is moved to a new line so that I can make a multi-line function? This is on Windows btw, if that makes a difference.

Rowan Barnard 2020-07-29T03:58:38.317300Z

2. After I finish a Chlorine session and I am closing things down, when I try to exit the Clojure prompt in the Powershell window (that I used to start the session with) I enter Ctrl+Z to exit it but it just hangs and never seems to exit properly - perhaps a bug? So I just close the Powershell window instead - it seems to close the JVM down as task manager doesn't seem to show any JVM instances.

seancorfield 2020-07-29T03:58:42.317500Z

Yeah, I've never figured out entirely satisfactory behavior of Atom on Windows. I mostly work on a Mac.

seancorfield 2020-07-29T03:59:05.318100Z

Do you press enter after pressing ctrl-z ?

Rowan Barnard 2020-07-29T03:59:11.318300Z

Yes

Rowan Barnard 2020-07-29T03:59:18.318600Z

Then it hangs

seancorfield 2020-07-29T03:59:22.318800Z

Ah you have REBL running as well?

Rowan Barnard 2020-07-29T03:59:33.319100Z

Yes but I close that down first

seancorfield 2020-07-29T03:59:51.319500Z

You have to use ctrl-c I think

Rowan Barnard 2020-07-29T03:59:57.319700Z

Not sure if that makes a difference

Rowan Barnard 2020-07-29T04:00:16.320200Z

OK I will try that next time then and let you know if it works

seancorfield 2020-07-29T04:01:02.321600Z

On macOS, I can just switch to the REBL process and press cmd-q which quits the whole thing. I wonder if you can use alt-f4 on Windows?

seancorfield 2020-07-29T04:01:45.322900Z

When I replace my main dev machine (a 27" iMac), it'll be with a Windows machine and I'll have to figure all this stuff out properly 🙂

Rowan Barnard 2020-07-29T04:01:50.323Z

OK - so is it still running even though I closed it?

seancorfield 2020-07-29T04:02:16.324Z

Closing the UI doesn't stop REBL running so, yeah, probably something is running in the background.

Rowan Barnard 2020-07-29T04:02:34.324400Z

My main problem though is the multi-line thing though - the hanging is just a minor annoyance

Rowan Barnard 2020-07-29T04:03:09.325100Z

If I can't multi-line functions - I am going to have some very long single line functions 😛

Rowan Barnard 2020-07-29T04:03:38.325600Z

OK thanks for the REBL info 🙂

seancorfield 2020-07-29T04:05:24.326800Z

Ah, no, apparently you can't use alt-f4 it seems.

Rowan Barnard 2020-07-29T04:05:32.327200Z

I guess I can cut and paste the closing parenthesis onto a newline as a temporary workaround - only just thought of that

seancorfield 2020-07-29T04:05:38.327500Z

That closes the window but does not quit the process

seancorfield 2020-07-29T04:06:08.328300Z

Having you tried just regular enter instead of ctrl-enter?

Rowan Barnard 2020-07-29T04:06:24.328800Z

Enter doesn't seem to do anything

Rowan Barnard 2020-07-29T04:06:37.329300Z

I have to press Ctrl+Enter

seancorfield 2020-07-29T04:06:51.330Z

Hmm, it does for me (although it seems to break structure/indentation).

Rowan Barnard 2020-07-29T04:07:03.330300Z

Even though enter is in your keymap.cson

Rowan Barnard 2020-07-29T04:07:12.330600Z

So not sure why that doesn't work

seancorfield 2020-07-29T04:07:52.331500Z

Dunno. Like I say, I don't do enough dev on Windows to warrant spending that much time figuring these sorts of weirdnesses out.

Rowan Barnard 2020-07-29T04:09:07.332200Z

It says something in the keymap.cson comments about Ctrl sometimes being needed: "If you're having trouble with your keybindings not working, try the # Keybinding Resolver: Cmd+. on macOS and Ctrl+. on other platforms"

Rowan Barnard 2020-07-29T04:09:36.332800Z

There is a link to info in the Atom manual so maybe I can get some help there

Rowan Barnard 2020-07-29T04:10:32.333900Z

Thanks for your time and help Sean! 😉

Rowan Barnard 2020-07-29T04:11:52.334500Z

And you're starting to make me want a Mac ha ha 😛

seancorfield 2020-07-29T04:12:20.334900Z

I'm switching from Apple products after 30 years.

seancorfield 2020-07-29T04:12:50.335500Z

I just bought my first non-Apple smartphone.

Rowan Barnard 2020-07-29T04:13:36.335900Z

Hmm and what's that experience been like?

seancorfield 2020-07-29T04:14:41.337200Z

I'm loving the switch 🙂

seancorfield 2020-07-29T04:15:22.338500Z

I like the deep integration Windows offers with Android phones. I like Windows a lot more than macOS these days. I think Apple has lost the plot.

Rowan Barnard 2020-07-29T04:16:00.339300Z

Oh yeah and I forgot my third question too if you don't mind answering: With the Scoop installer for Clojure there is extras like clj-kondo, babashka and joker - should I install those as well? Or maybe just clj-kondo - not sure if Chlorine has linting built in or not?

seancorfield 2020-07-29T04:16:31.340300Z

Atom has a linter package and there's also a linter-kondo package which will use clj-kondo

Rowan Barnard 2020-07-29T04:16:47.341Z

OK so maybe I'll stick with Windows then and maybe use Linux with WSL2 - that sounds like might be nice

seancorfield 2020-07-29T04:16:57.341400Z

I use that a lot. I used to use Joker, but clj-kondo is much better.

seancorfield 2020-07-29T04:17:09.341900Z

I have not found a use for babashka yet.

Rowan Barnard 2020-07-29T04:17:25.342200Z

OK thanks so I'll just install the Atom one then

seancorfield 2020-07-29T04:18:07.342700Z

clj-kondo from Scoop, plus linter-kondo for Atom (it'll install linter automatically).

Rowan Barnard 2020-07-29T04:18:51.343200Z

OK thanks 🙂

seancorfield 2020-07-29T04:20:37.343700Z

But, yes, using WSL lets you get a lot of the nice development tool experience.

seancorfield 2020-07-29T04:21:34.345Z

And Microsoft are planning to support Linux apps with a UI so maybe running Atom and REBL etc on WSL will be viable "soon"...

Rowan Barnard 2020-07-29T04:21:52.345400Z

Yeah I'm thinking it's probably easier to do Clojure and Chlorine on that instead of directly in Windows

Rowan Barnard 2020-07-29T04:22:52.346400Z

Plus I've been interested in Graal and wanted to play with that but I don't think there is a Windows installer yet, might be mistaken

seancorfield 2020-07-29T04:23:15.346800Z

No idea, I haven't even looked at Graal.

Rowan Barnard 2020-07-29T04:48:54.351400Z

@seancorfield I read through some of the Atom stuff and found this Keybinding Resolver which says when I am pressing Enter it is executing the Enter command from the win32.cson file which has core:confirm listed as the value for that keybinding. Which I'm guessing is just Enter being used to confirm things. I think I'll just change the keybinding in keymap.cson to something other than Enter for now.