Clojure-Sublimed icon indicating copy to clipboard operation
Clojure-Sublimed copied to clipboard

When sending code from file, ns might not be defined yet

Open tonsky opened this issue 4 years ago • 0 comments

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.

tonsky avatar Nov 01 '21 20:11 tonsky