Turns out my problems were due to AOT compiling. Doing `lein clean` before 
firing up the repl fixed things.

Op maandag 3 april 2017 10:34:03 UTC+2 schreef Joachim De Beule:
>
> Hi JPatrick. I'm having the same sort of problems. Quite annoying! Did you 
> manage to fix this in the end?
>
> Hello,
>>>> I'm trying to implement the Component ideology. When run something 
>>>> manually with component/start-system and stop, it works fine. The main 
>>>> method calls component/start-system works fine too. But sadly when I try 
>>>> to 
>>>> get the user reflow to work (I copied user namespace from the README on 
>>>> GitHub), my main namespace is not reloading.
>>>>
>>>> :reloading (deusdatsolutions.views deusdatsolutions.dynamics 
>>>> deusdatsolutions.handler deusdatsolutions.system.route deusdatsolutions
>>>> .data deusdatsolutions.data-impl deusdatsolutions.system.database 
>>>> deusdatsolutions.system.common deusdatsolutions.system.server 
>>>> deusdatsolutions.system.core deusdatsolutions.user deusdatsolutions.
>>>> handler-test deusdatsolutions.dynamics-test 
>>>> deusdatsolutions.data-impl-test 
>>>> deusdatsolutions.core user)
>>>> :error-while-loading deusdatsolutions.user
>>>> #<CompilerException java.lang.Exception: namespace 
>>>> 'deusdatsolutions.system.core' not found, 
>>>> compiling:(deusdatsolutions/user.clj:1:1)>
>>>>
>>>> deusdatsolutions.system.core is there. It's in the user namespace that 
>>>> starts everything off.
>>>> (ns deusdatsolutions.user
>>>>   (:require [com.stuartsierra.component :as component]
>>>>             [clojure.tools.namespace.repl :refer [refresh]]
>>>>             [deusdatsolutions.system.core :as site-core]))
>>>>
>>>> (def system nil)
>>>>
>>>> (defn init []
>>>>   (alter-var-root #'system
>>>>     (constantly (site-core/create-system))))
>>>>
>>>> (defn start []
>>>>   (alter-var-root #'system site-core/start-server))
>>>>
>>>> (defn stop []
>>>>   (alter-var-root #'system
>>>>     (fn [s] (when s (site-core/stop-server s)))))
>>>>
>>>> (defn go []
>>>>   (init)
>>>>   (start))
>>>>
>>>> (defn reset []
>>>>   (stop)
>>>>   (refresh :after 'deusdatsolutions.user/go))
>>>>
>>>> This loads fine, runs the go fine, runs the stop fine too. (reset) gets 
>>>> that error.
>>>>
>>>> One thing that might be causing a problem is that I'm using a 
>>>> profiles.clj for dev. Something looks off in lein because I have to 
>>>> include 
>>>> the tools dependency in dev profile.
>>>>
>>>> Thanks,
>>>> JPD
>>>>
>>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to