Guess nowadays it's more nostalgia than anything else, but in many ways that Smalltalk development environment is still a hard act to follow.
Hopefully this Clojure Namespace Browser will get us one small step closer to our ultimate development environment (… although I'm sure that some of you emacs-gurus believe you're already there ;-) ).
The graphical browser should give you easier access to the documentation strings of all the vars in your live clojure project, as well as the source code, and clojuredocs' examples&comments. You can get all that info from the repl, but hopefully this browser should make it easier to … browse, explore, and find stuff in Clojure's vast collection of libraries.
The installation is dead-simple - just add:
:dev-development [[clj-ns-browser "1.0.0"]]
to your project.clj file, start your repl, evaluate (use 'clj-ns-browser.sdoc), and then (sdoc), and your up and running with this namespace browser always one click or (sdoc…) away…
Caveat… it all works well on my MacOSX, but I have seen some issues with Lubuntu and missing "unloaded namespaces" - also I haven't tested it on windoze or other OS-flavors. So you mileage may vary…
The code and some more info with some screenshots are available at:
https://github.com/franks42/clj-ns-browser
Finally, kudos to Dave Ray and his Seesaw - fantastic tool and near real-time support on the mailing list.
(this has essentially been a 2 week project after Clojure-Conj/West - an "after the kids are asleep" project - no experience with Swing… a testament of how good seesaw is as an abstraction tool…)
Please let me know if it works for you, and suggestions and feedback are more than welcome.
Enjoy, FrankS.
-FrankS.
Cool, this will be helpful when exploring a new library. It would be
nice if the namespace column could optionally use a tree though,
rather than expanding everything to a single list.
Got it working fine on Linux. Looks really nice. :) On Windows, my
primary platform, the text is garbled in all text boxes and lists
(drop-down menus and static strings are ok). Even the text that I type
into, say, the namespace text field gets garbled. If I try typing
"clojure", I end up with "clnjtqe". Copying the text help doc text and
pasting into a text editor shows it correctly, so there's possibly
some kind of character encoding mismatch somewhere. Not sure what else
I can add..
Sample problem:
[Expected display]
clojure.core - Namespace
Fundamental library of the Clojure language
[Actual display]
clnjtqe.cnqe - Na'eroace
Ftmda'emsal libqaqx nf she Clnjtqe lamgtage
Lars Nilsson
One thing that may cause that is the Inconsolata font that I used as a fixed-width font to display most text. (not sure what happens if it's not installed… should just substitute an other font…)
Could you please try to install that font on your windows machine and try again?
(I don't have any windows box available for testing)
-FrankS.
> --
> 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
Thanks for a very nifty tool. :)
Lars Nilsson
… which also confirms that there is something wrong with that Inconsolata font definition as it also garbles my readable text in Aquamacs to gibberish much worse than you showed - was blaming Aquamacs, but now the font may be the culprit - too bad because I love the design.
-FrankS.
it's ok I found the problem: it was due to another dependency, Aleph 0.2.1-SNAPSHOT, which depends on Apache HTTP components which are older versions than those used by ns-browser
;; Leiningen version 1 :dev-dependencies [[clj-ns-browser "1.2.0"]]
$ lein deps $ lein repl user=> (use 'clj-ns-browser.sdoc)