Fork me on GitHub
#boot
<
2017-01-21
>
qqq16:01:28

I'm switching over from lein. For cljs, is the standard toolkit to use figwheel or boot-cljs + boot=reload ?

pesterhazy16:01:41

boot-reload is what people use today

pesterhazy16:01:51

boot-figwheel will come soon

qqq16:01:29

It seems (to naive eyes) like a good discussion of cljs + boot, but I don't know as I'm new to boot.

qqq16:01:48

@richiardiandrea : I'm launching boot via "cider-jack-in" what is this "heads up display" boot-figreload refers to and am I missing it?

pesterhazy16:01:55

modern-cljs is absolutely worth working through

richiardiandrea16:01:43

@qqq heads up display is in the browser usually. Basically boot-figreload is just boot-reload + figwheel browser side of things

qqq16:01:32

@richiardiandrea : oh, it's that thing at the bottom of the screen that shows compile errors / warnings ?

qqq16:01:38

s/screen/browser/

pesterhazy16:01:39

@richiardiandrea I tried the example project and it already works well

pesterhazy16:01:44

good job šŸ™‚

richiardiandrea16:01:23

Oh thanks :) there are a couple of things to add (click on the heads up is not handled...)

richiardiandrea16:01:36

But I have been using it actively and it works šŸ˜€

pesterhazy16:01:07

does boot-figwheel integrate with a repl?

pesterhazy16:01:40

I remember hearing that figwheel includes code to open a repl through the same websocket cx

qqq16:01:40

figwheell provides a repl that you can access from he browser?

pesterhazy16:01:46

not from the browser but from a terminal window/editor

richiardiandrea16:01:02

@pesterhazy at the moment the repl is still boot-cljs-repl

richiardiandrea16:01:20

Haven't explored that part yet šŸ˜„

pesterhazy16:01:50

cool, I'm curious if figwheel's builtin repl offers any advantages

richiardiandrea16:01:33

Yeah I exactly want to remove the differences between the two build tools + figwheel so I want to know that as well

mobileink18:01:14

FYI, for anybody interested in boot-gae, I wrote up a couple of blog posts at http://blog.mobileink.com/. One about building a microservices app, the other describing how quasi-REPL interactive development is supported. Feedback from boot wizards warmly welcomed, Iā€™m never quite sure if Iā€™m doing it right.

bhagany20:01:05

I don't have much Java experience, so I'm probably missing some key piece of info here. I'm trying to use a Java library in a Boot project, but the lib seems to be composed of many separate modules in maven. When I try to install it the way I know how, it downloads the pom (here: https://search.maven.org/remotecontent?filepath=com/vladsch/flexmark/flexmark-java/0.11.7/flexmark-java-0.11.7.pom), but then throws a bunch of errors because it can't find a jar. It can't find it because there isn't one big jar, there's one jar for each module.

bhagany20:01:41

I've tried a bunch of permutations, trying to specify the modules I need, but I can't seem to get the right incantation. Can anyone point me in the right direction?

mobileink21:01:01

what's in your :dependencies vector in build.boot?

bhagany21:01:58

well, that's what I've been doing a bunch of permutations of

bhagany21:01:02

I started with [com.vladsch.flexmark/flexmark-java "0.11.7" :scope "test"]

bhagany21:01:21

the only thing I've tried that "works" is [com.vladsch.flexmark/flexmark "0.11.7"], which is one of the modules

mobileink21:01:31

make sure you've set :repositories to point to someplace that contains the jars.

bhagany21:01:38

they're in maven central

bhagany21:01:32

the problem with the "working" thing is that it doesn't include everything I need

mobileink21:01:10

not sure what the default is, but i've run in to similar problems. i always make the repos explicit.

bhagany21:01:54

it finds the submodules I specify, so I don't think it's a repo problem

bhagany21:01:10

the original problem is that the pom with all the modules defined doesn't have an accompanying jar

bhagany21:01:42

7 lines down, only has a pom available for download

bhagany21:01:05

I assume this is normal for a project that's structured this way, I just don't know how I'm supposed to consume it from clojure

mobileink21:01:01

just a guess: the modules are not in maven central, or sth is misconfigured.

bhagany21:01:22

the modules are there, you can see them at the same search link above

mobileink21:01:05

hmm. afaik the dependency resolution mech in boot is std sonatype aether so it should work if all the poms are copacetic. but i'm far from an expert on this stuff. šŸ˜‰

bhagany21:01:02

alright, thanks for taking a look, I appreciate it. I'll keep at it šŸ™‚

mobileink21:01:41

maybe related: other day i was looking at aws, and they do a modular thing, they call it Bill Of Materials. I ended up adding each dependency to :dependencies. tedious, but it worked.

mobileink21:01:55

haven't gotten around to asking if <dependencyManagement> is supported in boot. see http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-project-maven.html, section "Specifying individual SDK modules"

mobileink21:01:02

boot experts?

bhagany21:01:00

interesting, thanks

bhagany21:01:28

I was just in the process of exhaustively listing all the modules šŸ™‚

mobileink21:01:27

in principle, in the clojure world, "there's a lib that does that" šŸ˜‰ but maybe not in this case.

mobileink21:01:54

your chance to become a Clojure star!

mobileink22:01:20

one of my all-time favorite geek quotes, from the great Terrence Oarr, author of Antlr: "Why Program by Hand in Five Days what You Can Spend Five Years of Your Life Automating?"

mobileink22:01:46

Terrence Parr, not Oarr.