Re: Getting this error regarding duck-streams/spit ...

2010-10-30 Thread zkim
Looks like I'm a bit late to the party on this one. ClojureDocs, as Tom mentioned, dosen't currently track the :deprecated metadata entry, which will be fixed once clojuredocs is able to consume autodoc's output. Apologies for the confusion. -Zack On Oct 27, 12:57 am, Btsai

Re: Getting this error regarding duck-streams/spit ...

2010-10-27 Thread Btsai
Awesome! Thanks for the great work, Tom :) clojuredocs has quickly become my go-to reference source. On Oct 26, 11:46 pm, Tom Faulhaber tomfaulha...@gmail.com wrote: You remind me that I need to markhttp://richhickey.github.com/clojure... as obsolete and redirect users to the new place.

Re: Getting this error regarding duck-streams/spit ...

2010-10-26 Thread Dave Ray
Hey. Until this message, I hadn't noticed that duck-streams was deprecated. Is the stuff in clojure.java.io the official replacement for that functionality? So now rather than duck-streams/read-lines, I'd manually combine with-open, clojure.java.io/reader, and line-seq? Just checking. Thanks,

Re: Getting this error regarding duck-streams/spit ...

2010-10-26 Thread Sean Devlin
The stuff in Clojure.java.io would be the preferred tool, yes. However, if contrib has something that solves your problem, go ahead and use it. Be careful though, because contrib is much more likely to change than something officially in core. On Oct 26, 8:51 am, Dave Ray dave...@gmail.com

Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Victor Olteanu
Hi friends, I am getting the following error and was hoping somebody may be able to assist: java.lang.IllegalStateException: spit already refers to: #'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.clj:1) I realized it's because clojure.contrib.duck-streams/spit is overriding

Re: Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Michael Ossareh
On Mon, Oct 25, 2010 at 19:09, Victor Olteanu bluestar...@gmail.com wrote: java.lang.IllegalStateException: spit already refers to: #'clojure.contrib.duck-streams/spit in namespace: datatool.api (api.clj:1) Hi Victor, I solved this issue by using (require) instead of (use). i.e. (ns myapp

Re: Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Victor Olteanu
Thank you. The following statement worked for me: (:require [clojure.contrib.duck-streams :as d]) As I was using slurp and slurp*, I then had to do the following: use the form d/slurp* instead (prefixed with d/) use slurp without a change This brings up a related point - I can see that there

Re: Getting this error regarding duck-streams/spit ...

2010-10-25 Thread Btsai
I don't think it's a mistake or accident that spit exists in clojure.core. In 1.2, duck-streams became deprecated and functions such as spit were incorporated into clojure.core: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/spit