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-06-02T00:00:34.115300Z

This is I got when connect to shadow-cljs nRepl

Execution error (FileNotFoundException) at shadow.user/eval31100 (REPL:1).
Could not locate orchard/info__init.class, orchard/info.clj or orchard/info.cljc on classpath.
Execution error (FileNotFoundException) at shadow.user/eval31102 (REPL:1).
Could not locate orchard/xref__init.class, orchard/xref.clj or orchard/xref.cljc on classpath.
Execution error (FileNotFoundException) at shadow.user/eval31104 (REPL:1).
Could not locate orchard/clojuredocs__init.class, orchard/clojuredocs.clj or orchard/clojuredocs.cljc on classpath.

mauricio.szabo 2020-06-02T00:40:55.116900Z

Are you connecting on nrepl port? Also, I believe the message is harmless, and it'll only appear once.. There's already an issue to investigate it 🙂

Murf 2020-06-02T05:21:04.118700Z

hi folks! Brand new to clojure and I use Atom and at recommendation of @seancorfield in the protorepl channel, he said to come here and use Chlorine. As a complete noob, is there anything else I need for Atom (other than ink prereq) to get going with Clojure? Thanks!

seancorfield 2020-06-02T05:26:40.119400Z

You no longer need Ink I believe (maybe the docs still say you do). Chlorine will install what it needs as dependencies anyway.

seancorfield 2020-06-02T05:26:59.119800Z

I would recommend lisp-paredit and/or parinfer packages.

seancorfield 2020-06-02T05:27:05.120Z

They make editing Clojure easier.

seancorfield 2020-06-02T05:30:44.120600Z

linter-kondo is helpful too -- it'll flag potential bugs in your code as well as help with style suggestions.

seancorfield 2020-06-02T05:31:34.121200Z

The nice thing about Chlorine is that it works with both nREPL / Leiningen and Socket REPL / Clojure CLI / deps.edn

seancorfield 2020-06-02T05:32:12.121900Z

(although I'd probably stick with a Socket REPL, even with Leiningen since I prefer to avoid the nREPL stack altogether)

seancorfield 2020-06-02T05:35:33.123Z

Which timezone are you in @samdynamicsllc? Things get a bit quiet here this late at night Pacific time but it picks up later as Europe comes online and then as the East Coast US comes online later.

Murf 2020-06-02T05:38:38.123100Z

I assume i need to install "linter" first?

Murf 2020-06-02T05:41:18.123400Z

I am in Seattle (pacific)

Murf 2020-06-02T05:41:48.123800Z

Thanks for all your help @seancorfield! Really appreciate it.

Murf 2020-06-02T05:43:45.125800Z

you started to lose me here though... "The nice thing about Chlorine is that it works with both nREPL / Leiningen and Socket REPL / Clojure CLI / deps.edn"... I am like Day One noob with Clojure. Does Chlorine work standalone as REPL? Or do I need nREPL / Socket REPL etc.? I apologize for my ignorance. I am working through all the terms still 🙂

seancorfield 2020-06-02T05:53:40.126200Z

No problem. And, yeah, you're in the same TZ as me (San Francisco area).

1👍
seancorfield 2020-06-02T05:54:08.126700Z

With Chlorine, you start a REPL separately, in a terminal, and then connect Chlorine to it.

seancorfield 2020-06-02T05:56:52.128900Z

Most of the tutorials / book will set you up with Leiningen, and that starts what's called an "nREPL Server":

(! 501)-> lein repl
nREPL server started on port 62468 on host 127.0.0.1 - <nrepl://127.0.0.1:62468>
REPL-y 0.4.4, nREPL 0.6.0
Clojure 1.10.0
OpenJDK 64-Bit Server VM 14+36-1461
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=&gt; 
^ nREPL server started on port 62468, so you can tell Chlorine to connect to localhost, port 62468. (it might show some errors in the Chlorine REPL tab when it starts -- that's just it testing for optional functionality... it'll still work just fine)

seancorfield 2020-06-02T05:57:21.129400Z

lein repl tends to start up on a different REPL each time.

seancorfield 2020-06-02T05:58:20.129500Z

Maybe. I'm not sure whether linter-kondo automatically installs dependencies or not.

seancorfield 2020-06-02T05:59:40.130900Z

If you start with the Getting Started stuff on http://clojure.org, that'll lead you to use the Clojure CLI / deps.edn which is a modern alternative to lein. But both are fine. Whatever your books / tutorials recommend. You can always install and use both at different times.

seancorfield 2020-06-02T05:59:57.131300Z

Are you on Windows or macOS/Linux @samdynamicsllc?

Murf 2020-06-02T06:18:21.131600Z

Windows

seancorfield 2020-06-02T06:18:42.132Z

Yeah, just saw that in the #beginners thread -- and I responded there.

Murf 2020-06-02T06:19:03.132500Z

oh wow jeez thanks so much for all your help! too kind!

seancorfield 2020-06-02T06:20:17.133900Z

I'm about to head to bed but I'll be around all day tomorrow I expect. Feel free to hit me up via DM if you get stuck. I have Atom/Chlorine etc all set up on a Windows laptop, even tho' I do most of my Clojure work on a macOS desktop.

Murf 2020-06-02T06:25:02.134900Z

@seancorfield I can't thank you enough! I will let you know how it goes. Have a busy "day job" work day tomorrow so don't know how much I will get through 😉 But I will dive in the next day or two installing clojure based on your recommendations and will let you know if I run into trouble.

1
mauricio.szabo 2020-06-02T13:25:21.138Z

Hi, @samdynamicsllc, were you able to make it work? Also, Chlorine doesn't need Ink anymore (dropped on 0.7.0 version). The README of Chlorine shows how to start a socket REPL both on Windows and *nix systems, so if you become stuck, you can open an issue and I'll update the documentation 🙂