bitemyapp / revise

RethinkDB client for Clojure
146 stars 8 forks source link

java.lang.ClassNotFoundException: clojure.walk, compiling:(bitemyapp/revise/query.clj:113:21) #10

Closed john2x closed 10 years ago

john2x commented 10 years ago

I'm getting this exception when trying to run a ring server ($ lein ring server) for a Luminus project.

Here are the namespace declarations of the ones listed in the stacktrace:

(ns myapp.db.users
  (:require [clojure.string :refer [lower-case]]
            [bitemyapp.revise.query :as q]
            [bitemyapp.revise.connection :refer [connect]]
            [bitemyapp.revise.core :as rdb]
            [myapp.db :refer [config with-connection]]))

(ns myapp.routes.registration
  (:use compojure.core)
  (:require [myapp.views.layout :as layout]
            [myapp.db.users :as user]
            [noir.response :as resp]
            [noir.validation :as valid]
            [noir.util.crypt :as crypt]
            [selmer.parser :as parser]
            [postal.core :as postal]))

(ns myapp.handler  
  (:require [compojure.core :refer [defroutes]]            
            [myapp.routes.home :refer [home-routes]]
            [myapp.routes.registration :refer [registration-routes]]
            [noir.util.middleware :as middleware]
            [compojure.route :as route]
            [taoensso.timbre :as timbre]
            [com.postspectacular.rotor :as rotor]
            [selmer.parser :as parser]
            [environ.core :refer [env]]))

and my project.clj

(defproject myapp "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :dependencies [[org.clojure/clojure "1.5.1"]
                 [lib-noir "0.7.9"]
                 [compojure "1.1.6"]
                 [ring-server "0.3.1"]
                 [selmer "0.5.9"]
                 [com.taoensso/timbre "2.7.1"]
                 [com.postspectacular/rotor "0.1.0"]
                 [com.taoensso/tower "2.0.1"]
                 [markdown-clj "0.9.41"]
                 [environ "0.4.0"]
                 [revise "0.0.5"]
                 [com.cemerick/friend "0.2.0"]
                 [com.draines/postal "1.11.1"]]

  :repl-options {:init-ns myapp.repl}
  :plugins [[lein-ring "0.8.8"]
            [lein-environ "0.4.0"]]
  :ring {:handler myapp.handler/app
         :init    myapp.handler/init
         :destroy myapp.handler/destroy}
  :profiles
  {
   :production {:ring {:open-browser? false
                       :stacktraces?  false
                       :auto-reload?  false}}
   :dev {:dependencies [[ring-mock "0.1.5"]
                        [ring/ring-devel "1.2.1"]]
         :env {:dev true}}}
  :min-lein-version "2.0.0")

I was pretty sure I just missed something, but asking on the irc channel about the exception, it agrees with revise's source (clojure.walk isn't required in query.clj). But I've tried the same version in another project last week (in fact, this project is just a copy&paste of that last project), and I didn't run into the issue. I've checked and double-checked my namespace declarations, project.clj, etc, and I couldn't find anything.

cesarbp commented 10 years ago

That is indeed a bug. I will add the require. Hopefully tonight as I haven't had Internet connection all week.

cesarbp commented 10 years ago

It should be fixed now.