            (java.io ByteArrayInputStream)
            java.awt.Font)
   (:require  
+    [clojure.tools.nrepl.server :as nrepl.server]
     [clojure.tools.nrepl :as nrepl]
     [clojure.tools.nrepl.misc :as nrepl.misc]
     [leiningen.repl :as repl]

        #_(apply eval/eval-in-project project
                              (server-forms project cfg (ack-port project)
                                            true))]
    (.start repl-client-thread)
    (reset! repl {:server repl-server-port :client-thread repl-client-thread
                  ;:repl-inputstream r-is :repl-outputstream r-os})
                  :client (nrepl/client @reply.eval-modes.nrepl/current-connection Long/MAX_VALUE)
                  :repl-inputstream r-is :repl-outputstream r-os})
    (reset! repl-inputstream r-is)
    (reset! repl-outputstream r-os)
    (reset! editor-window ew)

               :repl-options {:input-stream r-is :output-stream r-os})
        repl-cfg {:host (repl/repl-host project)
                  :port (repl/repl-port project)}
        ;repl-server-port (repl/server project repl-cfg false)
        repl-server (nrepl.server/start-server :port 59258)
        ;repl-client-thread (Thread. (fn [] (repl/client project repl-server-port) ))
        repl-connection (nrepl/connect :port 59258)
        repl-client (nrepl/client repl-connection Long/MAX_VALUE)
        #_(lein-main/apply-task "repl" project [])
        #_(apply eval/eval-in-project project
                           (server-forms project cfg (ack-port project)
