Closed arichiardi closed 7 years ago
Are you trying to connect to a lein repl
instance that is running outside a project? Connecting to a project repl won't work.
Yep, very weird
Anything to debug the issue?
The only thing I can think of is trying to move your user profiles out of the way and see if that makes a difference.
Mmm this is exactly what I have written in the issue, the message changes to Unknown namespace. Sorry for the typo btw. Can you give me a working conf? Maybe I have too many up-to-date things. Thanks for you help.
I see; I misread the original. The only namespaces that the lein
subtask uses are leiningen.core.eval
and leiningen.core.main
, so if these namespaces are not found it means that it's connecting to an nREPL server which does not have Leiningen loaded in it.
An empty profiles.clj
is a working config on my setup, provided the nREPL server is launched correctly.
With lein 2.5.3?
I tried this again with lein 2.5.2 and I can reproduce the problem. It works fine on 2.5.1. I haven't been tracking the changes since 2.5.1, but I believe a new nrepl version was introduced which probably caused this problem. I would recommend getting nrepl to emit a more descriptive error message so you can tell which namespace it is that cannot be found.
Any status on this? How can I get around this bug?
Sorry, not sure what changes in nrepl caused this. I'm not using Leiningen or Grenchman these days.
I confirm the problem still happens with error:
Unknown status: 19:namespace-not-found
@technomancy what are you using?
@coleman I'm semi-retired from developing, but I have some projects going on in Racket and I hack on a game in Lua in my free time. I don't really write any server-side code these days, so not a lot of call for Clojure.
@JacksonGariety If there's interest, I can attempt to revive this project. Not necessarily in OCaml, but make a similar program nonetheless.
@hyPiRion I'm more curious what people do in leu of it. Drip doesn't seem to make any difference in start-time to me. Maybe it's configured incorrectly.
@JacksonGariety thanks for bringing this up, I would be interested as well.
This is actually due to a bug in Leiningen where it has started spinning up project JVMs every time you start a repl, not just when you start a repl inside a project: https://github.com/technomancy/leiningen/commit/6234419b#commitcomment-21422061
It should be fixed in the next release of Leiningen; in the mean time you will need to start your repl server inside a project that has :eval-in :leiningen
(like Leiningen itself) instead of outside a project dir.
I get an error when I launch, for instance
grench lein help
. The conf below, this is the error I get:It looks like a nrepl middleware issue. If I remove my
profile.clj
the error changes in:Can I do something to debug?
My conf: