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 added to see whether ns a is already loaded or not, and if
already loaded, not try to reach for the filesystem.

It's weird, because I think I had checked that it wouldn't affect :reload /
:reload-all options, and all unit tests passed at that time.











2014-09-22 16:04 GMT+02:00 Daniel König <perpl...@gmail.com>:

> 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 'config)
> #<Namespace config>
> => (require 'config :reload)
> nil
> => (remove-ns 'config)
> nil
>
>
>
> Is this intentional or can it be considered broken?
>
> Best regards,
> Daniel
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Laurent Petit

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to