technomancy / grenchman

Sorry about the name
GNU General Public License v3.0
217 stars 8 forks source link

Running leiningen tasks doesn't work in a project-local REPL #26

Closed benwbooth closed 10 years ago

benwbooth commented 10 years ago

This is what I tried:

$ lein new app hello
$ cd hello
$ lein run
Hello, World!
$ lein repl :headless
$ LEIN_REPL_PORT=`cat .nrepl-port` grench lein run # in another terminal session
  Unknown status: 19:namespace-not-found
  Unknown status: 5:error

It seems like setting the ns to leiningen.core.main is giving a namespace-not-found error, but I have no idea why.

technomancy commented 10 years ago

This is not supposed to work.

You need an nREPL session on Leiningen to run Leiningen tasks.

sullerandras commented 8 years ago

@technomancy Is there any way to run lein tasks with grench? How can we start that "nREPL session on Leiningen"?

grench lein run says we need to start lein repl :headless outside the project directory, but it does not work, it says Unknown status: 19:namespace-not-found.

technomancy commented 8 years ago

You are correct about how it's supposed to work, but the problem you're describing is different from the one discussed in this issue; it is being tracked in #34.