fp-oo icon indicating copy to clipboard operation
fp-oo copied to clipboard

Can't use nomads

Open eyalgo opened this issue 6 years ago • 4 comments

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

eyalgo avatar Apr 05 '19 12:04 eyalgo

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 avatar Jun 08 '19 22:06 marick

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 avatar Jun 08 '19 22:06 marick

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 avatar Jun 08 '19 23:06 marick

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

marick avatar Jun 08 '19 23:06 marick