Re: How to defer name resolution till run-time?

2011-05-16 Thread Trastabuga
As I mentioned in my previous post http://groups.google.com/group/clojure/browse_thread/thread/4bb9cfe0d3870c1e If I put (ns ... (:require swank.swank)) in the beginning of the main file, the lein uberjar hangs after copying files. That's why I wanted to try a different approach. Thank you,

Re: How to defer name resolution till run-time?

2011-05-16 Thread Trastabuga
The (@(resolve 'swank.swank/start-repl) 4006) works well! Thank you, Andrei On May 14, 1:49 pm, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 14.05.2011 um 00:35 schrieb Trastabuga: I(defn -main [ args]  (do    (require 'swank.swank)    (swank.swank/start-repl 4006))  (run-jetty

Re: How to defer name resolution till run-time?

2011-05-14 Thread Jonathan Fischer Friberg
The require should (is preferred to be) in the ns form at the beginning of the file, i.e. (ns ... (:require swank.swank)) Jonathan On Sat, May 14, 2011 at 12:35 AM, Trastabuga lisper...@gmail.com wrote: I am trying to compile a project with lein uberjar. My main function looks like:

Re: How to defer name resolution till run-time?

2011-05-14 Thread Meikel Brandmeyer
Hi, Am 14.05.2011 um 00:35 schrieb Trastabuga: I(defn -main [ args] (do (require 'swank.swank) (swank.swank/start-repl 4006)) (run-jetty main-routes {:port 8080 :join? false}) ) You have to delay the resolution. (defn -main [ args] (require 'swank.swank) (@(resolve

How to defer name resolution till run-time?

2011-05-13 Thread Trastabuga
I am trying to compile a project with lein uberjar. My main function looks like: (defn -main [ args] (do (require 'swank.swank) (swank.swank/start-repl 4006)) (run-jetty main-routes {:port 8080 :join? false}) ) The compiler complains about swank.swank/start-repl because the swank