Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transform example does not work #10

Open
sparkofreason opened this issue Dec 14, 2016 · 1 comment
Open

transform example does not work #10

sparkofreason opened this issue Dec 14, 2016 · 1 comment

Comments

@sparkofreason
Copy link

The transform example in README throws an error. First problem seems to be that it was not passed data. But even after adding that I get this exception:

java.lang.ClassCastException: com.tbaldridge.odin.unification.LVar cannot be cast to java.lang.Number
at clojure.lang.Numbers.equiv(Numbers.java:208)
at com.tbaldridge.odin$update.invokeStatic(odin.clj:120)
at com.tbaldridge.odin$update.invoke(odin.clj:118)

@sparkofreason
Copy link
Author

Do you mean to use == in the 1-arity version of com.tbaldridge.odin/update? Changing to = does fix this particular issue, though don't know if that breaks something else.

joinr pushed a commit to joinr/odin that referenced this issue Oct 30, 2018
Bumped version to account for clojure
1.9 and spec.alpha ns.  Posted repo
pulled in clojure.spec, which is
currently clojure.spec.alpha.

Bumped cljs to latest 1.9 series
release.

Applied fix to odin/update per
per halgari#10

to change from == to = .  This makes the
transform example work.

Also patched the readme example so it
works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant