planck

Planck ClojureScript REPL
mfikes 2017-11-29T15:48:02.000200Z

@cap10morgan Landed planck.core/sleep on master: https://github.com/mfikes/planck/commit/d9d055c5d03c9ad27b47ea9672cfd58f00f5b733

đź‘Ť 1
mfikes 2017-11-29T20:37:05.000407Z

@cap10morgan Landed a surprisingly simple fix for the tail issue in this branch https://github.com/mfikes/planck/tree/issue-557 I'd like to test it out more thoroughly before merging it to master. But, feel free to check out that branch and give it a try.

cap10morgan 2017-11-29T20:40:07.000220Z

oh... that is simple! nice. I'll will try that soon.

mfikes 2017-11-29T20:41:09.000298Z

@cap10morgan Cool. If you don't have experience building Planck: https://github.com/mfikes/planck#building

cap10morgan 2017-11-29T20:43:25.000024Z

ah, yes, that was going to be my next question. 🙂

mfikes 2017-11-29T20:43:57.000482Z

I'd recommend FAST_BUILD=1 script/build, otherwise the Closure optimization phase takes quite a while (half an hour)

mfikes 2017-11-29T20:44:11.000381Z

With FAST_BUILD, you can build it in a few minutes

cap10morgan 2017-11-29T20:44:56.000300Z

great, thanks

cap10morgan 2017-11-29T20:47:53.000076Z

I'm using fish shell on macOS 10.13.1, and got this on that branch:

$ env FAST_BUILD=1 script/build
Fetching Google Closure compiler...
Cleaning up Google Closure compiler archive...
### Building planck-cljs
Build Failed.

mfikes 2017-11-29T20:48:15.000397Z

That smells like a Java 9 issue, given the quick failure

mfikes 2017-11-29T20:48:28.000640Z

Are you running 9?

cap10morgan 2017-11-29T20:48:31.000309Z

I'm running 1.8.0_152

cap10morgan 2017-11-29T20:49:05.000052Z

I do have libzip, icu4c, and pkg-config installed via homebrew

mfikes 2017-11-29T20:49:14.000313Z

OK... I need to run, but I would suggest taking a look at the script to see if you can stop it from supressing whatever the root failure is, if that's what's going on.

dpsutton 2017-11-29T20:49:17.000164Z

xxd or whatever it is? from vim?

cap10morgan 2017-11-29T20:55:27.000104Z

looks like lein is trying to connect to a local maven repo and failing

cap10morgan 2017-11-29T20:57:09.000082Z

with messages like: Could not transfer artifact org.clojure:test.check:jar:0.10.0-alpha2 from/to central (<https://repo1.maven.org/maven2/>): Connect to [localhost/127.0.0.1] failed: Connection refused (Connection refused)

2017-11-29T20:57:47.000236Z

I remember seeing that message, it seems to have something to do with the latest leiningen and certificates / https stuff

2017-11-29T20:58:15.000401Z

@cap10morgan just for a laugh, try lein upgrade 2.7.1 then doing the build

2017-11-29T20:58:27.000075Z

it’s easy to revert that with lein upgrade if it doesn’t help

cap10morgan 2017-11-29T20:59:18.000189Z

gotta run, will dig in more later. thanks!

cap10morgan 2017-11-29T21:03:54.000049Z

ok maybe I don't need to run. I tried setting LEIN_VERSION in planck-cljs/script/lein to 2.7.1 but got the same failures

2017-11-29T21:06:56.000162Z

oh - so it has its own lein and it uses that version number to decide what to bootstrap with?

cap10morgan 2017-11-29T21:09:53.000064Z

apparently! this is the first time I've tried building it.

cap10morgan 2017-11-29T21:10:11.000407Z

it does look like it downloaded and used 2.7.1 FWIW

mfikes 2017-11-29T21:56:12.000079Z

@cap10morgan The Planck build uses its own copy of 2.8.1 https://github.com/mfikes/planck/commit/2243a8a4450c52fec440de5196f2327e281f7e75

mfikes 2017-11-29T21:56:40.000289Z

But maybe there is some bad interaction with other versions of Lein on your system. Hrm.

cap10morgan 2017-11-29T21:58:12.000026Z

my primary lein is also 2.8.1

cap10morgan 2017-11-29T21:58:18.000121Z

installed via homebrew

cap10morgan 2017-11-29T21:58:36.000078Z

I just temporarily told planck to use 2.7.1 to test noisesmith's theory

mfikes 2017-11-29T21:59:03.000010Z

I also have lein 2.8.1 via homebrew locally as well

mfikes 2017-11-29T22:01:36.000632Z

Maybe I'll just land this on master so it is possible to do brew install --HEAD planck All the unit tests are passing; I suspect the change is fine.

mfikes 2017-11-29T22:02:37.000587Z

OK, @cap10morgan that change is on master. So you can just use homebrew to install it via brew install --HEAD planck

cap10morgan 2017-11-29T22:02:43.000443Z

OK cool