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:
>
> (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
> symbols weren't loaded into the namespace (as I understand it).
> Is there any way to tell compiler to only execute a block of code
> during run-time something like:
> (eval-when (:load-toplevel :execute) ...)?
>
> Thank you,
> Andrei
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@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 post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to