Fork me on GitHub
#boot
<
2016-12-23
>
richiardiandrea00:12:20

mmm...still something weird here, I am going to try the test in the wiki

alandipert06:12:58

quick mac question: on recent macs with developer tools installed, does cc point at gcc or clang?

chunsj06:12:49

@alandipert cc β€”version says "Apple LLVM version 8.0.0 (clang-800.0.42.1)”, so clang.

chunsj07:12:07

@alandipert ah, my macos is sierra.

alandipert07:12:15

that's the new one right?

mitchelkuijpers09:12:06

@richiardiandrea lambone is a nice boot build, always wanted to start using pods and actually separate the dependencies for the client and server. Are there any big drawbacks with this approach?

grounded_sage14:12:46

My website is officially live. Unpolished and unfinished but good enough for now http://www.veganbusinessnetwork.org. Thanks to Boot I feel like I am starting to become a programmer and feel in control of my tools.

kirill.salykin15:12:54

@grounded_sage I guess you need to use some js optimizations, cause now it loads all js in billion of files

alandipert15:12:36

@grounded_sage it looks nice, congratulations!

jsanchesleao15:12:53

hey... I'm trying to publish an artifact to maven using boot and it turns out that I need to include in my bundle javadocs and source jars... Is there an easy way to do it and integrate with boot push?

iago.b2wdigital16:12:26

Hello man... @jsanchesleao and I are having some problems deploying to maven central

iago.b2wdigital16:12:13

Our Christmas kinda depends on this =/

micha16:12:26

i don't think boot push currently supports this, but you can i think write your own push task that uses the lower level functions in the boot.aether namespace, like boot.aether/deploy, which accepts an artifact-map

iago.b2wdigital16:12:09

Guess we'll need that

iago.b2wdigital16:12:32

And maybe if the company approves, we can contribute to boot adding the support to the tool πŸ˜ƒ

iago.b2wdigital16:12:47

Thanks again man

micha16:12:52

awesome yeah, it might be as simple as adding an option that passes the artifact map down to the lower level functions

micha16:12:03

i mean adding an option to the existing push task

iago.b2wdigital16:12:28

All right.. Merry Xmas

micha16:12:35

same to you!

micha16:12:55

i'll have some time to look at this in the next week or so as i'll be on vacation

micha16:12:05

if you run into issues

iago.b2wdigital16:12:29

Thanks again.. we have big projects coming here

iago.b2wdigital16:12:10

We're still writing docs and publishing to repos..

iago.b2wdigital16:12:47

This is the first one, if you wanna take a look: https://github.com/B2W-Digital/pdg-core It's still missing some doc but we're working as fast as we can to wrap it all up

micha16:12:19

interesting!

richiardiandrea16:12:01

@mitchelkuijpers a bit more code maybe on the boot side, and a weird thing, with cljc file you will see that you cannot really achieve complete classpath separation. I don't recall the check now, I will check in the actual project and report back (minor thing though)

richiardiandrea17:12:34

Yes, so when you include, say, clj-time in a :clj clause in a cljc file you need the dependency in the frontend as well, you cannot omit it. Probably because the cljs compiler still executes requires in order to see if there is some macro namespace to load? I don't know actually I haven't investigated

kanwei17:12:29

anybody else?

kanwei17:12:29

Retrieving maven-metadata.xml from https://repo.clojars.org/ (3k) Checksum validation failed, expected 219612d1b539be4871d4370ba5624a409aaa9e34 but is 56c7b63dc57de1fd4fad52d677c3c432acda211e

tcrawley17:12:06

@kanwei: what project is the metadata for?

kanwei17:12:23

I'm just doing a boot -u in my project

tcrawley17:12:14

right, but the maven-metadata.xml will be for a particular project - is there more output above that error?

tcrawley17:12:51

it's likely a project that had a failed deploy before we implemented atomic deploys - that could lead to a mismatch between the file and the checksum

kanwei17:12:19

Retrieving maven-metadata.xml from https://repo.clojars.org/ (3k) Checksum validation failed, expected 219612d1b539be4871d4370ba5624a409aaa9e34 but is 56c7b63dc57de1fd4fad52d677c3c432acda211e Retrieving maven-metadata.xml from https://repo.clojars.org/ (3k) Could not transfer metadata boot:boot/maven-metadata.xml from/to clojars (https://repo.clojars.org/): Checksum validation failed, expected 219612d1b539be4871d4370ba5624a409aaa9e34 but is 56c7b63dc57de1fd4fad52d677c3c432acda211e

kanwei17:12:10

that's all I'm getting... boot -u doesn't work, boot dev works

tcrawley17:12:35

can you share your dependencies? does boot -u work outside of a project?

tcrawley17:12:00

oh, wait, it says it's boot/boot in that output. I'll take a look

tcrawley17:12:42

@kanwei: hmm. it looks like we have a mismatch between the .sha1 sum file in the CDN vs what's on the server. I'll dig deeper

tcrawley17:12:22

ah, it looks like we need to adjust the TTL rules on the CDN

pesterhazy17:12:40

Is this the easiest way to start s "socket repl" with boot?

BOOT_CLOJURE_VERSION=1.8.0 boot -i "(do (require 'clojure.core.server) ((resolve 'clojure.core.server/start-server) {:port 9999 :name :repl :accept 'clojure.core.server/repl}))" wait

