Lein uberjar hangs when swank is required in the namespace.

173 views
Skip to first unread message

Trastabuga

unread,
May 6, 2011, 1:22:29 PM5/6/11
to Clojure
Hi

I got a problem including swank into the project.
I created a simple test project with "lein new test"
And modified the project.clj and core.clj files so they look like:

project.clj:
(defproject test "1.0.0-SNAPSHOT"
:description "FIXME: write description"
:main test.core
:dependencies [[org.clojure/clojure "1.2.1"]
[swank-clojure "1.2.1"]
])

core.clj:
(ns test.core
(:require swank.swank)
(:gen-class)
)

(defn -main [& args]
(println "hello " args))


Now if I run "lein uberjar" it hangs after saying "Copying 2 files to
D:\Dev\test\clojure\projects\test\lib"
If I comment out the (:require swank.swank) line, it works.
Also if I uncomment (:require swank.swank) and comment out :main
test.core line in the project.clj file it also works.

Why lein hangs and how can I fix it?

Thank you,
Andrei

J.R. Garcia

unread,
May 6, 2011, 8:09:17 PM5/6/11
to Clojure
Are you sure you really want/need swank as a dependency? If you just
need to run swank for interactive development put it in dev-
dependencies.

Lars Rune Nøstdal

unread,
Aug 25, 2011, 5:10:10 PM8/25/11
to clo...@googlegroups.com
It's hanging here too, but I have no idea why; I'm not including swank.

Is there any "verbose mode" for lein?

Rob Wolfe

unread,
Aug 26, 2011, 9:03:54 AM8/26/11
to Clojure


On 25 Sie, 23:10, Lars Rune Nøstdal <larsnost...@gmail.com> wrote:
> It's hanging here too, but I have no idea why; I'm not including swank.
>
> Is there any "verbose mode" for lein?

Maybe there is some problem with network (firewall or something)
and you can not get jars from remote repository.
Does it work for you:

D:\>lein repl
user=> (slurp "http://clojars.org/repo/swank-clojure/swank-clojure/
1.2.1/")

?

Br,
Rob
Reply all
Reply to author
Forward
0 new messages