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

Unable to resolve spec definition #29

Open
mtijerina opened this issue Mar 27, 2017 · 2 comments
Open

Unable to resolve spec definition #29

mtijerina opened this issue Mar 27, 2017 · 2 comments

Comments

@mtijerina
Copy link

When I define a spec with s/def, write a function that uses this spec somehow, and then use this function within keg/rdd, I am getting a "Unable to resolve spec" error. As a very simplified example:

(s/def ::odd-int (s/and int? odd?))

(defn nums-are-odd-ints? [num]
  (s/valid? ::odd-int num))

(into [] (keg/rdd [1 3 5 7 9 11] (map nums-are-odd-ints?)))
An exception was caused by: java.lang.Exception (Unable to resolve spec: :user/odd-int)

I am running powderkeg.repl in yarn-client mode.

@cgrand
Copy link
Contributor

cgrand commented Mar 27, 2017 via email

@cgrand
Copy link
Contributor

cgrand commented Mar 28, 2017

Similar to #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants