You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and then i run nrepl-jack-in, the starting namespace is still user.
My purpose in using these lein options is to avoid having to type the same thing every time I start a repl. require the namespace, switch to it, etc. Would be nice if it were just "ready" on startup.
Edit: i forgot to mention, the server side does already switch namespaces correctly, it is just not reflected on the emacs side.
The text was updated successfully, but these errors were encountered:
Arguably this fix has yielded a bug, in that say you have a project.clj without an :init-ns, but you do have a :main namespace specified, then when you launch a REPL session you'll be put in the :main namespace.
This mirrors nrepl's behavour as "lein repl" will also put you in the namespace specified by main. This then forces you to have an :init-ns, which does then override :main.
I didn't raise a new issue for this because it's arguably an issue with nrepl. I see the nrepl github has issues disabled for some reason.
When I have
:repl-options {:init-ns 'my-ns}
and then i run
nrepl-jack-in
, the starting namespace is stilluser
.My purpose in using these lein options is to avoid having to type the same thing every time I start a repl. require the namespace, switch to it, etc. Would be nice if it were just "ready" on startup.
Edit: i forgot to mention, the server side does already switch namespaces correctly, it is just not reflected on the emacs side.
The text was updated successfully, but these errors were encountered: