Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
Le mardi 23 septembre 2014, Hugo Duncan a écrit : > > laurent.pe...@gmail.com writes: > > > Just a question so my understanding levels up: are there usecases where > one > > would use the current behavior of removing a namespace not also removing > it > > from *loaded-libs* (and thus preventing

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Hugo Duncan
laurent.pe...@gmail.com writes: > Just a question so my understanding levels up: are there usecases where one > would use the current behavior of removing a namespace not also removing it > from *loaded-libs* (and thus preventing it from being required without > :reload) ? You can create namespa

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Laurent PETIT
2014-09-23 12:53 GMT+02:00 Hugo Duncan : > > laurent.pe...@gmail.com writes: > > > Le mardi 23 septembre 2014, Stuart Sierra > a > > écrit : > > > >> I'm not sure I understand what you mean. > >> > >> `remove-ns` does not remove the namespace from the set of "loaded" > >> namespaces kept by `requ

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-23 Thread Hugo Duncan
laurent.pe...@gmail.com writes: > Le mardi 23 septembre 2014, Stuart Sierra a > écrit : > >> I'm not sure I understand what you mean. >> >> `remove-ns` does not remove the namespace from the set of "loaded" >> namespaces kept by `require`. tools.namespace >>

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-22 Thread Laurent PETIT
Hello, Le mardi 23 septembre 2014, Stuart Sierra a écrit : > I'm not sure I understand what you mean. > > `remove-ns` does not remove the namespace from the set of "loaded" > namespaces kept by `require`. tools.namespace > has a hack >

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-22 Thread Stuart Sierra
I'm not sure I understand what you mean. `remove-ns` does not remove the namespace from the set of "loaded" namespaces kept by `require`. tools.namespace has a hack

Re: `remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-22 Thread Laurent PETIT
I think it is broken, and I think I know who the culprit may be (me). Before 1.5.1 (I guess), it was impossible to do things like that from e.g. a live repl session: (ns a) (ns b (:require a)) because somehow the filesystem for ns a would be checked, no file found. So a check was adde

`remove-ns' prevents namespace from being reloaded by `require' in clj 1.5.1 and 1.6

2014-09-22 Thread Daniel König
Hi, after removing a namespace with the remove-ns form, I am not able to require it a second time. >From what I can tell, I should be able to reload a namespace after removing it. This behaviour was found in Clojure 1.5.1 and Clojure 1.6. Example: => (require 'config :reload) nil => (remove-ns