Re: Leiningen exception when run inside a project

111 views
Skip to first unread message

Adam Clements

unread,
Apr 10, 2013, 5:02:04 AM4/10/13
to clo...@googlegroups.com

Your project.clj probably has unmatched brackets, this error means it hit the end of a file it was reading while still scanning for a closing bracket.

On 10 Apr 2013 09:22, "Dmytro Kozhukhar" <dkozh...@gmail.com> wrote:
Hello everyclojurer!

Today I have problem with installing lein on WinXP.

Lein run just fine in any folder, except it is a folder with project. 
If I run 'lein repl' or 'lein run' then I get this error:

D:\lein\helloworld>lein run
Exception in thread "main" clojure.lang.LispReader$ReaderException: java.lang.Ru
ntimeException: EOF while reading string
        at clojure.lang.LispReader.read(LispReader.java:220)
        at clojure.core$read.invoke(core.clj:3407)
        at clojure.core$read.invoke(core.clj:3405)
        at clojure.main$eval_opt$fn__6602.invoke(main.clj:306)
        at clojure.main$eval_opt.invoke(main.clj:306)
        at clojure.main$initialize.invoke(main.clj:327)
        at clojure.main$script_opt.invoke(main.clj:353)
        at clojure.main$main.doInvoke(main.clj:440)
        at clojure.lang.RestFn.invoke(RestFn.java:619)
        at clojure.lang.Var.invoke(Var.java:445)
        at clojure.lang.AFn.applyToHelper(AFn.java:202)
        at clojure.lang.Var.applyTo(Var.java:532)
        at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: EOF while reading string
        at clojure.lang.Util.runtimeException(Util.java:219)
        at clojure.lang.LispReader$StringReader.invoke(LispReader.java:461)
        at clojure.lang.LispReader.readDelimitedList(LispReader.java:1148)
        at clojure.lang.LispReader$ListReader.invoke(LispReader.java:982)
        at clojure.lang.LispReader.readDelimitedList(LispReader.java:1148)
        at clojure.lang.LispReader$ListReader.invoke(LispReader.java:982)
        at clojure.lang.LispReader.readDelimitedList(LispReader.java:1148)
        at clojure.lang.LispReader$ListReader.invoke(LispReader.java:982)
        at clojure.lang.LispReader.readDelimitedList(LispReader.java:1148)
        at clojure.lang.LispReader$ListReader.invoke(LispReader.java:982)
        at clojure.lang.LispReader.read(LispReader.java:185)
        ... 12 more


Any Ideas what goes wrong?

--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dmytro Kozhukhar

unread,
Apr 10, 2013, 5:09:08 AM4/10/13
to clo...@googlegroups.com
It does not seem so, I tried this on new project, created with 'lein new app helloworld' 
it has source generated by lein in ./src/helloworld/core.clj :

(ns helloworld.core
  (:gen-class))

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  ;; work around dangerous default behaviour in Clojure
  (alter-var-root #'*read-eval* (constantly false))
  (println "Hello, World!"))

Dmytro Kozhukhar

unread,
Apr 10, 2013, 5:30:25 AM4/10/13
to clo...@googlegroups.com
SOLVED

Just installed JDK instead of JRE and it works ok.


You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/a7XppadjUzM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.

David Powell

unread,
Apr 10, 2013, 5:38:42 AM4/10/13
to clo...@googlegroups.com

Btw - I have created an installer for leiningen on Windows, that makes sure that your JDK is set up properly.

Reply all
Reply to author
Forward
0 new messages