Fork me on GitHub
#boot
<
2016-03-06
>
mobileink14:03:36

morning booters. i'm finding pod startup time is noticeable. does anybody have a good example of use of pod-pool?

mobileink14:03:36

currently I do something like (let [pod (future (pod/make-pod pod-env))] (pod/with-eval-in @pod ...

mobileink14:03:26

the with-eval-in, followed by some require instructions, is the bottleneck.

martinklepsch17:03:51

@mobileink: fairly minimal pod usage, the :init might be handy to speed things up even more

mobileink17:03:09

thanks, i'll take a look.

peeja20:03:01

Help! I ran boot for the first time and it started downloading something. I Ctrl-C'd it and now I appear to be in a broken state. boot won't run anymore:

peeja20:03:07

$ boot                                                                                                     ◼
Version 2.0.0-rc6 is no longer supported.
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at Boot.main(Boot.java:258)
Caused by: java.lang.RuntimeException: Failed to load ClojureRuntimeShimImpl
        at org.projectodd.shimdandy.ClojureRuntimeShim.newRuntime(ClojureRuntimeShim.java:21)
        at org.projectodd.shimdandy.ClojureRuntimeShim.newRuntime(ClojureRuntimeShim.java:32)
        at boot.App.newShim(App.java:303)
        at boot.App.aetherShim(App.java:338)
        at boot.App.seedCache(App.java:254)
        at boot.App.readCache(App.java:293)
        at boot.App.main(App.java:459)
        ... 5 more
Caused by: java.lang.ClassNotFoundException: org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.projectodd.shimdandy.ClojureRuntimeShim.newRuntime(ClojureRuntimeShim.java:18)
        ... 11 more

peeja20:03:30

What do I need to rm or reset to get things running again?

martinklepsch20:03:06

rm -rf ~/.boot/cache ~/.boot/boot.properties

martinklepsch20:03:40

@peeja: try that + make sure the binary you downloaded is recent

peeja20:03:58

That worked! Thanks, @martinklepsch!