Fork me on GitHub
#boot
<
2017-03-03
>
seancorfield01:03:53

What’s the status of that slow SSL artifact downloading issue? I seem to recall it was “fixed” a while back but I don’t recall whether a new release appeared or is imminent to address it?

flyboarder02:03:39

How can I require a namespace from within a task so that I can comp other tasks?

richiardiandrea02:03:11

@flyboarder doesn't (require ....) work? Maybe I don't understand the issue very well

flyboarder03:03:56

@richiardiandrea I found the issue, thanks for the response tho!

juhoteperi08:03:40

Huh, finally found the problem I've been having with Boot-cljs 2.0.0-SNAPSHOT: https://github.com/boot-clj/boot-cljs/commit/a37a38fa54efad02805f82d4cd8b080ff3c1f7e4 warning extra data might contain unprintable data

juhoteperi08:03:16

Just trying to pr-str or str the extra will hang

juhoteperi08:03:48

and eventually java will run out of memory

pesterhazy10:03:59

Running this on a new computer, I didn't get the output I expected:

$ BOOT_CLOJURE_VERSION=1.9.0-alpha14 boot repl
Downloading ...
Running for the first time, BOOT_VERSION not set: updating to latest.
Retrieving boot-2.7.1.jar from 
Retrieving clojure-1.9.0-alpha14.jar from 
#
#Fri Mar 03 11:56:31 CET 2017
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.7.1
BOOT_CLOJURE_VERSION=1.9.0-alpha14

pesterhazy10:03:38

it looks like instead of opening the repl, it just printed out boot.properties

martinklepsch10:03:38

you mean the 2.5.2?

pesterhazy11:03:08

when I re-run the same command, it does work

pesterhazy11:03:24

but I didn't expect having to run the command twice

qqq14:03:40

I knowa bout "boot repl -c" is there a way to "boot repl -c" to a REMOTE nrepl server?

qqq14:03:21

I ask this because ;I have a "boot repl" running on REMOTE_BEEFY machine, and I want to conenct to it via "boot repl -c" from local-mbp-emacs-inferior-lisp-buffer

martinklepsch14:03:24

@qqq check boot repl —help — it has host and port options

qqq14:03:01

@martinklepsch : so it should be boot repl -c -H 192.168.0.113 -p 8230 where the IP is 192.168.0.113, and the remote-machine/.nrepl-port shows 8230 right? [not 100% sure as this gives me an exception and I need to figure out if (1) I have the right cmd, but something else is brokne or (2) I get exception because my cmd is broken]

martinklepsch14:03:31

@qqq what does the exception say? you could try without the explicit -c but it looks like reasonable otherwise

qqq14:03:30

ConnectException connection refused (Connection refused) ... stack frames involving http://java.net

qqq14:03:42

actually, I think I know what's going on now 🙂

mobileink14:03:19

hi folks, I’m trying to use boot-reload and I’m getting the follow exception when I edit a file:

[worker-2] ERROR - handle websocket frame [email protected]
java.lang.IllegalArgumentException: No method in multimethod 'handle-message' for dispatch value: null

mobileink14:03:58

but the reload seems to be going through anyway. can anybody explain what’s happening? thx.

qqq14:03:01

hmm, so opening nrepls on host 0.0.0.0insteadof localhost is generally a BAD idea unless you want to given everyone on local network access right?

miikka15:03:54

Indeed. And if you're directly connected to internet, that's everyone

micha16:03:32

@pesterhazy it exits after downloading a new version of boot to simplify the process

micha16:03:50

otherwise it would need to do some fancy footwork to patch in a different version of boot

martinklepsch16:03:04

That kind of makes sense heh 🙂

lwhorton17:03:01

after a bit of a wild goose chase, I found out that boot-cljsjs doesn’t seem to work without an explicit dep on clj-http

lwhorton17:03:11

But I’m getting the most peculiar

clojure.lang.ExceptionInfo: Call to clojure.core/defn- did not conform to spec:
                                         In: [0] val: clj-tuple/conj-tuple fails spec: :clojure.core.specs/defn-args
if I attempt to use download/checksum/deps-cljs without listing clj-http as a dep, (even though I want to use http-kit instead internally)

lwhorton17:03:30

can anyone else confirm this, or am I still chasing the wrong goose?

bhagany17:03:20

@lwhorton I ran into something similar to this last week - I think some libraries aren't yet updated to work with the latest clojure 1.9 alphas. I was in a hurry, so I didn't investigate fully, and I'm afraid I don't have a satisfying answer for you. I ended up... <small>using lein</small>

micha17:03:24

@lwhorton it's unusual to be using cljsjs in your application

micha17:03:50

usually you would simply consume the prepackaged jars in your application

micha17:03:07

so i recommend separating the cljsjs packaging from the application

micha17:03:32

then there is no conflict with the clj-http pod dependency

lwhorton17:03:46

@micha perhaps i’m misusuing it, but what I’m doing is a task that downloads a lib (not available on cljsjs) for both minified and non-min, sifting them into cljsjs/{prod,dev}/my-lib.{min}inc.js, then using deps-cljs to :name “libs.my-lib” so I can consume it from my app

micha17:03:05

why not just make a cljsjs package?

lwhorton17:03:30

this is a pet project on which I wanted to spend a weekend, and the hassle that comes from making a proper externs.js file is pretty prohibitive

micha17:03:51

you can still make the package without externs and just install it locally

lwhorton17:03:50

guess I didn’t think of doing a local copy

micha17:03:05

like into your local .m2 maven repo

pandeiro17:03:18

also re: externs there's http://www.dotnetwise.com/Code/Externs/ - good for a first pass usually

pandeiro17:03:12

(just remembered: wasn't cljs getting externs inference as well? need to see the status of that)

lwhorton17:03:16

oh thanks @bhagany for the reconfirmation, btw… i figured it’s something to do with 1.9a but who knows

lwhorton17:03:27

i’ve been watching it carefully, sadly it still requires annotations

lwhorton17:03:49

which, tbh, I would almost rather just write an externs file than litter the code with oddities like meta-tags, but that’s personal preference I suppose

lwhorton17:03:07

thanks for pushing me to the next step @micha, too

pesterhazy18:03:43

@micha, thanks for the explanation