Last active
September 18, 2015 09:28
-
-
Save kohyama/1fd05f5ece19a0e50b88 to your computer and use it in GitHub Desktop.
I can't execute a standalone jar using lighttable.nrepl.handler/lighttable-ops.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject nltry "0.1" | |
:dependencies [ | |
[org.clojure/clojure "1.7.0"] | |
[org.clojure/tools.nrepl "0.2.11"] | |
[lein-light-nrepl "0.1.3"] | |
] | |
:aot :all | |
:main nltry.core | |
:repl-options {:nrepl-middleware [lighttable.nrepl.handler/lighttable-ops]} | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns nltry.core | |
(:gen-class) | |
(:require [clojure.tools.nrepl.server :refer (start-server default-handler)] | |
[lighttable.nrepl.handler :refer (lighttable-ops)])) | |
(defn foo [a b] (+ a b)) | |
(defn -main [& args] | |
(start-server :port 3000 :handler (default-handler #'lighttable-ops))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The next release lein-light-nrepl 0.2.0 avoids this problem.
I tested with lein-light-nrepl 0.2.0 compiled from from the release pending source.
And it works well.
I use this self-built version of lein-light-nrepl until the 0.2.0 is formally released.
LightTable/Clojure#56
Thank you.