planck

Planck ClojureScript REPL
bherrmann 2016-11-17T16:42:58.000468Z

Howdy. How is "$ planck my.cljs" different from "$ planck -c $PLANCK_CLASSPATH my.cljs"

bherrmann 2016-11-17T16:43:10.000469Z

the second version works - the first fails - but I thought they would be the same

mfikes 2016-11-17T16:44:47.000471Z

@bherrmann Does my.cljs try to load things that would be in the classpath?

bherrmann 2016-11-17T16:51:50.000472Z

(ns my (:require [cmd.util :refer [prop]]))

bherrmann 2016-11-17T16:51:57.000473Z

something like that... so yes.

mfikes 2016-11-17T16:53:33.000474Z

@bherrmann When you run planck my.cljs it should complain about an inability to load the source for cmd.util

bherrmann 2016-11-17T16:54:05.000475Z

yes, it gives that error on the first version, no error on the second version.

bherrmann 2016-11-17T16:54:37.000476Z

I should mention too, that my.cljs has the #!/usr/bin/env planck as its first line.

bherrmann 2016-11-17T16:54:55.000477Z

so normally it is used directly via bash.

bherrmann 2016-11-17T16:55:57.000478Z

my workaround, that I just found, is to simply use "#!/usr/bin/env planck -c /full/path/to/libs"

bherrmann 2016-11-17T16:56:16.000479Z

and not use PLANCK_CLASSPATH as it is ineffective

bherrmann 2016-11-17T16:57:49.000480Z

im running planck 1.6 via brew

bherrmann 2016-11-17T16:57:56.000481Z

did it predate PLANCK_CLASSPATH?

mfikes 2016-11-17T16:58:23.000482Z

@bherrmann I apologize, the mistake is that I’ve published the master docs to the website. Will fix that now. PLANCK_CLASSPATH support hasn’t been released yet.

bherrmann 2016-11-17T16:58:44.000483Z

Thats what I'm seeing 🙂

bherrmann 2016-11-17T16:59:09.000484Z

no worries. Thanks for working on this thing - I love it.

mfikes 2016-11-17T16:59:34.000485Z

If you really want that, you’d have to build master for yourself. Otherwise passing -c works with older versions.

bherrmann 2016-11-17T17:01:19.000486Z

Thanks! I can work with out it for now. Cheers

mfikes 2016-11-17T17:12:50.000487Z

@bherrmann If you refresh, the docs are now consistent with the Planck 1.17 release (the latest)