Your ns-statement doesn't exclude clojure.core. When :refer-clojure
isn't present, it refers clojure.core by default, even when you
require it prefixed. Take a look at the documentation:
http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/ns

On Mon, May 7, 2012 at 4:15 PM, David Greenberg <dsg123456...@gmail.com> wrote:
> Hello Clojurians,
> I do not understand why this error happens. It appears to not want me
> to refer to not= after it's been referred to once before, even though
> it's the same not= that I'm referring to! I have tried using
> refer-clojure instead of require to no avail.
>
> I haven't been able to figure out how to consistently repro it--it
> happens when I evaluate it with VimClojure, and sometimes from the
> lein repl, but I don't have a clear repro case :(.  Here's the
> repository that the code lives in: https://github.com/dgrnbrg/piplin/
>
> Here's the (ns) form I'm using:
>
> (ns piplin.test.math
>  (:use clojure.test)
>  (:import slingshot.ExceptionInfo)
>  (:use [slingshot.slingshot :only [throw+]])
>  (:require [clojure.core :as clj])
>  (:use [piplin types math modules sim]))
>
> Here's the error I get when I evaluate it multiple times (the first
> evaluation usually works):
>
> java.lang.IllegalStateException: not= already refers to:
> #'piplin.math/not= in namespace: piplin.test.math
>                Namespace.java:88 clojure.lang.Namespace.warnOrFailOnReplace
>               Namespace.java:110 clojure.lang.Namespace.reference
>               Namespace.java:168 clojure.lang.Namespace.refer
>                    core.clj:3775 clojure.core/refer
>                  RestFn.java:410 clojure.lang.RestFn.invoke
>                       math.clj:2 piplin.test.math/eval3649[fn]
>                       math.clj:2 piplin.test.math/eval3649
>               Compiler.java:6465 clojure.lang.Compiler.eval
>               Compiler.java:6455 clojure.lang.Compiler.eval
>               Compiler.java:6431 clojure.lang.Compiler.eval
>                    core.clj:2795 clojure.core/eval
>                     repl.clj:163 vimclojure.repl/run[fn]
>                     repl.clj:136 vimclojure.repl/with-repl*[fn]
>                     AFn.java:159 clojure.lang.AFn.applyToHelper
>                     AFn.java:151 clojure.lang.AFn.applyTo
>                     core.clj:600 clojure.core/apply
>                    core.clj:1769 clojure.core/with-bindings*
>                  RestFn.java:425 clojure.lang.RestFn.invoke
>                     repl.clj:132 vimclojure.repl/with-repl*
>                     repl.clj:160 vimclojure.repl/run
>                    nails.clj:252 vimclojure.nails/Repl[fn]
>                     util.clj:118 vimclojure.util/with-command-line*
>                    nails.clj:235 vimclojure.nails/Repl[fn]
>                     nails.clj:85 vimclojure.nails/nail-driver[fn]
>                     nails.clj:81 vimclojure.nails/nail-driver
>                    nails.clj:235 vimclojure.nails/Repl
>                     Var.java:401 clojure.lang.Var.invoke
>                     Nail.java:61 vimclojure.Nail.nailMain
>                 (Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0
>  NativeMethodAccessorImpl.java:57 sun.reflect.NativeMethodAccessorImpl.invoke
> DelegatingMethodAccessorImpl.java:43
> sun.reflect.DelegatingMethodAccessorImpl.invoke
>                  Method.java:601 java.lang.reflect.Method.invoke
>               NGSession.java:294 vimclojure.nailgun.NGSession.run
>
> --
> 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



-- 
Moritz Ulrich

-- 
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