brandonbloom / fipp

Fast Idiomatic Pretty Printer for Clojure
525 stars 44 forks source link

Just a small warning in CLJS (undeclared var `fipp.edn/*file*`) #59

Closed alexandergunnarson closed 5 years ago

alexandergunnarson commented 5 years ago

Getting this error in Figwheel:

[Figwheel:WARNING] Compile Warning: Use of undeclared Var fipp.edn/*file*  generated/dev/public/js/generated/fipp/edn.cljc   line:111  column:45

This is due to the fipp.edn/dbg macro being added but not being conditionalized to :clj (or at very least *file* being conditionalized somehow).

brandonbloom commented 5 years ago

Thanks for the report. I haven't used ClojureScript in a while. Can you try changing *file* to #?(:clj *file*) and see if the dbg macro works for you in Clojure? If so, I'll ship that. If not, I'll remove dbg from the ClojureScript build for now, unless somebody wants to make dbg work. Otherwise v0.6.13 should work without warnings.