Fork me on GitHub
#hoplon
<
2016-12-08
>
mynomoto00:12:55

@thedavidmeister Yeah, it's not much different from that in the current state. I'm building a github client to test the concepts but I won't be able to build the feature I wanted as they have no api that returns the diff ignoring whitespace. Useful things have their own namespaces but are not in they own libraries yet. Hopefully I will get something public over the next weekend.

mynomoto18:12:53

@nux If you need some help to Hoplon around we are here to help 😃

neupsh18:12:24

@mynomoto I am a baby in clojure world.. got interested in boot-clj, found hoplon-layouts (have not used it yet), lurking around to learn 😉

neupsh18:12:50

I am still tyring to figure out a way to make gorilla started with boot to play nice with cider

neupsh18:12:26

i am planning to get started with those soon

mynomoto18:12:40

@nux not sure if this are maintained, people are flocking to https://github.com/hoplon/ui lately cc @onetom

neupsh18:12:35

@mynomoto will check them out thanks~

john_tollison23:12:51

It's been ages since starting a project outside cloning hoplon-deploy-heroku, and I'm having problems...

john_tollison23:12:08

from hoplon wiki, I went to reinstall boot, trying all three of the suggested methods, then, "boot-clj -d seancorfield/boot-new new -t hoplon -n address-book"

john_tollison23:12:12

but I keep getting, "java.lang.RuntimeException: No reader function for tag tailrecursion.boot.core/version"

john_tollison23:12:37

googling suggesting it was the wrong version of boot for hoplon, but this is where the hoplon wiki brought me.

john_tollison23:12:50

any thoughts on what to try next would be appreciated

john_tollison23:12:07

I don't even know if Boot is still 2 programs or not

alandipert23:12:01

hey @john_tollison long time no see! hope you're well

alandipert23:12:35

you don't have to call it boot, you can rename it to boot2 and it will work fine

alandipert23:12:43

so yuo can have both 1.0 and 2.0 installed in parallel

alandipert23:12:21

oh -- it sounds like you might be running boot2 in a directory with a boot 1.0 format build.boot?

alandipert23:12:36

(they are incompatible)

micha23:12:19

one thing you can do is add the -B and -P options like this:

micha23:12:36

boot-clj -BP -d seancorfield/boot-new new -t hoplon -n address-book

micha23:12:00

that will tell boot to ignore any build.boot files or profile.boot files

john_tollison23:12:14

ok, trying that now

john_tollison23:12:22

Ah, Hi to Alan too. Yes, long time. Hope you're good too 🙂

micha23:12:28

if you want to test that you have the right boot you can do:

barp $ boot -V
you should see something like this
#
#Thu Dec 08 18:16:04 EST 2016
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.8.0
BOOT_VERSION=2.6.0

john_tollison23:12:35

so, yes, it looks like that worked. Awesome, thanks.

micha23:12:17

or in your case boot-clj -V

john_tollison23:12:50

that get's me back to the error

micha23:12:22

you must have a build.boot file in the directory

john_tollison23:12:27

I did see something like that on my first attempt

micha23:12:34

so boot-clj -B -V shoudl work

john_tollison23:12:25

I actually saw that on my first run, #Thu Dec 08 04:19:01 EST 2016 BOOT_CLOJURE_NAME=org.clojure/clojure BOOT_VERSION=2.6.0 BOOT_CLOJURE_VERSION=1.7.0

micha23:12:38

oh, that's correct

micha23:12:15

boot is not split into two parts anymore

micha23:12:31

so that should simplify things a bit compared to what it was before

john_tollison23:12:43

yes, that's good to know.

john_tollison23:12:13

so, yeah, "boot-clj dev", "boot-clj -BV dev" are both giving me errors...

john_tollison23:12:27

"No such task (dev)"

john_tollison23:12:06

oops, sorry, "boot-clj -B dev"

micha23:12:22

the -B option will preevnt boot from looking at the build.boot file

micha23:12:29

which is where the dev task is defined, presumably

micha23:12:41

do you have a build.boot file in this directory?

micha23:12:22

you should be able to just do boot-clj dev

john_tollison23:12:40

boot-clj gives me that same "No reader function" error

micha23:12:56

can you paste your build.boot file?

john_tollison23:12:06

#!/usr/bin/env boot #tailrecursion.boot.core/version "2.5.1"

john_tollison23:12:15

that's the entire thing

micha23:12:27

that's the old style

john_tollison23:12:36

it's what came with address book

micha23:12:55

are you in the address-book directory?

micha23:12:25

that's confusing, i have no idea how that could happen

john_tollison23:12:27

johns-mac-mini:address-book johntollison$ boot-clj dev java.lang.RuntimeException: No reader function for tag tailrecursion.boot.core/version ... clojure.core/read-string/invokeStatic core.clj: 3687 clojure.core/read-string core.clj: 3677 boot.util/read-string-all util.clj: 375 boot.main/-main main.clj: 170 ... boot.App.runBoot App.java: 399 boot.App.main App.java: 488 ... Boot.main Boot.java: 258 johns-mac-mini:address-book johntollison$

micha23:12:38

ok perhaps try this

micha23:12:50

mkdir /tmp/foop

micha23:12:56

cd /tmp/foop

micha23:12:15

boot-clj -d seancorfield/boot-new new -t hoplon -n address-book

micha23:12:27

cd address-book

micha23:12:33

boot-clj dev

john_tollison23:12:04

well, it didn't give the same error. Actually "boot-clj dev" did some work, then I got a couple of other errors...

john_tollison23:12:17

java.lang.OutOfMemoryError: PermGen space

john_tollison23:12:39

ideas on why it would run this in this temp file?

micha23:12:15

there must have been an old build.boot file that is somehow remaining in the other directory from the beforetimes

micha23:12:59

using java version 1.8 will help a lot with memory issues

john_tollison23:12:41

oh, ok, I'll upgrade. hopefully that'll fix it.

micha23:12:54

if you can't use java 1.8 you can add jvm options

micha23:12:58

-Xmx2g -XX:MaxPermSize=128m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled

micha23:12:32

well the range of relevant options are described here https://github.com/boot-clj/boot/wiki/JVM-Options

micha23:12:50

the permgen stuff was re-engineered in 1.8

micha23:12:00

the new implementation is a lot better for performance

john_tollison23:12:38

I will try that first. I'm horrible at keeping things up to date.

micha23:12:46

haha yes me also