trptcolin / reply

REPL-y: A fitter, happier, more productive REPL for Clojure.
Eclipse Public License 1.0
337 stars 44 forks source link

Fix completion-eval to not bind to namespaces that don't exist. #192

Closed technomancy closed 5 years ago

technomancy commented 5 years ago

The reply.eval-modes.nrepl/completion-eval function would attempt to bind *ns* to the value inside current-ns, which starts out as reply.eval-modes.nrepl, a namespace that exists on the client but usually doesn't exist on the server.

This patch changes it so that it falls back to the current value of *ns* if the namespace in question doesn't exist.

Fixes technomancy/leiningen#2465

trptcolin commented 5 years ago

Thanks!

trptcolin commented 5 years ago

Released as 0.4.3

technomancy commented 5 years ago

Thanks!