Clojure-Sublimed
Clojure-Sublimed copied to clipboard
When sending code from file, ns might not be defined yet
E.g. start REPL and try to eval plus form in a file like this:
(ns abc)
(+ 1 2)
Command send to nREPL will have {"ns": "abc"}, but abc has not been evaluated yet so it doesn’t exist. This causes an error, even though code could be evaluated just fine in user namespace. Or, alternatively, abc might be required first, before evaluation.