문제

I have just added the [hiccup "1.0.3"] dependency to my project.clj, but now I can't start the repl anymore. Each time I try, I get:

Caused by: java.io.FileNotFoundException: Could not locate hiccup/page_helpers__init.class or hiccup/page_helpers.clj

Ideas? As soon as I remove hiccup from my dependencies, everything compiles just fine.

(defproject projectname "0.1.0-SNAPSHOT" 
:description "FIXME: write description"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
        :url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.5.1"]
             [com.datomic/datomic-free "0.8.4007"]
             [ring-serve "0.1.2"]
             [ring/ring-core "1.1.8"]
             [compojure "1.1.5"]
             [hiccup "1.0.3"]]
:profiles {:dev {:source-paths ["dev"]
               :dependencies [[org.clojure/tools.namespace "0.2.3"]
                              [org.clojure/java.classpath "0.2.0"]]}})
도움이 되었습니까?

해결책

Try running lein deps :tree with it in your project.clj and again without it. Perhaps there's a dependency that requires an older version that has the namespace in question? The current version of hiccup does not have the hiccup.page-helpers namespace.

다른 팁

Your format is wrong. I've no idea if you made the mistake only in the post, or you acctually missed a ']' after [hiccup "1.0.3"]. How did you start repl. I run lein repl and everything is fine. Make sure you successfully retrieve all deps after running lein deps. It's easy to find out if error occurs during that process.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top