On Nov 13, 2:38 am, Giacecco <[EMAIL PROTECTED]> wrote:
> Hi all,
> I am trying setting up clojure to use rlwrap as described
> athttp://en.wikibooks.org/wiki/Clojure_Programming#Enhancing_Clojure_RE...
> on a MacOS 10.5.5.
>
> I have prepared the clj-completions.clj the instructions describe, but
> it fails on the second of the three commands. If I run it from the
> console, I see the following:
>
> gianfranco-cecconis-macbook-pro:clojure giacecco$ clj
> Clojure
> user=> (defmacro with-out-file [pathname & body]
> `(with-open stream# (new java.io.FileWriter ~pathname)
> (binding [*out* stream#]
> [EMAIL PROTECTED])))
> nil
> user=> (def completions (keys (ns-publics (find-ns 'clojure))))
> java.lang.NullPointerException (NO_SOURCE_FILE:5)
> user=>
This works fine for me on WinXP and Linux. Haven't tried MacOS.
Are you using the latest sources from svn? The HEAD
(between ~1088 and 1095 IIRC) was in a state of flux for AOT
support. So you could try the released version or 1087 or so.
>
> What does that "NO_SOURCE_FILE:5" mean? Thank you in advance!
Error messages from Clojure indicate the line with error
using the source:line_no format. For the REPL there is no
source file hence NO_SOURCE_FILE:5.
Parth
>
> Giacecco
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---