budu / lobos

A library to create and manipulate SQL database schemas with migrations support.
http://budu.github.com/lobos/
267 stars 56 forks source link

Lobos uses a non-existent function in Clojure 1.5 #57

Open ghost opened 11 years ago

ghost commented 11 years ago

Lobos attempts to use a function getRoot that doesn't exist in clojure 1.3-1.5

To recreate, create a lein project using Clojure 1.5 and lobos 0.8.0 Then start a REPL and attempt to use lobos.

user=> (use 'lobos.connectivity

_=> 'lobos.core

_=> 'lobos.schema)

Warning: default-encoding not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic default-encoding or change the name. Warning: buffer-size not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic buffer-size or change the name. Warning: byte-array-type not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic byte-array-type or change the name. Warning: char-array-type not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic char-array-type or change the name. Warning: append not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic append or change the name. Warning: db not declared dynamic and thus is not dynamically rebindable, but its name suggests otherwise. Please either indicate ^:dynamic db or change the name. IllegalArgumentException No matching field found: getRoot for class clojure.lang.Var clojure.lang.Reflector.getInstanceField (Reflector.java:289)

peterschwarz commented 10 years ago

Try using lobos 1.0.0-beta1. This fixed the problem for me.