live-cljs code for the dojo

25 views
Skip to first unread message

Richard

unread,
Mar 21, 2014, 6:44:52 PM3/21/14
to bristolc...@googlegroups.com
I checked out the live-cljs code to prepare for the dojo, but it hit an exception when I ran it. Has anyone had a similar issue?

And after "lein run" it throws an exception:

Exception in thread "main" java.lang.RuntimeException: java.lang.AssertionError:
 Assert failed: Can't recur here
frame
        at clojure.lang.Util.runtimeException(Util.java:165)
        at clojure.lang.Compiler.eval(Compiler.java:6476)
        at clojure.lang.Compiler.eval(Compiler.java:6455)
        at clojure.lang.Compiler.load(Compiler.java:6902)
        at clojure.lang.Compiler.loadFile(Compiler.java:6863)
        at clojure.main$load_script.invoke(main.clj:282)
        at clojure.main$init_opt.invoke(main.clj:287)
        at clojure.main$initialize.invoke(main.clj:315)
        at clojure.main$null_opt.invoke(main.clj:348)
        at clojure.main$main.doInvoke(main.clj:426)
        at clojure.lang.RestFn.invoke(RestFn.java:421)
        at clojure.lang.Var.invoke(Var.java:405)
        at clojure.lang.AFn.applyToHelper(AFn.java:163)
        at clojure.lang.Var.applyTo(Var.java:518)
        at clojure.main.main(main.java:37)

Matt Thompson

unread,
Mar 22, 2014, 5:28:19 AM3/22/14
to bristolc...@googlegroups.com
Yes, you have to do

rm -rf target/classes/cljs

to fix it.

I have the demo running at http://bristolclojure.herokuapp.com so that beginners can just play with that instead of worrying about setting up lein, light table etc. It doesn't seem to work as well on Firefox as with Chrome, though.
--
You received this message because you are subscribed to the Google Groups "bristolclojurians" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bristolclojuri...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Richard East

unread,
Mar 22, 2014, 8:56:42 AM3/22/14
to Matt Thompson, bristolc...@googlegroups.com
It's doing it on the first run, so nothing already existed in the
target directory.
I'm also doing it on a Windows machine -- that can't be the problem, can it?

Matt Thompson

unread,
Mar 22, 2014, 9:17:14 AM3/22/14
to bristolc...@googlegroups.com
Hi Richard,

I've forked the project on github and applied a fix that seems to be working (at least on my Linux machine). Can you try it on your Windows box and see if it works?

https://github.com/cblop/live-cljs

Richard East

unread,
Mar 22, 2014, 3:46:48 PM3/22/14
to Matt Thompson, bristolc...@googlegroups.com
Thanks Matt
I can confirm that your version https://github.com/cblop/live-cljs
works for me. How did you find the fix?

Richard

Matt Thompson

unread,
Mar 23, 2014, 8:06:19 AM3/23/14
to bristolc...@googlegroups.com
It was on a Google groups discussion somewhere. It involved removing some files somewhere in the project.

I'm now playing around with the WebGL Clojurescript game engine Chocolatier: https://github.com/alexkehayias/chocolatier. It's a bit tricky to get running, but it works.

cmsmy...@gmail.com

unread,
Jan 6, 2015, 3:29:21 AM1/6/15
to bristolc...@googlegroups.com
Hi.

I had a look at Chocolatier but could not get it running... is there a particular version of clourescript I need ?

Do you remember how you got it working ?

Thanks.

Matthew Thompson

unread,
Jan 6, 2015, 5:29:45 AM1/6/15
to cmsmy...@gmail.com, bristolc...@googlegroups.com
I have to admit, it's been a while since I looked at Chocolatier, so it's probably changed a lot since I last used it.

I have used play-clj recently, though, which is very promising. It's more or less an interface to libGDX, but allows you to write game code in a very idiomatic Clojure-y way: https://github.com/oakes/play-clj

If you have any questions about getting that working (it is much easier to get running!), then I'm happy to help.

Matt
Reply all
Reply to author
Forward
0 new messages