[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

The RedCloth-3.0 regexp stack overflow: Copland manual

Bil Kleb

12/26/2004 9:03:00 PM

So I was following up on converting our FUN3D manual
to _why's RedCloth+YAML method and got stymied trying
to reproduce the Copland manual,

Processing chapter #3...
/usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/RedCloth-3.0.0/lib/redcloth.rb:566:in `gsub!': Stack overflow in regexp matcher: /((?:\n*[\# ](?:[^\n]|\n+[\# ]|\n(?!\n|\Z))+)|(?:\n*[\* ](?:[^\n]|\n+[\* ]|\n(?!\n|\Z))+)|(?:\n*[> ](?:[^\n]|\n+[>
]|\n(?!\n|\Z))+))|((?:[^\n]+|\n+ +|\n(?![#*\n]|\Z))+)/m (RegexpError)
from /usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/RedCloth-3.0.0/lib/redcloth.rb:566:in `blocks'
from /usr/local/pkgs/ruby-1.8.2/lib/ruby/gems/1.8/gems/RedCloth-3.0.0/lib/redcloth.rb:276:in `to_html'
from chapter.erb:15

I tried the patch _why offered from the beginning of
November, but to no avail.

Any recommendations?

Jamis, on what platform and for what versions of Ruby,
RedCloth, and so forth does this work for you?

Thanks,
--
Bil Kleb, Hampton, Virginia
http://fun3d.lar...
4 Answers

Jamis Buck

12/26/2004 11:27:00 PM

0

On 06:06 Mon 27 Dec , Bil Kleb wrote:
> Jamis, on what platform and for what versions of Ruby,
> RedCloth, and so forth does this work for you?

Bil,

I haven't tried building the Copland manual since the 2.x series of
RedCloth--I know it worked with that, using the 1.8.2 prereleases.

- Jamis

>
> Thanks,
> --
> Bil Kleb, Hampton, Virginia
> http://fun3d.lar...
>
>

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...



Bil Kleb

12/27/2004 3:21:00 AM

0

Jamis Buck wrote:
>
> I haven't tried building the Copland manual since the 2.x series of
> RedCloth--I know it worked with that, using the 1.8.2 prereleases.

What!? It's not under a http://damagecontrol.cod... build? ;)

Anyway, thanks for the tip. I pulled 2.011 down and now I can
make beautiful Copland manuals anytime I feel like it. So there!

I don't know what took me so long to look into YAML; I sure
have been missing out. Why's cookbook was a perfect introduction.

Then I went on to Why's Textile Reference, again perfect. Thanks
Why!

I feel like I've gained the power of 10 grinches, plus two.

Thanks again,
--
Bil Kleb, Hampton, Virginia
http://fun3d.lar...

Jamis Buck

12/27/2004 3:40:00 AM

0

On 12:26 Mon 27 Dec , Bil Kleb wrote:
> Jamis Buck wrote:
> >
> >I haven't tried building the Copland manual since the 2.x series of
> >RedCloth--I know it worked with that, using the 1.8.2 prereleases.
>
> What!? It's not under a http://damagecontrol.cod... build? ;)

*blush* I'll get right on it. Sir. :)

>
> Anyway, thanks for the tip. I pulled 2.011 down and now I can
> make beautiful Copland manuals anytime I feel like it. So there!

Incidentally, I just tried building the manual with RedCloth 3.0 and
it worked okay for me... not sure what environmental factors are
involved (RAM?).

>
> I don't know what took me so long to look into YAML; I sure
> have been missing out. Why's cookbook was a perfect introduction.
>
> Then I went on to Why's Textile Reference, again perfect. Thanks
> Why!
>
> I feel like I've gained the power of 10 grinches, plus two.

Guess it's a good thing Christmas is already over. ;)

>
> Thanks again,
> --
> Bil Kleb, Hampton, Virginia
> http://fun3d.lar...
>

Cheers,

Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck...



Bil Kleb

12/27/2004 3:55:00 AM

0

Jamis Buck wrote:
>
> Incidentally, I just tried building the manual with RedCloth 3.0 and
> it worked okay for me... not sure what environmental factors are
> involved (RAM?).

Hmmm. The ol' "works for me" deal, eh? Da_n.

FWIW, I'm running Fedora Core 3 (2.6.9-1.681_FC3) with ruby 1.8.2
(2004-07-29) compiled from source on an i686 with 1GB. I tried
`ulimit -s unlimited` just for fun.

Maybe I'll open Matz's xmas present and try that with RC-3.0.

Regards,
--
Bil Kleb, Hampton, Virginia
http://fun3d.lar...