planck

Planck ClojureScript REPL
tianshu 2016-12-07T15:41:22.000003Z

Hi, I'm trying to compile planck on arch linux.

tianshu 2016-12-07T15:41:37.000004Z

met a exception when execute script/build

mfikes 2016-12-07T15:42:13.000005Z

@doglooksgood Do you have the deps listed here installed? https://github.com/mfikes/planck/wiki/Building#arch

mfikes 2016-12-07T15:42:57.000008Z

Or, perhaps a better question: What exception did you see?

tianshu 2016-12-07T15:43:53.000010Z

my network is bad, so uploading snippet takes time..😂

tianshu 2016-12-07T15:44:11.000011Z

the first time, it download dependencies successfully. I think

tianshu 2016-12-07T15:45:04.000012Z

It's looks like missing the clojurescript jar in classpath?

tianshu 2016-12-07T15:45:35.000013Z

please give me some tips to figure out where's the problem.

mfikes 2016-12-07T15:46:11.000014Z

@doglooksgood Are you trying to build a released beta version, or master?

tianshu 2016-12-07T15:47:20.000015Z

on master branch

mfikes 2016-12-07T15:47:24.000016Z

@doglooksgood My guess would be that if you did a script/clean and then a script/build then it might clear the problem. The root cause might be that you may not have lein set up or somesuch that caused it.

tianshu 2016-12-07T15:47:27.000017Z

which branch should i use

mfikes 2016-12-07T15:47:40.000018Z

The head of master doesn’t need to build ClojureScript itself.

mfikes 2016-12-07T15:48:12.000019Z

Is the snippet above from the very beginning of the output?

tianshu 2016-12-07T15:49:00.000020Z

yes, it begin with ### Building planck-cljs.

tianshu 2016-12-07T15:49:14.000021Z

seems script/clean does not work

mfikes 2016-12-07T15:51:15.000022Z

@doglooksgood In the lib subdirectory of where you cloned planck does it have a cljs-1.9.330-1.jar file?

tianshu 2016-12-07T15:52:16.000023Z

yes, it does

tianshu 2016-12-07T15:53:22.000024Z

~/ ps uax|grep java
tianshu  18011  122  1.7 3331632 69856 pts/2   Sl+  23:52   0:01 java -Xbootclasspath/a:/home/tianshu/.lein/self-installs/leiningen-2.7.0-standalone.jar -Dfile.encoding=UTF-8 -Dmaven.wagon.http.ssl.easy=false -Dmaven.wagon.rto=10000 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Dleiningen.original.pwd=/home/tianshu/repos/planck/planck-cljs -Dleiningen.script=script/lein -classpath /home/tianshu/.lein/self-installs/leiningen-2.7.0-standalone.jar clojure.main -m leiningen.core.main with-profile build classpath
this is the process when bulid is running.

mfikes 2016-12-07T15:54:18.000025Z

I’m going to set up a Arch VM and see if I can reproduce the issue.

mfikes 2016-12-07T15:54:37.000026Z

Are you running a particular version of Arch?

tianshu 2016-12-07T15:55:17.000027Z

before this, is it possible caused by my leiningen version is 2.7.1?

tianshu 2016-12-07T15:55:38.000028Z

it still download the 2.7.0, so I have two jar in self-installs.

mfikes 2016-12-07T15:55:49.000029Z

I’m using lein 2.7.1

tianshu 2016-12-07T15:58:39.000030Z

so, will the build script download lein 2.7.0?

mfikes 2016-12-07T15:59:55.000031Z

Yes, there is a planck-cljs/script/lein that it uses

tianshu 2016-12-07T16:00:08.000032Z

~/.lein/ cat /proc/version Linux version 4.8.11-1-ARCH (builduser@tobias) (gcc version 6.2.1 20160830 (GCC) ) #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016

mfikes 2016-12-07T16:00:57.000033Z

OK. I have Linux archlinux.vagrant.vm 4.5.0-1-ARCH #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016 x86_64 GNU/Linux set up now. Perhaps that is close enough.

tianshu 2016-12-07T16:02:10.000034Z

yes

mfikes 2016-12-07T16:03:17.000035Z

I’m updating that VM to ensure it has the latest...

mfikes 2016-12-07T16:04:05.000036Z

Looks like it is getting linux-4.8.12-2-x86_64

tianshu 2016-12-07T16:05:39.000037Z

I just look at the process I've post above, it seems like the clojurescript jar is not located in classpath?

tianshu 2016-12-07T16:06:13.000038Z

or the lib directory is added by default?

tianshu 2016-12-07T16:25:50.000039Z

i think i have to go to bed for now. 💤 it's midnight here

mfikes 2016-12-07T16:40:04.000040Z

@doglooksgood Thanks for sharing. I was able to build in that VM. I did discover another issue with the built planck binary that I’ll log, but otherwise things built.