Skip to content

Instantly share code, notes, and snippets.

@kohyama
Last active September 18, 2015 09:28
Show Gist options
  • Save kohyama/1fd05f5ece19a0e50b88 to your computer and use it in GitHub Desktop.
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.
(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]}
)
(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)))
@kohyama
Copy link
Author

kohyama commented Sep 18, 2015

It seems to be caused by http://dev.clojure.org/jira/browse/CLJ-1544 ...

@kohyama
Copy link
Author

kohyama commented Sep 18, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment