martinklepsch / boot-garden

Boot task to compile Garden stylesheets.
Eclipse Public License 1.0
37 stars 6 forks source link

Code with side effects #12

Closed malchmih closed 9 years ago

malchmih commented 9 years ago

boot-garden fails to compile stylesheet when there is some code with "side effects". Repository, reproducing the issue is here: https://github.com/malchmih/boot-garden-test The exception:

             clojure.lang.ExceptionInfo: java.lang.ExceptionInInitializerError
    data: {:file
           "/var/folders/5y/71zb7yvd7qb7p096s1k5q5_m0000gn/T/boot.user3244250401976622424.clj",
           :line 29}
java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError
  java.lang.ExceptionInInitializerError:
clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate com/stuartsierra/component__init.class or com/stuartsierra/component.clj on classpath., compiling:(reloaded.clj:1:1)
          java.io.FileNotFoundException: Could not locate com/stuartsierra/component__init.class or com/stuartsierra/component.clj on classpath.
                                                   ...
                                  clojure.core/load/fn                          core.clj: 5866
                                     clojure.core/load                          core.clj: 5865
                                                   ...
                                 clojure.core/load-one                          core.clj: 5671
                              clojure.core/load-lib/fn                          core.clj: 5711
                                 clojure.core/load-lib                          core.clj: 5710
                                                   ...
                                    clojure.core/apply                          core.clj:  632
                                clojure.core/load-libs                          core.clj: 5749
                                                   ...
                                    clojure.core/apply                          core.clj:  632
                                  clojure.core/require                          core.clj: 5832
                                                   ...
                        reloaded/eval9/loading--auto--                      reloaded.clj:    1
                                        reloaded/eval9                      reloaded.clj:    1
                                                   ...
                                  clojure.core/load/fn                          core.clj: 5866
                                     clojure.core/load                          core.clj: 5865
                                                   ...
                                 clojure.core/load-one                          core.clj: 5671
                              clojure.core/load-lib/fn                          core.clj: 5711
                                 clojure.core/load-lib                          core.clj: 5710
                                                   ...
                                    clojure.core/apply                          core.clj:  632
                                clojure.core/load-libs                          core.clj: 5749
                                                   ...
                                    clojure.core/apply                          core.clj:  632
                                  clojure.core/require                          core.clj: 5832
                                                   ...
                            user/eval3/loading--auto--                          user.clj:    1
                                            user/eval3                          user.clj:    1
                                                   ...
org.projectodd.shimdandy.ClojureRuntimeShim.newRuntime           ClojureRuntimeShim.java:   26
org.projectodd.shimdandy.ClojureRuntimeShim.newRuntime           ClojureRuntimeShim.java:   32
                                      boot.App.newShim                          App.java:  154
                                     boot.pod/make-pod                           pod.clj:  465
          org.martinklepsch.boot-garden/ns-tracker-pod                   boot_garden.clj:   16
             org.martinklepsch.boot-garden/eval1226/fn                   boot_garden.clj:   36
                                                   ...
                                    clojure.core/apply                          core.clj:  630
                              boot.user/eval1254/fn/fn  boot.user3244250401976622424.clj:   25
                                                   ...
                                    clojure.core/apply                          core.clj:  630
                             boot.core/construct-tasks                          core.clj:  684
                                                   ...
                                    clojure.core/apply                          core.clj:  630
                                     boot.core/boot/fn                          core.clj:  712
                   clojure.core/binding-conveyor-fn/fn                          core.clj: 1916
                                                   ...
malchmih commented 9 years ago

BTW, the same issue is in https://github.com/martinklepsch/boot-deps. But there it's not as important.

malchmih commented 9 years ago

I think we should close this one. For anyone who will discover it later: clojure itself treats user namespace differently. Just rename it :smile: