Hi Ivan,
I think this is a bug in textdiff,
since it could happen with the example shown in
http://wiki.call-cc.org/eggref/4/format-textdiff,
with empty files.
#;2> (textdiff (with-input-from-string "" read-lines) (with-input-from-string
"abc\n" read-lines) 3)
Error: (vector-copy) vector index too high
(index 0)
(vector #())
Call history:
list->vector
list->vector
##sys#call-with-values
vector-lib#check-index
values
make-vector
vector->list
##sys#call-with-values
vector-lib#check-index
##sys#error <--
Can you easily fix this?
Best,
Daishi
At Thu, 25 Nov 2010 15:16:22 +0900,
Daishi Kato wrote:
>
> Hi Ivan,
>
> It works now.
> Thanks!
>
> One very small request: "diff --unified" format.
>
> Best,
> Daishi
>
> At Fri, 19 Nov 2010 13:42:20 +0900,
> Ivan Raikov wrote:
> >
> >
> > Hello,
> >
> > Thanks for trying to use format-textdiff. The problem below was
> > actually caused by a bug in npdiff, which has been fixed in npdiff
> > release 1.13. Please update your copy of npdiff and try again. Let me
> > know if you encounter any other issues with those eggs.
> >
> > -Ivan
> >
> > Daishi Kato <[email protected]> writes:
> >
> > > Hi all,
> > >
> > > Anybody using format-textdiff?
> > >
> > > I encountered the following problem:
> > > CHICKEN
> > > (c)2008-2010 The Chicken Team
> > > (c)2000-2007 Felix L. Winkelmann
> > > Version 4.6.1
> > > linux-unix-gnu-x86 [ manyargs dload ptables ]
> > > compiled 2010-09-25 on lobule (Linux)
> > >
> > > #;1> (use format-textdiff)
> > > #;2> (textdiff (with-input-from-string "abc\n" read-lines)
> > > (with-input-from-string "def\n" read-lines))
> > >
> > > Error: bad argument count - received 4 but expected 6: #<procedure>
> > >
> > > Call history:
> > >
> > > ##sys#call-with-values
> > > vector-lib#check-index
> > > values
> > > make-vector
> > > vector->list
> > > ##sys#call-with-values
> > > vector-lib#check-index
> > > values
> > > make-vector
> > > vector->list <--
> >
> > ******************************
> > XREA.COM -Free Web Hosting-
> > http://www.xrea.com/
> > ******************************
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users