You can clone with
Hello Mr. King,
I have an issue with 'nrepl-restart'. If I have evaluated the 'ns' form in a buffer, and then restart nrepl, any further evaluation results in "Namespace not found." error in the new nrepl client.
I find that this is because when an 'ns' form is evaluated, the buffer local variable 'ns-buffer-ns' is changed. After restarting, this changed ns is sent to the new nrepl server, which of course does not have the namespace defined, hence the error.
I have added (setq nrepl-buffer-ns "user") to 'nrepl-interaction-mode-hook', and the issue is resolved.
Maybe 'nrepl-buffer-ns' needs to be reset each time nrepl is restarted. How do you think?
I observed same behavior and your suggestion resolved the problem for me. Thanks.
I'm on nrepl.el 0.1.6-preview.
I have observed the same behavior, and the suggested work-around works for me.
Reset nrepl-buffer-ns on nrepl-restart. Fixes issue #187.
I just pushed a fix to master which will reset on restart.
Please let me know if this resolves the issue for you.