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
Ahmed Hassan 2019-08-14T08:43:26.162500Z

I get this Failed to refresh error whenever first time I start JVM, connect with REPL and refresh. Subsequent refreshes work fine.

Ahmed Hassan 2019-08-14T08:47:43.163200Z

in deps.edn I have

{org.clojure/tools.namespace {:mvn/version "0.3.1"}}

mauricio.szabo 2019-08-14T13:49:51.164200Z

@ahmed1hsn I'll check this, but I probably know what's happening. What's your Clojure version?

mauricio.szabo 2019-08-14T13:53:01.165400Z

No, I don't know what's happening :rolling_on_the_floor_laughing:. It's strange because the first few lines of the refresh command do require the clojure.test namespace: https://github.com/mauricioszabo/atom-chlorine/blob/rendering-ratios/src/chlorine/features/refresh.cljs#L8-L12

Ahmed Hassan 2019-08-14T13:54:19.166400Z

It worked okay with Leiningen.

Ahmed Hassan 2019-08-14T13:55:57.167500Z

I'm using 0.1.10 chlorine.

mauricio.szabo 2019-08-14T13:59:49.168200Z

And what's the Clojure version?

mauricio.szabo 2019-08-14T14:01:07.168700Z

(I'm about to publish a new version, so that's why I'm asking, so I can issue a correction to this bug too :))

Ahmed Hassan 2019-08-14T14:02:35.169300Z

Clojure 1.10.1

Ahmed Hassan 2019-08-14T14:03:13.169900Z

Thanks, I'm enjoying Chlorine 🙂

mauricio.szabo 2019-08-14T14:06:55.171900Z

Ah, let me ask for some debugging: you said that the first time you're running the refresh, you get this error. So, if you stop the REPL, start again, connect Chlorine to it, and try to refresh, you'll get the error, right? Now, if you stop the repl, close atom, start the repl, start atom, and try to connect and refresh, do you get the same error?

Ahmed Hassan 2019-08-14T16:56:24.172900Z

Error occurs when I first time start jvm, start atom, start repl and try to save file. on other rounds you mentioned error does not occur.

Ahmed Hassan 2019-08-14T17:04:25.175600Z

When I again restart jvm (while atom remains open) connect repl and save file(ctrl+s), error is prompted again.

Ahmed Hassan 2019-08-14T17:05:14.176700Z

Caveat is with fresh start of jvm, as I mentioned earlier, subsequent refreshes work fine.

Ahmed Hassan 2019-08-14T17:05:53.177700Z

(only problem is first refresh on new start of jvm)