Add Clojure dependency version checks and error messages
Declined
Description fields
Description
ClojureScript requires a specific version of Clojure and if the user uses the latest ClojureScript with Clojure <= 1.7.0-beta2, the ns form will try load namespaces it can't load and will throw an exception without letting the user know the reason. We should add a version check to namespaces that the user might load, e.g. cljs.closure and cljs.repl.
Environment
None
Activity
Anna Pawlicka
July 18, 2015 at 11:26 PM
Unfortunately it doesn't work with AOT compilation resulting in NPE when trying to call a function from another namespace, before current namespace form. Copying and pasting the same code all over the place sounds bad and we should add those types of checks to build tools instead (boot, cljsbuild).
ClojureScript requires a specific version of Clojure and if the user uses the latest ClojureScript with Clojure <= 1.7.0-beta2, the ns form will try load namespaces it can't load and will throw an exception without letting the user know the reason. We should add a version check to namespaces that the user might load, e.g. cljs.closure and cljs.repl.