Re: Exception when trying to require clojure.contrib.io

2010-08-16 Thread Luka Stojanovic
Actually, it started working with require, and as far as I'm concerned, I've done nothing to fix the problem. On Mon, 16 Aug 2010 20:06:32 +0200, Luka Stojanovic wrote: I have same problem: I'm using NetBeans 6.9.1/Enclojure, clojure-SNAPSHOT, running on Ubuntu 10.04 If I create Cloj

Re: Exception when trying to require clojure.contrib.io

2010-08-16 Thread Luka Stojanovic
I have same problem: I'm using NetBeans 6.9.1/Enclojure, clojure-SNAPSHOT, running on Ubuntu 10.04 If I create Clojure project everything works OK. If I add Clojure scripts in existing Java project (and copy appropriate parts of pom.xml into that project) :require causes error as above, b

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Btsai
Hmmm. Actually, as Meikel noted, this should be fine, and it does indeed work for me: (ns your-namespace (:require clojure.contrib.io)) The only time I got the "Don't know how to create ISeq from: clojure.lang.Symbol" exception is when I erroneously copy-pasted and tried to evaluate this: (ns

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Btsai
The following worked for me: (ns your-namespace (:require (clojure.contrib io))) (See: http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/ns) This also works: (ns your-namespace (:require [clojure.contrib.io])) On Aug 11, 2:46 am, Meikel Brandmeyer wrote: > Hi, > > On 11

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Meikel Brandmeyer
Hi, On 11 Aug., 10:44, Joop Kiefte wrote: > http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/... > tells me you need to put it in a quoted list (require is a function, > so you have to quote anyway. Don't know at the moment if the :require > works differently, but I think it

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Meikel Brandmeyer
Hi, On 11 Aug., 10:19, Folcon wrote: > The stacktrace is as follows: > > Backtrace: >   0: clojure.lang.LazySeq.sval(LazySeq.java:47) > Wow. Emacs really goes out of its way to hide what's going on. If you try your code in a normal repl it should tell you the file where things go wrong. Also th

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Joop Kiefte
http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/require tells me you need to put it in a quoted list (require is a function, so you have to quote anyway. Don't know at the moment if the :require works differently, but I think it shouldn't) 2010/8/11 Folcon : > The stacktrace i

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
The stacktrace is as follows: Backtrace: 0: clojure.lang.LazySeq.sval(LazySeq.java:47) 1: clojure.lang.LazySeq.seq(LazySeq.java:56) 2: clojure.lang.LazySeq.first(LazySeq.java:78) 3: clojure.lang.RT.first(RT.java:549) 4: clojure.core$first__4227.invoke(core.clj:45) 5: clojure.core$ns__6

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Meikel Brandmeyer
Hi, On 11 Aug., 09:12, Folcon wrote: > I've tried using the format shown on the docs which is: > > (ns your-namespace >   (:require clojure.contrib.io)) > > And this is what causes the exception. Do you have some more information about the stacktrace? It should say in which file the exception h

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
I did try that and I get the exception: lib names inside prefix lists must not contain periods Thanks for trying ;) On Aug 11, 12:33 pm, Joop Kiefte wrote: > quote it? > > 2010/8/11 Folcon : > > > > > > > I've tried using the format shown on the docs which is: > > > (ns your-namespace > >  (:re

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Joop Kiefte
quote it? 2010/8/11 Folcon : > I've tried using the format shown on the docs which is: > > (ns your-namespace >  (:require clojure.contrib.io)) > > And this is what causes the exception. > > On Aug 11, 12:06 pm, Folcon wrote: >> I'm trying to create an input stream to use with some libraries. I'v

Re: Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
I've tried using the format shown on the docs which is: (ns your-namespace (:require clojure.contrib.io)) And this is what causes the exception. On Aug 11, 12:06 pm, Folcon wrote: > I'm trying to create an input stream to use with some libraries. I've > been trying to require clojure.contrib.

Exception when trying to require clojure.contrib.io

2010-08-11 Thread Folcon
I'm trying to create an input stream to use with some libraries. I've been trying to require clojure.contrib.io to use the input-stream function. However I keep getting the exception. java.lang.IllegalArgumentException: Don't know how to create ISeq from: clojure.lang.Symbol Can anyone help? Tha