Clojurians
#lumo
<
2017-02-26
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

jonpither08:02:54

Good morning. is it possible from the REPL to load up a jar into the current classpath using a lumo fn?

jonpither09:02:48

Presumably Lumo must have the smarts, just can't find the bit of code that handles it

hlolli13:02:48

does someone know how to get the noise characters away from a inf-clojure lumo repl, @plexus if Im not mistaken, you had some CL flag in your 'inf-clojure-program that did that (refering to the last emacs meetup).

plexus13:02:21

-d for "dumb terminal"

jonpither13:02:20

Hmm @dominicm , not obvious how that PR helps. Basically trying to - from the Lumo REPL - compile a JAR and start using it (i.e. I can then require in the REPL a namespace from that JAR).

hlolli13:02:01

@jonpither lumo -c 'path/to/jar/dir' does that work?

jonpither13:02:31

Yes but I want to dynamically add to the classpath once the cljs repl has fired up

hlolli13:02:47

eldoc! :smile:

(setq inf-clojure-arglist-command
      "
   (second
   (:arglists
   (:meta (cljs.analyzer.api/resolve {} (symbol \"%s\")))))")

dominicm14:02:41

@jonpither That PR is about dynamically altering the classpath.

dominicm14:02:07

So that you can add jars to the classpath

jonpither15:02:08

Apologies, I can't seem to grok the PR (granted I'm new to Lumo). I.e. how does LUMO_ADD_SOURCES get put into the context and made accessible ?

hlolli15:02:51

if someone tries the inf-clojure-arglist-command code I posted above, one will find out that lumo spits out #_=> when evaluating that command. Would it make sense to force lumo to ignore sending these #_=> when it has no content to show?

pesterhazy15:02:19

@hlolli what do you mean?

pesterhazy15:02:35

$ echo "(cljs.analyzer.api/resolve {} 'asdf)" | lumo -d
Lumo 1.2.0
ClojureScript 1.9.482
 Docs: (doc function-name-here)
 Exit: Control+D or :cljs/quit or exit

cljs.user=> nil
cljs.user=> 

hlolli15:02:27

it's the eldoc that's causing this, not the function itself, it's probably sending string into the inf-clojure process and this is probably stdout/stderr noise coming from lumo.

pesterhazy15:02:50

#_=> means that the form is incomplete

hlolli15:02:37

ok, then something else in emacs is the problem. But you should be able to see this if you try to make inf-clojure autocomplete.

hlolli15:02:15

ah ok, this appears, and when pressing enter, it returns the same retuns as the minibuffer is messaging. Ok need to research this bit deeper.

pesterhazy15:02:31

if I press tab after typing ( I don't see anything

hlolli15:02:55

with eldoc enabled and inf-clojure process running, evaluate this

(setq inf-clojure-arglist-command
      "
   (second
   (:arglists
   (:meta (cljs.analyzer.api/resolve {} (symbol \"%s\")))))")
then more the cursor here (apply |) you see the eldoc in echo buffer and these #=> appearing in the inf-clojure repl.