Fork me on GitHub
#chlorine
<
2020-06-02
>
fabrao00:06:34

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.szabo00:06:55

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 🙂

samdynamicsllc05:06:04

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!

seancorfield05:06:40

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

seancorfield05:06:59

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

seancorfield05:06:05

They make editing Clojure easier.

seancorfield05:06:44

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

samdynamicsllc05:06:38

I assume i need to install "linter" first?

seancorfield05:06:20

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

seancorfield05:06:34

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

seancorfield05:06:12

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

seancorfield05:06:33

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.

samdynamicsllc05:06:18

I am in Seattle (pacific)

samdynamicsllc05:06:48

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

samdynamicsllc05:06:45

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 🙂

seancorfield05:06:40

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

seancorfield05:06:08

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

seancorfield05:06:52

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 - 
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=> 
^ 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)

seancorfield05:06:21

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

seancorfield05:06:40

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.

seancorfield05:06:57

Are you on Windows or macOS/Linux @samdynamicsllc?

seancorfield06:06:42

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

samdynamicsllc06:06:03

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

seancorfield06:06:17

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.

samdynamicsllc06:06:02

@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.

mauricio.szabo13:06:21

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 🙂