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
2020-01-11T16:16:11.003400Z

So, in an attempt to eval more during development I’m finally trying to set up keyboard shortcuts 😋 Have to ask, though... what is a block in Clj land? In the context of Chlorine commands, that is.

mauricio.szabo 2020-01-11T16:18:27.004400Z

A block in Chlorine is just when a paren / bracket opens, until it closes

mauricio.szabo 2020-01-11T16:19:56.006200Z

There are some peculiarities in Chlorine, most of then were deliberate. For example, '(+ 1 2) will consider the quotes as part of the block

mauricio.szabo 2020-01-11T16:21:32.007900Z

But (quote (+ 1 2)) will try to evaluate the addition of you ask to evaluate block while your selection is inside the inner block

2020-01-11T16:34:49.008800Z

Thanks! I’ll play around 🙂

athomasoriginal 2020-01-11T20:20:39.013Z

Just started playing with connecting Chlorine to a Shadow-CLJS repl. I am running into an issue where connect embedded returns a notification in Atom: File shadow-cljs.edn not found The steps I am running: 1. basic shadow-cljs app is setup 2. Run npx shadow-cljs watch app (works as expected) 3. In Atom: connect Clojure Socket REPL (I have to manually add the socket repl port, but it connects…is it supposed to auto detect?) 4. Visit http://localhost:8020/ (the app) 5. Visit http://localhost:9630/ (the shadow-cljs UI) 6. In Atom: connect Embedded Step 4 fails with the message: File shadow-cljs.edn not found I did randomly get it to work once, but never again 😞

athomasoriginal 2020-01-11T20:25:43.014300Z

Atom version: 1.42.0 Chlorine version: 0.3.9 Shadow-CLJS CLI version: 2.8.83

2020-01-11T20:48:37.017900Z

i just tried with the same atom, chlorine, and shadow-cljs versions for: https://github.com/shadow-cljs/examples/tree/master/re-frame the following seems to work here: 0. clone, install, etc. 1. cd re-frame 2. npm install 3. npx shadow-cljs watch app 4. # open http://localhost:8280/ in browser 5. # start atom and open re-frame folder 6. # via atom command palette: Chlorine: Connect Socket Repl 7. # via atom command palette: Chlorine: Connect Embedded 8. # choose app in dialog i don't know which project you are trying, but i noticed that the port number for the http url appears different

athomasoriginal 2020-01-11T20:56:02.018200Z

I will give ^^ a try.

mauricio.szabo 2020-01-11T21:05:53.021200Z

@tkjone Chlorine searches for a shadow-cljs.edn file on the root of the project. How are you running atom?

athomasoriginal 2020-01-11T21:10:08.022100Z

I usually just open atom from the CLI or from the dock and then manually open dirs, or drag dirs into the editor :thinking_face:

athomasoriginal 2020-01-11T21:10:58.022400Z

Yup. I totally see what you’re saying

athomasoriginal 2020-01-11T21:11:47.023400Z

The issue was that the app I am running is nested in another dir and I had the parent dir loaded in Atom, vs the actual app dir directly loaded at the top level

athomasoriginal 2020-01-11T21:14:59.023700Z

Thanks!

👍 1
2020-01-11T21:54:11.024700Z

i've done this before 🙂