Fork me on GitHub
#leiningen
<
2018-07-18
>
bozhidar05:07:57

Can someone help me understand why this simple plugin https://github.com/nrepl/lein-nrepl is raising this error when I try to use it outside its source folder

Exception in thread "main" java.lang.ClassNotFoundException: leiningen.nrepl, compiling:(/private/var/folders/f0/cm24s0qd0s5cch5jvj6ctnb00000gn/T/form-init15686757270206144100.clj:1:126)
Seems that the plugin can’t find its only namespace which looks quite bizarre to me.

jumar07:07:39

this may be the reason: https://github.com/technomancy/leiningen/blob/master/doc/PLUGINS.md#evaluating-in-project-context > Inside the eval-in-project call the project's own classpath will be active and Leiningen's own internals and plugins will not be available.

jumar07:07:49

@U051BLM8F See here for one approach that might work: https://github.com/nrepl/lein-nrepl/pull/1

caleb.macdonaldblack10:07:57

I’m trying to create a template using clojure.java.shell/sh Doing lein new my-template foo gives me an error. I can run this fine in terminal though