configleaf icon indicating copy to clipboard operation
configleaf copied to clipboard

Changing :namespace in :configleaf produces invalid package name.

Open MIvanchev opened this issue 11 years ago • 4 comments

This was already mentioned in #3, but I am opening a separate issue here. Using a custom namespace produces an invalid symbol name "(quote foo.bar)":

:configleaf { :namespace 'foo.bar }

The generate directory structure on Win7 is source file "bar).clj" in directory "(quote foo". Having this with leiningen 2.4.2 and Clojure 1.6.0.

MIvanchev avatar Nov 26 '14 18:11 MIvanchev

I just tried

:configleaf { :namespace "foo.bar" }

(string instead of a symbol) and that worked fine. Wrong documentation or an issue?

MIvanchev avatar Nov 26 '14 18:11 MIvanchev

My memory fails me... I think it may be a doc problem, as I may have written the docs intending that to be {:namespace foo.bar}, but then quoted it in the docs for some reason. Does that style work?

davidsantiago avatar Nov 27 '14 02:11 davidsantiago

Sorry for letting you wait for 17 days... yes, {:namespace foo.bar} and {:namespace "foo.bar"} both work OK. I suggest you adjust the docs and then close the ticket :)

MIvanchev avatar Dec 14 '14 12:12 MIvanchev

No problem, thanks for checking on that. I'll update the docs next chance I get. Thanks!

davidsantiago avatar Dec 14 '14 19:12 davidsantiago