Fork me on GitHub
#boot
<
2016-04-02
>
lwhorton18:04:19

Hey guys, what the heck am I doing wrong here? I'm trying to require transit-cljs, but it's not published on clojars. I would figure that's fine because the boot config looks like this:

(def ^:private default-repos     [["clojars"       {:url ""}]
                                  ["maven-central" {:url ""}]])
Which seems to include repo1.maven, where I do see the artifact published: http://search.maven.org/#artifactdetails%7Ccom.cognitect%7Ctransit-cljs%7C0.8.237%7Cjar

lwhorton18:04:11

my :dependencies has [com.cognitec/transit-cljs "0.8.237"] but when I run any boot task, it fails out with Could not find artifact com.cognitec:transit-cljs:jar:0.8.237 in clojars ()

micha18:04:34

typo: com.cognitec/transit-cljs

micha18:04:42

missing a t

lwhorton18:04:13

oh. my. god.

lwhorton18:04:41

that was the first thing I checked and I reread it 5 times... oh well, at least I learned a bit more about boot and maven.

richiardiandrea22:04:10

when after (start-repl) I keep on seeing:

boot.user=> (start-repl)
<< started Weasel server on ws://127.0.0.1:36172 >>
<< waiting for client to connect ... Connection is 
Writing boot_cljs_repl.cljs...

richiardiandrea22:04:29

what does it mean? am I missing something?

micha22:04:40

it's working, right?

micha22:04:49

that looks like what it should print

richiardiandrea22:04:15

shouldn't I see a cljs.user=> somewhere?

micha22:04:27

you might need to have the browser connect

micha22:04:36

to the websocket

richiardiandrea22:04:39

yes the browser displays the app

micha22:04:55

and in the js console it should print something about the repl ws connection

richiardiandrea22:04:58

Reload websocket connected.

micha22:04:11

yeah there should be something like that for the repl websocket also

richiardiandrea22:04:15

nREPL server started on port 43996 on host 127.0.0.1 - 
Writing main.cljs.edn...
Compiling ClojureScript...
ā€¢ main.js
Writing target dir(s)...
Adding :require adzerk.boot-reload to main.cljs.edn...
Elapsed time: 56.371 sec

richiardiandrea22:04:30

maybe it is missing the websocket connection from the browser then

micha22:04:33

the reload websocket is different from the repl one

richiardiandrea22:04:14

ok I might need to investigate why it is not connecting from my app, it should be embedded in my javascript right?

micha22:04:15

oh do you have advanced optimizations on?

micha22:04:27

i don't think this stuff works with optimizations

richiardiandrea22:04:39

no everything :none

micha22:04:52

and it takes 56 seconds to compile?

micha22:04:55

that's a long time

richiardiandrea22:04:27

maybe I am doing something weird in there

richiardiandrea22:04:38

but I don't want to waste your time in debugging šŸ˜„

richiardiandrea22:04:55

I was calling set-env! from two different tasks

micha22:04:46

interesting