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
fabrao 2020-05-29T03:19:51.050600Z

Hello all, I saw today a strange behavior in Chlorine. I turned on refresh namespace when save a file

fabrao 2020-05-29T03:25:58.052300Z

When I save it with cursor at top, it gives the error in Chlorine console

"No value supplied for key: true"
But if I go with cursor to the end of file, no error apear :thinking_face:

seancorfield 2020-05-29T03:46:02.053100Z

Like I said before: seriously, just turn off all the refresh stuff and ignore it. Those "helpful" things bite nearly everyone who uses them in my experience.

seancorfield 2020-05-29T03:47:41.054300Z

@fabrao I suspect it's that Chlorine doesn't always know how to figure the namespace in a file if the cursor is above the ns form. I mentioned it to @mauricio.szabo a while back. Not sure if there's a GitHub issue for it.

seancorfield 2020-05-29T03:48:46.054700Z

I don't see an issue -- I'll create one. I should have created it some time ago.

fabrao 2020-05-29T03:51:16.055400Z

Sean, you consider using what to do that?

fabrao 2020-05-29T03:52:13.056300Z

like chlorine:load-file , it will work in the same way as refreshing namespace?

seancorfield 2020-05-29T03:59:18.056500Z

https://github.com/mauricioszabo/atom-chlorine/issues/193

seancorfield 2020-05-29T03:59:51.057200Z

@fabrao As I've said before: eval every top level form as you edit code -- you don't even need to save files for that.

seancorfield 2020-05-29T04:00:09.057600Z

A good RDD workflow means evaling everything you change, as you change it.

fabrao 2020-05-29T04:03:49.059900Z

Ok, that´s the way I thougth it was a good workflow for dayly , but I got your point and I agree with you

seancorfield 2020-05-29T04:11:47.061500Z

My workflow tends to involve saving code at somewhat random times so the code often isn't compilable when I save it 🙂 but it is always compilable when I eval it, because that's what I'm used to: edit, eval, edit, eval, edit, randomly save, edit, eval 🙂

seancorfield 2020-05-29T04:13:46.062500Z

I will often switch back and forth between files, making changes and eval'ing them as I go, editing code (and eval'ing it), editing tests (and eval'ing them and running them).

fabrao 2020-05-29T04:21:05.063600Z

I used to run tests each saving 🙂 , but it´s ugly when tests growing LOL

seancorfield 2020-05-29T04:23:26.064800Z

I run individual tests ctrl-; t with my cursor on the test name (I feel I should enhance that at some point to allow the cursor to be anywhere in the test form).

fabrao 2020-05-29T04:23:51.065500Z

that´s I´m doing now

seancorfield 2020-05-29T04:24:01.065700Z

So I edit a test (or write a new one) and then ctrl-; B and then ctrl-; t.

seancorfield 2020-05-29T04:24:19.066100Z

(and at some random point I do ctrl-s to save a file 🙂 )

fabrao 2020-05-29T04:24:57.066700Z

thanks again for your help. Have a nice day, cya

seancorfield 2020-05-29T04:25:15.066900Z

Cya tomorrow 🙂

mauricio.szabo 2020-05-29T13:21:24.067600Z

Just catching up now 🙂. I use refresh, but not on-save. But I also mostly work on Clojure code that's refreshable,

mauricio.szabo 2020-05-29T13:23:44.069800Z

(Also, thanks for opening the issue 👍. I'll look at it right now. I was worried about fixing that implementation because I saw some freezes on Atom when I wrote the first code for the solution, but since 0.7.0 I made some performance optimizations that will probably not freeze Atom anymore)