You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm using this library because pedestal uses it to reload the files.
The problem is that ns-tracker doesn't return the namespaces in the order in which each file depends on the other (by depending I mean the :require at the top ns declaration). For example, if I have 3 files:
(nsfirst)
(deff1)
(nssecond
(:require [first]))
(defs (+2 first/f))
(nsthird
(:require [second]))
(deftsecond/s)
Now, using ns-tracker:
(deft (ns-tracker ["src"]))
;; after editing and saving `first.clj` I do:
(t)
;; => (first third second)
Let's say that I changed first/f to 30, the problem is that if I reload them in that order, then third/d will have the older value:
Now, I wanted to ask, is this expected or it is a bug?
The text was updated successfully, but these errors were encountered:
frankitox
changed the title
Improve the order in which ns-tracker return the namespaces
Improve the order in which ns-tracker returns the namespaces
Mar 29, 2022
Hi! I'm using this library because pedestal uses it to reload the files.
The problem is that
ns-tracker
doesn't return the namespaces in the order in which each file depends on the other (by depending I mean the:require
at the top ns declaration). For example, if I have 3 files:Now, using ns-tracker:
Let's say that I changed
first/f
to 30, the problem is that if I reload them in that order, thenthird/d
will have the older value:Now, I wanted to ask, is this expected or it is a bug?
The text was updated successfully, but these errors were encountered: