jeluard / hipo

A ClojureScript DOM templating library based on hiccup syntax
101 stars 9 forks source link

Compilation fails (version 0.4.0) #24

Closed edouardklein closed 9 years ago

edouardklein commented 9 years ago

Hi !

I'm very new to ClojureScript, so it's very possible I'm doing something wrong.

I added [hipo "0.4.0"] in my deps in my project.clj, but the compilation fails with the following message :

clojure.lang.ExceptionInfo: java.io.FileNotFoundException: Could not locate hipo/hiccup__init.class or hipo/hiccup.clj on classpath: , compiling:(hipo/compiler.clj:1:1) at line 1 f ile:/Users/XXX/.m2/repository/hipo/hipo/0.4.0/hipo-0.4.0.jar!/hipo/core.cljs {:tag :cljs/analysis-error, :file "file:/Users/XXXX/.m2/repository/hipo/hipo/0.4.0/hipo-0.4.0.jar!/hipo/core.cljs", :line 1, :column 1}

I'll try to use the 0.50-SNAPSHOT version.

edouardklein commented 9 years ago

Using the 0.5.0-SNAPSHOT version, the error becomes :

clojure.lang.ExceptionInfo: failed compiling file:target/figwheel_temp/dev/figwheel/connect.cljs at clojure.core$ex_info.invoke (core.clj:4403) Caused by: clojure.lang.ExceptionInfo: java.io.FileNotFoundException: Could not locate hipo/element__init.class or hipo/element.clj on classpath: , compiling:(hipo/compiler.clj:1:1 ) at line 1 /Users/XXXX/YYY/.lein-git-deps/hipo/src/hipo/core.cljs at clojure.core$ex_info.invoke (core.clj:4403) Caused by: clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate hipo/elementinit.class or hipo/element.clj on classpath: , compiling:(hipo/com piler.clj:1:1) at clojure.lang.Compiler.load (Compiler.java:7142) Caused by: java.io.FileNotFoundException: Could not locate hipo/elementinit.class or hipo/element.clj on classpath: at clojure.lang.RT.load (RT.java:443)

edouardklein commented 9 years ago

BTW, I'm on MacOSX with Leiningen Leiningen 2.5.1 on Java 1.7.0_67.

jeluard commented 9 years ago

hipo uses reader conditionals so you should make sure your project uses Clojure 1.7 and a recent ClojureScript.

edouardklein commented 9 years ago

I updated Clojure to 1.7 and it works now. Thank you very much !

Sorry for not realizing I was using 1.6.

jeluard commented 9 years ago

No problem! hipo API is still moving and the doc matches latest master so don't be surprised if changes happen.