[CLJS-803] Spurious undeclared Var warning in REPL Created: 05/May/14 Updated: 01/Jan/15 Resolved: 01/Jan/15
OS X Mavericks, Safari 7.0.3, Chrome 34.0.1847.131
With the following minimal Compojure/ClojureScript project:
Compile with "lein cljsbuild once", then run "lein trampoline cljsbuild repl-listen". In another window, run "lein ring server".
The src/csrepl/core.cljs file defines an atom called app-state. This can be successfully examined in the REPL as follows:
But, if you switch to the csrepl.core namespace and do the same, a spurious "undeclared Var" warning is generated:
Further, once you're in the csrepl.core namespace, the same warning is generated even when using the fully qualified name:
|Comment by David Nolen [ 01/Jan/15 3:41 PM ]|
This is not a ClojureScript issue, the REPL need to be configured to analyze the output directory so that it has the correct information. This should be fixed at cljsbuild if it's still a problem there.