This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-06
Channels
- # admin-announcements (2)
- # boot (51)
- # bristol-clojurians (1)
- # capetown (14)
- # cider (4)
- # cljs-dev (3)
- # cljsrn (23)
- # clojure (76)
- # clojure-gamedev (2)
- # clojure-germany (2)
- # clojure-greece (2)
- # clojure-hk (5)
- # clojure-poland (1)
- # clojure-quebec (3)
- # clojure-russia (19)
- # clojure-spec (7)
- # clojure-sweden (10)
- # clojure-uk (77)
- # clojurescript (42)
- # clojurex (5)
- # core-async (40)
- # cursive (12)
- # datomic (58)
- # editors (1)
- # events (1)
- # heroku (1)
- # hoplon (4)
- # jobs (6)
- # jobs-discuss (1)
- # ldnclj (2)
- # lein-figwheel (1)
- # leiningen (5)
- # om (66)
- # onyx (51)
- # other-languages (80)
- # proton (20)
- # protorepl (12)
- # quil (3)
- # re-frame (3)
- # reagent (18)
- # spacemacs (14)
- # untangled (78)
- # yada (16)
ok after talking with tony i’ll be putting it off until they are formally released
Just FYI. My current job just got kinda crazy (acting as interim CTO). So, my involvement here will be somewhat reduced for a while.
The other team members will be around to answer questions/help with bugs. The more you can narrow down any issues you find the better.
hmmm... (reset)
doesn't seem to be actually reloading server code. Any clues where to look?
(refresh) (go)
also doesn't reload... I'm having to shut down the repl and restart it to see server code changes.
urgh. I don't have that set up in IntelliJ atm to make sure everything's the same. but i guess it's the thing to do.
I'm even seeing the correct list of namespaces in the :reloading
message from (reset)
i began my codebase starting with untangled-todomvc as the base, haven't had issues
[navis/untangled-server "0.4.8" :exclusions [io.aviso/pretty org.clojure/clojurescript]]
it's so crazy... I have a map my basic test query returns via an api-read multimethod. I change a number in the map, (reset)
the server, reload the client page, and I still get the old number in the response.
(defonce system nil)
(defn stop []
(alter-var-root #'system
(fn [s] (when s (component/stop s) nil))))
(defn start []
(alter-var-root #'system
(fn [s]
(if s s
(-> (system/make-system) (component/start))))))
(defn reset []
(stop)
(refresh :after 'user/start))
@curtosis: did you write everything you've added to be a component so that your'e getting a full reload?
@tony.kay: Vacuously yes. 🙂 As in, all I've added is an api-read multimethod into the existing component. And in fact, when I do a (reset)
I see :reloading (my-server.api my-server.system)
if I've changed the file; :reloading ()
if I haven't.
my user.clj is basically straight from todomvc:
(defn stop "Stop the running web server. Is a no-op if the server is already stopped" []
(when @system
(swap! system component/stop)
(reset! system nil)))
(defn go "Load the overall web server system and start it." []
(init)
(start))
(defn reset
"Stop the web server, refresh all namespace source code from disk, then restart the web server."
[]
(stop)
(refresh :after 'user/go))
(defmethod api-read :sources-list [e k p]
(timbre/info "query: " (op/ast->expr (:ast e)))
{:value table})
and have you mucked with the refresh dirs? Perhaps there is stuff that should be refreshed that isn't, and some path of closure is hitting you
I could wrap it in an atom, but I have another query returning a dereferenced atom and it has the same problem
yeah, I;ve not experienced a problem like this. You're manually running a (reset)
from the repl, right?
OR you have the same multimethod TWICE in the code, and the second is overwriting the first
(set-refresh-dirs "src/server" "specs/server")
should pick up everything under src/server
, right?
hmm... good question. though the code I'm changing isn't under dev/server
... maybe it's to do with the general namespace-swizzling voodoo.