S
Stephan Kämper
Hi all,
first of all thanks a lot for Rake and RedCloth, Jim and _why.
They are really a great help in my corrent work and a great pleasure to
work with.
However, I'm currently trying to figure out the answer to some questions:
- Why do I get the warnings mentioned below when using
Rake to build html files from RedCloth sources?
- Why do I get these warning in a non-Rake Ruby program
only when run with '-w' (display warnings)
- Where in Rake is '-w' set? Or, if it isn't set in Rake: Where
is it set?
I'm using Rake (version 0.4.0) (among other tasks) to 'compile' some
RedCloth (version 2.0.11) sources to html files.
Now, I'm a bit worried about the warnings from RedCloth - looking like this:
c:/ruby/lib/ruby/site_ruby/1.8/RedCloth.rb:719: warning: instance
variable @filter_html not initialized
c:/ruby/lib/ruby/site_ruby/1.8/RedCloth.rb:490: warning: instance
variable @fold_lines not initialized
c:/ruby/lib/ruby/site_ruby/1.8/RedCloth.rb:375: warning: instance
variable @filter_styles not initialized
I don't set any of the 'restrictions' mentioned in RedCloth's RDoc, and
I don't run ruby (or rake for that matter) with '-w' (although I known I
probably should).
Is there a way of setting RedCloth's restrictions to false explicitly
somehow? They are set (to true) by passing appropriately named symbols
to RedCloth.new. So, if no restrictions are passed these instance
variables just won't come into exsitence.
Actually, I think that the warnings are a bit misleading here, as the
instance variables are set if they should be - and otherwise they just
don't exist (which is close enough to false or nil in this situation I
think).
Wading through all these 'false alarms' is a bit tedious, when looking
for the _real_ error messages.
Any help is greatly appreciated.
Happy rubying
Stephan
first of all thanks a lot for Rake and RedCloth, Jim and _why.
They are really a great help in my corrent work and a great pleasure to
work with.
However, I'm currently trying to figure out the answer to some questions:
- Why do I get the warnings mentioned below when using
Rake to build html files from RedCloth sources?
- Why do I get these warning in a non-Rake Ruby program
only when run with '-w' (display warnings)
- Where in Rake is '-w' set? Or, if it isn't set in Rake: Where
is it set?
I'm using Rake (version 0.4.0) (among other tasks) to 'compile' some
RedCloth (version 2.0.11) sources to html files.
Now, I'm a bit worried about the warnings from RedCloth - looking like this:
c:/ruby/lib/ruby/site_ruby/1.8/RedCloth.rb:719: warning: instance
variable @filter_html not initialized
c:/ruby/lib/ruby/site_ruby/1.8/RedCloth.rb:490: warning: instance
variable @fold_lines not initialized
c:/ruby/lib/ruby/site_ruby/1.8/RedCloth.rb:375: warning: instance
variable @filter_styles not initialized
I don't set any of the 'restrictions' mentioned in RedCloth's RDoc, and
I don't run ruby (or rake for that matter) with '-w' (although I known I
probably should).
Is there a way of setting RedCloth's restrictions to false explicitly
somehow? They are set (to true) by passing appropriately named symbols
to RedCloth.new. So, if no restrictions are passed these instance
variables just won't come into exsitence.
Actually, I think that the warnings are a bit misleading here, as the
instance variables are set if they should be - and otherwise they just
don't exist (which is close enough to false or nil in this situation I
think).
Wading through all these 'false alarms' is a bit tedious, when looking
for the _real_ error messages.
Any help is greatly appreciated.
Happy rubying
Stephan