Modern-cljs Tutorial 3. Problems with ring

57 views
Skip to first unread message

Juan Manuel Gimeno Illa

unread,
Jul 23, 2013, 1:35:57 PM7/23/13
to clojur...@googlegroups.com
I'm doing the modern-cljs tutorial and I'm stuck at part 3. The error is the same with my typed version and using a clone of the tutorial.

The error I find is:

λ >: lein ring server
Exception in thread "main" java.lang.IllegalArgumentException: Unable to resolve classname: (RuntimeException e), compiling:(NO_SOURCE_PATH:1:169)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6567)
at clojure.lang.Compiler.analyze(Compiler.java:6361)
at clojure.lang.Compiler.analyze(Compiler.java:6322)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5708)
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5139)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3751)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6558)
at clojure.lang.Compiler.analyze(Compiler.java:6361)
at clojure.lang.Compiler.eval(Compiler.java:6616)
at clojure.lang.Compiler.eval(Compiler.java:6608)
at clojure.lang.Compiler.eval(Compiler.java:6582)
at clojure.core$eval.invoke(core.clj:2852)
at clojure.main$eval_opt.invoke(main.clj:308)
at clojure.main$initialize.invoke(main.clj:327)
at clojure.main$null_opt.invoke(main.clj:362)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)
Caused by: java.lang.IllegalArgumentException: Unable to resolve classname: (RuntimeException e)
at clojure.lang.Compiler$TryExpr$Parser.parse(Compiler.java:2164)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6560)
... 20 more
Subprocess failed


And with the information provided I'm unable to find its source. Any idea?

Thanks,

Juan Manuel

Mimmo Cosenza

unread,
Jul 23, 2013, 1:49:23 PM7/23/13
to clojur...@googlegroups.com
Hi Manuel,
try this:

$ giit clone https://github.com/magomimmo/modern-cljs.git
$ cd modern-cljs
$ git checkout tutorial-03
$ lein cljsbuild once
$ lein ring server

And let me know

I just tried and it works form me.

Mimmo
> --
> Note that posts from new members are moderated - please be patient with your first post.
> ---
> You received this message because you are subscribed to the Google Groups "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clojurescrip...@googlegroups.com.
> To post to this group, send email to clojur...@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojurescript.
>
>

Mimmo Cosenza

unread,
Jul 23, 2013, 1:53:20 PM7/23/13
to clojur...@googlegroups.com
sorry in the first git command, obviously only one "i"
mimmo

> $ git clone https://github.com/magomimmo/modern-cljs.git
> $ cd modern-cljs
> $ git checkout tutorial-03
> $ lein cljsbuild once
> $ lein ring server

On Jul 23, 2013, at 7:49 PM, Mimmo Cosenza <mimmo....@gmail.com> wrote:

> Hi Manuel,
> try this:
>
> $ git clone https://github.com/magomimmo/modern-cljs.git

Juan Manuel Gimeno Illa

unread,
Jul 23, 2013, 2:22:39 PM7/23/13
to clojur...@googlegroups.com
Thanks for your quck reply, but it does not work.

Juan Manuel

Last login: Tue Jul 23 18:38:39 on ttys002

λ >: cd Temporal/

λ >: git clone https://github.com/magomimmo/modern-cljs.git
Cloning into 'modern-cljs'...
remote: Counting objects: 3688, done.
remote: Compressing objects: 100% (1979/1979), done.
remote: Total 3688 (delta 1536), reused 3602 (delta 1465)
Receiving objects: 100% (3688/3688), 4.11 MiB | 1.18 MiB/s, done.
Resolving deltas: 100% (1536/1536), done.

λ >: cd modern-cljs/

λ >: ls
README.md project.clj runners test
doc resources src

λ >: git checkout tutorial-03
Branch tutorial-03 set up to track remote branch tutorial-03 from origin.
Switched to a new branch 'tutorial-03'

λ >: git cljsbuild once
git: 'cljsbuild' is not a git command. See 'git --help'.

λ >: lein cljsbuild once
Compiling ClojureScript.
Compiling "resources/public/js/modern.js" from ["src/cljs"]...
Successfully compiled "resources/public/js/modern.js" in 9.993811 seconds.
λ >:

Juan Manuel Gimeno Illa

unread,
Jul 23, 2013, 2:30:54 PM7/23/13
to clojur...@googlegroups.com
I have a very strange situation. On my mac book air (where I was doing the ttutorial) it does not work. I have moved to my iMac and here it works.

Same JVM on both machines

java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

Any ideas?

Juan Manuel

Mimmo Cosenza

unread,
Jul 23, 2013, 2:30:52 PM7/23/13
to clojur...@googlegroups.com
which lein/java versions you have?

$ lein version
$ javac -version

Do you have anything in your ~/.lein/profiles.clj?

It seems to be a problem of your environment….

mimmo

Juan Manuel Gimeno Illa

unread,
Jul 23, 2013, 2:42:34 PM7/23/13
to clojur...@googlegroups.com
I've deleted completely the .lein directory and now it works.

Thanks for your help !!!

Juan Manuel

Mimmo Cosenza

unread,
Jul 23, 2013, 2:47:58 PM7/23/13
to clojur...@googlegroups.com
you're welcome

mimmo
Reply all
Reply to author
Forward
0 new messages