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

Can't use nomads #53

Open
eyalgo opened this issue Apr 5, 2019 · 4 comments
Open

Can't use nomads #53

eyalgo opened this issue Apr 5, 2019 · 4 comments

Comments

@eyalgo
Copy link

eyalgo commented Apr 5, 2019

Hi,
in chapter 10.9's exercise, we need to use nomads library:
`(use 'clojure.algo.monad)

When trying to run it in lein , It has an error that it can't the class:

user=> (use 'clojure.algo.monad)
Execution error (FileNotFoundException) at user/eval2792 (REPL:1).
Could not locate clojure/algo/monad__init.class, clojure/algo/monad.clj or 
clojure/algo/monad.cljc on classpath.


⇒  lein -v  
Leiningen 2.9.1 on Java 1.8.0_172 Java HotSpot(TM) 64-Bit Server VM

e

Anyone has an idea?
(couldn't find anything in Google)

Thanks

@marick
Copy link
Owner

marick commented Jun 8, 2019

Sorry - I've been on a long vacation.

Have you installed all the dependencies listed in https://github.com/marick/fp-oo/blob/master/project.clj ?

@marick
Copy link
Owner

marick commented Jun 8, 2019

I installed the dependencies, and I get the same problem. Investigating...

(Sorry, but I haven't used Clojure for years, so I've forgotten how to work with it.)

@marick
Copy link
Owner

marick commented Jun 8, 2019

So this is odd. Starting from (what I think is) a clean environment, I downloaded everything in the project.clj file. Two of the three things work:

user=> (use 'midje.sweet)
Run `(doc midje)` for Midje usage.
nil
user=> (use 'clojure.algo.monad)

FileNotFoundException Could not locate clojure/algo/monad__init.class or clojure/algo/monad.clj on classpath:   clojure.lang.RT.load (RT.java:443)
user=> 

nil
user=> 
user=> (use 'patterned.sweet)
nil

@marick
Copy link
Owner

marick commented Jun 8, 2019

Although I like for people to do the exercises, maybe this is a case where it's best to just read the words.

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

2 participants