On Thu, Aug 23, 2012 at 8:39 AM, Denis Labaye <denis.lab...@gmail.com>wrote:

> at which point?
>
> $ lein deps
> $ lein repl
> user=> (use 'clj-ns-browser.sdoc)
> user=> (sdoc)
>
>
>
> On Thu, Aug 23, 2012 at 4:48 AM, blackblock <mathn...@gmail.com> wrote:
>
>> I get this with Lein2 with lein repl:
>>
>> IllegalStateException escape-html already refers to:
>> #'hiccup.core/escape-html in namespace: hiccup.page
>> clojure.lang.Namespace.warnOrFailOnReplace (Namespace.java:88)
>
>
By the way try it with a brand new project:

lein new clj-ns-browser-test

add the deps in project.clj: :profiles {:dev {:dependencies
[[clj-ns-browser "1.2.0"]]}}

should work

it's probably because you try to use it with an existing project and
there's a var collision (you shouldn't use :use without filters, it's
only convenient for quick testing)

use uses refer , and as stated in the doc string:

(doc use)
Like 'require, but *also refers to each lib's* namespace using
clojure.core/refer

(doc refer)
For each public interned var in the namespace named by the symbol,
adds a mapping from the name of the var to the var to the current
namespace. *Throws an exception if name is already mapped to**
**something else in the current namespace*. Filters can be used to
select a subset, via inclusion or exclusion, or to provide a mapping
to a symbol different from the var's name, in order to prevent
clashes. Use :use in the ns macro in preference to calling this directly.

See: http://clojuredocs.org/clojure_core/clojure.core/refer

Clojure namespaces are nasty =)

Denis


>>
>> On Thursday, August 23, 2012 7:33:44 AM UTC+10, FrankS wrote:
>>
>>> Check out clj-ns-browser 
>>> ("https://github.com/franks42/**clj-ns-browser<https://github.com/franks42/clj-ns-browser>").
>>>
>>>
>>> When a var is defined, you can look at it's value, which is presented
>>> with pprint, which means that most data structures are nicely displayed.
>>>
>>> When the value is a list/tree-like data structure, you can bring up
>>> Rich's original tree browser with the click of a button to look at the
>>> values. (that widget should really be rewritten as it's look and feel good
>>> be improved… but it works!)
>>>
>>> Furthermore, there is a menu button that turns on an auto-refresh for
>>> the var's displayed value such that you can follow the var's value near
>>> real-time.
>>>
>>> This may help with your requirements...
>>>
>>> Enjoy, Frank.
>>>
>>>
>>> On Aug 22, 2012, at 1:58 PM, Denis Labaye <denis....@gmail.com> wrote:
>>>
>>> > Hi everyone,
>>> >
>>> > The clojure.inspector functions are ... mmm ... a bit "rough on the
>>> edge" =)
>>> >
>>> > Is there any lib that provide better support for exploring Clojure
>>> data-structures?
>>> >
>>> > I am surprised I didn't found anything on Google, GitHub, ...
>>> > Data-structures are at the core of Clojure, so being able to view /
>>> explore them seems a basic need to me.
>>> >
>>> > For example:
>>> >
>>> > ;; this works fine
>>> > (clojure.inspector/inspect-**tree (range 10))
>>> >
>>> > ;; this breaks
>>> > (clojure.inspector/inspect-**tree (range))
>>> >
>>> > It seems to me that it would be trivial™ to implement a viewer that
>>> would be able to display (possibly infinite) lazy nested data structures.
>>> >
>>> > Any ideas?
>>> >
>>> > Cheers,
>>> >
>>> > Denis
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Clojure" group.
>>> > To post to this group, send email to clo...@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+u...@**googlegroups.com
>>> > For more options, visit this group at
>>> > http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en>
>>>
>>>  --
>> 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 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

Reply via email to