micha17:12:53

looks good to me

pesterhazy18:12:39

Is there an interest in a boot task to do that, similar to repl --server?

micha18:12:22

there should be one πŸ™‚

mf18:12:34

Hi, I have Travis CI configured to run some ClojureScript tests, which up until now has been working fine using the crisptrutski/boot-cljs-test library. However a recent test has broken the build with the following error thrown:

adzerk.boot_cljs.util.proxy$java.lang.Throwable$ff19274a: java.lang.OutOfMemoryError: PermGen space, compiling:(match.clj:760:1)
The error is being thrown when the CI server transpilles the cljs to JS (before it is sent to PhantomJS to run the tests). I believe the issue may just be that Boot is exceeding the memory limits allocated to the JVM (Java 8 ). The Travis server should have 7.5gb available to it, but I'm not sure how much is actually being allocated to the JVM. Does anyone have any experience configuring how much memory gets allocated to the JVM on Travis or other CI servers?

micha18:12:38

but currently the repl task doesn't do it

micha18:12:13

@mf if you use java 1.8 you won't get those errors

micha18:12:50

java 8 doesn't have permgen anymore

micha18:12:08

it must be running java7

mf18:12:45

I'm def installing Java 8 with following:

mf18:12:00

sudo apt-add-repository -y ppa:webupd8team/java
sudo apt-get update -qq
sudo apt-get install -y oracle-java8-installer

micha18:12:14

i don't see how you could get a permgen error from java8 though

micha18:12:18

it doesn't have that

mf18:12:03

@micha that's weird

micha18:12:27

perhaps update-alternatives --config java

mf18:12:23

@micha I just can't see how an older version of Java would be installed as well as Java 8. My Travis environment is a Ruby one hence the manual install of Java (as above) should be the only way Java is getting onto the server.

mf18:12:46

but I take your point about the fact that Java 8 doesn't have permgen

mf18:12:57

I'll try and dig a little more into

mf18:12:02

Thanks for you advise

micha18:12:44

sure good luck πŸ™‚

mf18:12:55

@micha what's the easiest way to get a boot task to output the Java version it's using?

micha18:12:34

System.getProperty("java.version") perhaps

mf18:12:48

Ok, cool that should help with the debugging

mf18:12:55

Thanks again πŸ™‚

pesterhazy18:12:21

@micha, mind if I take a stab at a socket server repl task?

micha18:12:50

@pesterhazy that would be great, sure

pesterhazy18:12:04

should it be part of repl, or in a different task?

micha18:12:06

do you use emacs or vim btw?

micha18:12:26

it could be part of repl or a separate one, whichever makes sense

pesterhazy18:12:37

I'm playing around with inf-clojure and liking it a lot

micha18:12:01

yeah my vim setup is so simple i am curious to see if it will work with a socket repl

micha18:12:08

or can be made to work

pesterhazy18:12:03

I basically just evaluate the current buffer, that's about it

pesterhazy18:12:32

I don't use a lot of the bells and whistles that come with CIDER

micha18:12:19

yeah i also use only a few things in vim

micha18:12:29

vim fireplace is already pretty minimal

micha18:12:36

but i don't use all of it

pesterhazy18:12:37

the only thing I haven't figured out is how to deal with errors (like syntax errors) while evaluating a buffer

pesterhazy18:12:17

currently it looks like I have to check the inf-clojure buffer manually each time to check if there was an error

pesterhazy18:12:28

that's error-prone

mf18:12:11

@micha your right the following prints javac 1.7.0_80:

sudo apt-get install -y oracle-java8-installer
javac -version

micha18:12:09

probably update-alternatives is needed

mf18:12:27

Does update-alternatives require input from stdin?

mf18:12:08

just trying to determine if it can be used in automated setup of CI server

micha18:12:20

it has various options

micha18:12:33

some are interactive some are not

mf18:12:53

yeah 'interactive' was the word I was looking for πŸ™‚

mf18:12:10

@micha great stuff, thankyou!

neupsh19:12:17

Hi, i am trying to figure out why do my 'dev' task start a repl client in the console when i run 'boot dev'

neupsh19:12:02

`(repl :server true :port repl-port :init-ns 'user)`

neupsh19:12:40

:server true should run it in server mode without any client right?

neupsh19:12:02

it is similar to this https://github.com/juxt/edge/blob/master/build.boot#L117-L136, in my case, i dont need cljs repl, so i am just using repl to run repl server, like the run task at line 159

neupsh20:12:55

for the issue above, i had to use both :server true and :client false in the options, either one only does not work

tcrawley21:12:24

@kanwei: sorry for the delay - can you try now?

alandipert21:12:27

off topic, but also requires a weird imagination. thought you might enjoy http://adzerk.com/blog/2016/12/scripting-with-c/

alandipert21:12:53

i guess mkgo is kind of a build tool, so it is related πŸ˜‰

grounded_sage22:12:01

@kirill.salykin: yea I'm not sure how to optimise it. I'm taking a break now and then will review the entire thing branding, icon designs and abstractions in the new year. Aside from bundling the JS I also want to do code splitting. Loading what the page requires only first. Then preloading the next page or interaction that is in view.

grounded_sage22:12:12

Just had to fix a link. I also had a quick look. Wasn't using the production task. Now way better πŸ™‚

kanwei22:12:01

@tcrawley: works now. thanks!