On Mar 28, 8:24 pm, Stuart Sierra <[email protected]> wrote:
[snip]
>
> Also, if you're using SLIME, you lose line numbers every time you
> evaluate a form in the buffer.  Type
> (require your.namespace :reload) at the REPL to get them back.
>

This advice did not work for a situation I am encountering now and
encounter frequently. I did 'require with :reload, even :reload-all,
but I still have no idea what line in my source raised this exception.
A line number would be dang useful here :)

java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.ClassCastException: java.lang.Boolean cannot be cast to
clojure.lang.IFn (NO_SOURCE_FILE:0)
  [Thrown class clojure.lang.Compiler$CompilerException]

Restarts:
 0: [ABORT] Return to SLIME's top level.
 1: [CAUSE] Throw cause of this exception

Backtrace:
  0: clojure.lang.Compiler.eval(Compiler.java:4533)
  1: clojure.core$eval__3969.invoke(core.clj:1738)
 --more--


On Mar 28, 8:24 pm, Stuart Sierra <[email protected]> wrote:
> On Mar 28, 7:55 pm, Glen Stampoultzis <[email protected]> wrote:
>
> > I recently got this one that left me scratching my head:
>
> > java.lang.NullPointerException (splat.clj:0)
> >         at clojure.lang.Compiler.eval(Compiler.java:4533)
>
> In my experience, anerrorat line 0 means something wrong with the
> (ns...) call at the top of the file.  Try copying it into the REPL and
> see if that sheds any light on the problem.
>
> Also, if you're using SLIME, you lose line numbers every time you
> evaluate a form in the buffer.  Type
> (require your.namespace :reload) at the REPL to get them back.
>
> There are several stack trace llbs, including one in contrib, that
> will give you (slightly) nicer stack traces.
>
> -Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to