I just wrote a patch to LispReader that in many cases can produce
an exception like:
java.lang.Exception: EOF while reading, starting at line 7 (bad.clj:15)
So while bad.clj:15 indicates the file name and the fact that
line 15 is the last one of the file, "starting at line 7" points
out the line where the unclosed grouping construct started. This
might be useful.
Rich, care for a bug and patch for this?
--Chouser
http://joyofclojure.com/
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@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+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
On Jan 27, 6:22 pm, Chouser <chou...@gmail.com> wrote:
That aside, I am supportive of any improvement in either compiler or
reader error messages.
On Jan 27, 11:22 am, Chouser <chou...@gmail.com> wrote:
> On Wed, Jan 27, 2010 at 4:03 AM, Gabi <bugspy...@gmail.com> wrote:
> > This exception is the biggest time waster for me when working with
> > Clojure. It doesn't give you a hint of where the problem really is.
> > I strongly suggest to improve parse error messages to contain
> > meaningful info.
>
> I just wrote a patch to LispReader that in many cases can produce
> an exception like:
>
> java.lang.Exception: EOF while reading, starting at line 7 (bad.clj:15)
>
> So while bad.clj:15 indicates the file name and the fact that
> line 15 is the last one of the file, "starting at line 7" points
> out the line where the unclosed grouping construct started. This
> might be useful.
>
> Rich, care for a bug and patch for this?
>
Sure - thanks!
Rich
On Jan 27, 8:50 pm, Chouser <chou...@gmail.com> wrote:
2010/1/27 Howard Lewis Ship <hls...@gmail.com>: