Rake + gems + rdoc - broken?

Gems which previously used to install with rdocs (available via the gems
rdoc server) don’t seem to do so any more. And “rake rdoc” dies. Anyone
else
having similar behaviors?

Thanks.


C:\ruby\lib\ruby\gems\1.8\gems\wee-0.10.0>rake rdoc
(in C:/ruby/lib/ruby/gems/1.8/gems/wee-0.10.0)
rm -r doc/tmp

unrecognized option `–all --inline-source’

For help on options, try ‘rdoc --help’

rake aborted!
exit

(See full trace by running task with --trace)


C:\ruby\lib\ruby\gems\1.8\gems\wee-0.10.0>cd …\nitro-0.25.0

C:\ruby\lib\ruby\gems\1.8\gems\nitro-0.25.0>rake rdoc
(in C:/ruby/lib/ruby/gems/1.8/gems/nitro-0.25.0)
rm -r rdoc

unrecognized option `–all --inline-source’

For help on options, try ‘rdoc --help’

rake aborted!
exit

(See full trace by running task with --trace)

C:\ruby\lib\ruby\gems\1.8\gems\nitro-0.25.0>


With --trace

C:\ruby\lib\ruby\gems\1.8\gems\nitro-0.25.0>rake rdoc --trace
(in C:/ruby/lib/ruby/gems/1.8/gems/nitro-0.25.0)
** Invoke rdoc (first_time)
** Invoke rdoc/index.html (first_time)
** Invoke README (first_time, not_needed)
** Invoke INSTALL (first_time, not_needed)
** Invoke doc/RELEASES (first_time, not_needed)
** Invoke lib/nitro.rb (first_time, not_needed)
** Invoke lib/nitro/caching.rb (first_time, not_needed)
** Invoke lib/nitro/cgi.rb (first_time, not_needed)
** Invoke lib/nitro/compiler.rb (first_time, not_needed)
** Invoke lib/nitro/context.rb (first_time, not_needed)
** Invoke lib/nitro/controller.rb (first_time, not_needed)
** Invoke lib/nitro/dispatcher.rb (first_time, not_needed)
** Invoke lib/nitro/element.rb (first_time, not_needed)
** Invoke lib/nitro/flash.rb (first_time, not_needed)
** Invoke lib/nitro/helper.rb (first_time, not_needed)
** Invoke lib/nitro/render.rb (first_time, not_needed)
** Invoke lib/nitro/routing.rb (first_time, not_needed)
** Invoke lib/nitro/scaffold.rb (first_time, not_needed)
** Invoke lib/nitro/server.rb (first_time, not_needed)
** Invoke lib/nitro/service.rb (first_time, not_needed)
** Invoke lib/nitro/session.rb (first_time, not_needed)
** Invoke lib/nitro/test.rb (first_time, not_needed)
** Invoke lib/nitro/adapter/cgi.rb (first_time, not_needed)
** Invoke lib/nitro/adapter/fastcgi.rb (first_time, not_needed)
** Invoke lib/nitro/adapter/scgi.rb (first_time, not_needed)
** Invoke lib/nitro/adapter/webrick.rb (first_time, not_needed)
** Invoke lib/nitro/adapter/wee.rb (first_time, not_needed)
** Invoke lib/nitro/caching/actions.rb (first_time, not_needed)
** Invoke lib/nitro/caching/fragments.rb (first_time, not_needed)
** Invoke lib/nitro/caching/invalidation.rb (first_time, not_needed)
** Invoke lib/nitro/caching/output.rb (first_time, not_needed)
** Invoke lib/nitro/caching/stores.rb (first_time, not_needed)
** Invoke lib/nitro/cgi/cookie.rb (first_time, not_needed)
** Invoke lib/nitro/cgi/http.rb (first_time, not_needed)
** Invoke lib/nitro/cgi/request.rb (first_time, not_needed)
** Invoke lib/nitro/cgi/response.rb (first_time, not_needed)
** Invoke lib/nitro/cgi/stream.rb (first_time, not_needed)
** Invoke lib/nitro/cgi/utils.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/css.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/elements.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/errors.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/include.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/localization.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/markup.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/morphing.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/shaders.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/squeeze.rb (first_time, not_needed)
** Invoke lib/nitro/compiler/xslt.rb (first_time, not_needed)
** Invoke lib/nitro/dispatcher/general.rb (first_time, not_needed)
** Invoke lib/nitro/dispatcher/nice.rb (first_time, not_needed)
** Invoke lib/nitro/element/java_script.rb (first_time, not_needed)
** Invoke lib/nitro/helper/benchmark.rb (first_time, not_needed)
** Invoke lib/nitro/helper/buffer.rb (first_time, not_needed)
** Invoke lib/nitro/helper/debug.rb (first_time, not_needed)
** Invoke lib/nitro/helper/default.rb (first_time, not_needed)
** Invoke lib/nitro/helper/form.rb (first_time, not_needed)
** Invoke lib/nitro/helper/javascript.rb (first_time, not_needed)
** Invoke lib/nitro/helper/pager.rb (first_time, not_needed)
** Invoke lib/nitro/helper/rss.rb (first_time, not_needed)
** Invoke lib/nitro/helper/table.rb (first_time, not_needed)
** Invoke lib/nitro/helper/xhtml.rb (first_time, not_needed)
** Invoke lib/nitro/helper/xml.rb (first_time, not_needed)
** Invoke lib/nitro/scaffold/relations.rb (first_time, not_needed)
** Invoke lib/nitro/server/runner.rb (first_time, not_needed)
** Invoke lib/nitro/service/xmlrpc.rb (first_time, not_needed)
** Invoke lib/nitro/session/drb.rb (first_time, not_needed)
** Invoke lib/nitro/session/drbserver.rb (first_time, not_needed)
** Invoke lib/nitro/session/file.rb (first_time, not_needed)
** Invoke lib/nitro/session/memory.rb (first_time, not_needed)
** Invoke lib/nitro/test/assertions.rb (first_time, not_needed)
** Invoke lib/nitro/test/context.rb (first_time, not_needed)
** Invoke lib/nitro/test/testcase.rb (first_time, not_needed)
** Invoke rakefile (first_time, not_needed)
** Execute rdoc/index.html
rm -r rdoc

unrecognized option `–all --inline-source’

For help on options, try ‘rdoc --help’

rake aborted!
exit
c:/ruby/lib/ruby/1.8/rdoc/options.rb:260:in exit' c:/ruby/lib/ruby/1.8/rdoc/options.rb:260:inerror’
c:/ruby/lib/ruby/1.8/rdoc/options.rb:496:in parse' c:/ruby/lib/ruby/1.8/rdoc/rdoc.rb:238:indocument’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake/rdoctask.rb:113:in
define' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake/rdoctask.rb:105:incall’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:227:in
execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:227:ineach’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:227:in
execute' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:197:ininvoke’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:190:in
synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:190:ininvoke’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:204:in
invoke_prerequisites' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:203:ineach’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:828:in send' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:828:ineach’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:203:in
invoke_prerequisites' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:196:ininvoke’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:190:in
synchronize' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:190:ininvoke’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:1673:in run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:1673:ineach’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:1673:in run' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/bin/rake:7 c:/ruby/bin/rake:18:inload’
c:/ruby/bin/rake:18

C:\ruby\lib\ruby\gems\1.8\gems\nitro-0.25.0>

On Saturday 26 November 2005 17:32, itsme213 wrote:

Gems which previously used to install with rdocs (available via the
gems rdoc server) don’t seem to do so any more. And “rake rdoc”
dies. Anyone else having similar behaviors?

Thanks.

[…]

rake aborted!
exit

(See full trace by running task with --trace)

C:\ruby\lib\ruby\gems\1.8\gems\nitro-0.25.0>

The problem is a combination of rake 0.6.99.2 and nito’s Rakefile.
The line

  rd.options << '--all --inline-source'

should be changed to

  rd.options << '--all' << '--inline-source'

Explanation:
Options is an array, and each element is interpreted as a single
argument to rdoc. It was no problem with later rake versions,
since then rake joined all options together to a single space
seperated string anyway and invoked rdoc via shell.
Latest rake (0.6.99.2) invokes rdoc programmatically and so rdoc
gets the argument “–all --inline-source” which is interpreted
as a single (unknown) option.

Regards,
Stefan

Thanks a whole bunch, Stefan!

Gosh, could you and Jim get together and merge the best of rake and
rant?

“Stefan L.” [email protected] wrote in message
news:[email protected]

Well, that certainly helped upto a point. It gets further before it dies
with slightly different NIL errors, for at least 2 separate rdoc tasks.

---- Nitro —

C:\ruby\lib\ruby\gems\1.8\gems\nitro-0.25.0>rake rdoc
(in C:/ruby/lib/ruby/gems/1.8/gems/nitro-0.25.0)
rm -r rdoc

                         README:
                        INSTALL:
                       RELEASES:
                       nitro.rb: mm.
                     caching.rb: mm...
                         cgi.rb: mc......c
                    compiler.rb: mc.....c..
                     context.rb: mc......
                  controller.rb: mm........c
                  dispatcher.rb: mc......
                     element.rb: mc.......c.c
                       flash.rb: mm.c......c...
                      helper.rb: mmm...
                      render.rb: mcccm.............c.
                     routing.rb: mm.
                    scaffold.rb: mm....m.
                      server.rb: mc......c
                     service.rb: mc.
                     session.rb: mcc..........
                        test.rb:
                         cgi.rb: mc.
                     fastcgi.rb: mc.
                        scgi.rb: mc..c...c.....c.........
                     webrick.rb: mcc...c.c.....
                         wee.rb: mm.c
                     actions.rb: mmm.m..
                   fragments.rb: mmm........
                invalidation.rb: mmm.m
                      output.rb: mmm.m......
                      stores.rb: mmc...c.....cc
                      cookie.rb: mc....
                        http.rb: mm
                     request.rb: mm.........................
                    response.rb: mm...
                      stream.rb: mm.
                       utils.rb: mm......
                         css.rb:
                    elements.rb:
                      errors.rb: mc....c
                     include.rb: mc.
                localization.rb: mcc.
                      markup.rb: mm.
                    morphing.rb: mcc.
                     shaders.rb: mc....c..c...c.c.c.
                     squeeze.rb: mc.
                        xslt.rb: mcc...
                     general.rb: mc.
                        nice.rb: mc.
                 java_script.rb: c.
                   benchmark.rb: mm.
                      buffer.rb: mm.....
                       debug.rb: mm.
                     default.rb: mm
                        form.rb: mm....................
                  javascript.rb: mm.................
                       pager.rb: mc...................m.
                         rss.rb: mm.
                       table.rb: mm..
                       xhtml.rb: mm........
                         xml.rb: mm......c...
                   relations.rb: mm...
                      runner.rb: mc.........
                      xmlrpc.rb: mm..c
                         drb.rb: mc
                   drbserver.rb: c..
                        file.rb: mc...
                      memory.rb: m
                  assertions.rb: m.................
                     context.rb: mmm....c.
                    testcase.rb: mc..

Generating HTML…
c:/ruby/lib/ruby/1.8/rdoc/markup/simple_markup/fragments.rb:291:
warning:
Object#type is deprecated;
use Object#class
rake aborted!
undefined method `level’ for nil:NilClass

(See full trace by running task with --trace)

----- AND WEE -----

C:\ruby\lib\ruby\gems\1.8\gems\wee-0.10.0>rake rdoc
(in C:/ruby/lib/ruby/gems/1.8/gems/wee-0.10.0)
rm -r doc/tmp

                         wee.rb: mm.
                       cache.rb: m.cccc....c.....cc....cc....c.....
             abstractsession.rb: c...........
                 application.rb: c..........
                  components.rb:
                continuation.rb:
                        core.rb: m
                    core_ext.rb: c.........
                    pageless.rb:
                     request.rb: c.........
              requesthandler.rb: c.....
                    response.rb: c......c.c.c.c..
                     session.rb: c..............
                snapshot_ext.rb: c..m..cccc..
                    template.rb: c.
                       utils.rb: m
                     fastcgi.rb: c..
                       nitro.rb: c...c.cmc.c..m...m........
                       rails.rb: c...c.cmc.c..m...m........c
                     webrick.rb: c......
        component_dispatcher.rb: c......
             form_decoration.rb: c.
            login_decoration.rb: c.....
                  messagebox.rb: c..
                       pager.rb: c..............
             page_decoration.rb: c...
          wrapper_decoration.rb: c.
                     session.rb: c.c..
                   component.rb: c.
                    callback.rb: c......c...c..
                   component.rb: c................c..
             componentrunner.rb: c.....
                     context.rb: c.c....
                  decoration.rb: c......c....c.
                       idgen.rb: c.
                        page.rb: c
                   presenter.rb: c........
                    renderer.rb: c..
                    snapshot.rb: c...
                 valueholder.rb: c...
                          og.rb:
                 application.rb: c
              old_scaffolder.rb: c.........
                  scaffolder.rb: 

c…c…
session.rb: c…
calculator.rb: c…
counter.rb: c…
editable_counter.rb: c…
window.rb: c…
md5.rb: c…
sequential.rb: c…
application.rb: c.
request.rb: c…
session.rb: c…
brushes.rb:
mc…cc…c…cc…c.c…c.c.c…c…c…c.c…c…c.c.
c.c.c…c.c.c.c…c.c.c…c…c…
canvas.rb:
mm…c…
writer.rb: c…
run.rb:
main.rb: c…
db.rb:
recipe.rb: c
run.rb:
main.rb: c…
autoreload.rb: m…
cache.rb: c.
helper.rb: m.
README:
INSTALL:
Generating HTML…

Files: 68
Classes: 117
Modules: 17
Methods: 460
Elapsed: 13.069s
cpdup -o doc/tmp doc/rdoc
rake aborted!
undefined method `exitstatus’ for nil:NilClass
C:/ruby/lib/ruby/gems/1.8/gems/wee-0.10.0/rakefile:12
(See full trace by running task with --trace)

C:\ruby\lib\ruby\gems\1.8\gems\wee-0.10.0>

---- WEE with --trace turned ou

C:\ruby\lib\ruby\gems\1.8\gems\wee-0.10.0>rake rdoc --trace
(in C:/ruby/lib/ruby/gems/1.8/gems/wee-0.10.0)
** Invoke rdoc (first_time)
** Invoke doc/tmp/index.html (first_time, not_needed)
** Invoke lib/wee.rb (first_time, not_needed)
** Invoke lib/cache/cache.rb (first_time, not_needed)
** Invoke lib/wee/abstractsession.rb (first_time, not_needed)
** Invoke lib/wee/application.rb (first_time, not_needed)
** Invoke lib/wee/components.rb (first_time, not_needed)
** Invoke lib/wee/continuation.rb (first_time, not_needed)
** Invoke lib/wee/core.rb (first_time, not_needed)
** Invoke lib/wee/core_ext.rb (first_time, not_needed)
** Invoke lib/wee/pageless.rb (first_time, not_needed)
** Invoke lib/wee/request.rb (first_time, not_needed)
** Invoke lib/wee/requesthandler.rb (first_time, not_needed)
** Invoke lib/wee/response.rb (first_time, not_needed)
** Invoke lib/wee/session.rb (first_time, not_needed)
** Invoke lib/wee/snapshot_ext.rb (first_time, not_needed)
** Invoke lib/wee/template.rb (first_time, not_needed)
** Invoke lib/wee/utils.rb (first_time, not_needed)
** Invoke lib/wee/adaptors/fastcgi.rb (first_time, not_needed)
** Invoke lib/wee/adaptors/nitro.rb (first_time, not_needed)
** Invoke lib/wee/adaptors/rails.rb (first_time, not_needed)
** Invoke lib/wee/adaptors/webrick.rb (first_time, not_needed)
** Invoke lib/wee/components/component_dispatcher.rb (first_time,
not_needed)
** Invoke lib/wee/components/form_decoration.rb (first_time, not_needed)
** Invoke lib/wee/components/login_decoration.rb (first_time,
not_needed)
** Invoke lib/wee/components/messagebox.rb (first_time, not_needed)
** Invoke lib/wee/components/pager.rb (first_time, not_needed)
** Invoke lib/wee/components/page_decoration.rb (first_time, not_needed)
** Invoke lib/wee/components/wrapper_decoration.rb (first_time,
not_needed)
** Invoke lib/wee/continuation/session.rb (first_time, not_needed)
** Invoke lib/wee/continuation/core/component.rb (first_time,
not_needed)
** Invoke lib/wee/core/callback.rb (first_time, not_needed)
** Invoke lib/wee/core/component.rb (first_time, not_needed)
** Invoke lib/wee/core/componentrunner.rb (first_time, not_needed)
** Invoke lib/wee/core/context.rb (first_time, not_needed)
** Invoke lib/wee/core/decoration.rb (first_time, not_needed)
** Invoke lib/wee/core/idgen.rb (first_time, not_needed)
** Invoke lib/wee/core/page.rb (first_time, not_needed)
** Invoke lib/wee/core/presenter.rb (first_time, not_needed)
** Invoke lib/wee/core/renderer.rb (first_time, not_needed)
** Invoke lib/wee/core/snapshot.rb (first_time, not_needed)
** Invoke lib/wee/core/valueholder.rb (first_time, not_needed)
** Invoke lib/wee/databases/og.rb (first_time, not_needed)
** Invoke lib/wee/databases/og/application.rb (first_time, not_needed)
** Invoke lib/wee/databases/og/old_scaffolder.rb (first_time,
not_needed)
** Invoke lib/wee/databases/og/scaffolder.rb (first_time, not_needed)
** Invoke lib/wee/databases/og/session.rb (first_time, not_needed)
** Invoke lib/wee/examples/calculator.rb (first_time, not_needed)
** Invoke lib/wee/examples/counter.rb (first_time, not_needed)
** Invoke lib/wee/examples/editable_counter.rb (first_time, not_needed)
** Invoke lib/wee/examples/window.rb (first_time, not_needed)
** Invoke lib/wee/idgen/md5.rb (first_time, not_needed)
** Invoke lib/wee/idgen/sequential.rb (first_time, not_needed)
** Invoke lib/wee/pageless/application.rb (first_time, not_needed)
** Invoke lib/wee/pageless/request.rb (first_time, not_needed)
** Invoke lib/wee/pageless/session.rb (first_time, not_needed)
** Invoke lib/wee/renderer/html/brushes.rb (first_time, not_needed)
** Invoke lib/wee/renderer/html/canvas.rb (first_time, not_needed)
** Invoke lib/wee/renderer/html/writer.rb (first_time, not_needed)
** Invoke lib/wee/skeleton/og/run.rb (first_time, not_needed)
** Invoke lib/wee/skeleton/og/components/main.rb (first_time,
not_needed)
** Invoke lib/wee/skeleton/og/conf/db.rb (first_time, not_needed)
** Invoke lib/wee/skeleton/og/models/recipe.rb (first_time, not_needed)
** Invoke lib/wee/skeleton/simple/run.rb (first_time, not_needed)
** Invoke lib/wee/skeleton/simple/components/main.rb (first_time,
not_needed)
** Invoke lib/wee/utils/autoreload.rb (first_time, not_needed)
** Invoke lib/wee/utils/cache.rb (first_time, not_needed)
** Invoke lib/wee/utils/helper.rb (first_time, not_needed)
** Invoke README (first_time, not_needed)
** Invoke INSTALL (first_time, not_needed)
** Invoke rakefile (first_time, not_needed)
** Execute rdoc
cpdup -o doc/tmp doc/rdoc
rake aborted!
undefined method exitstatus' for nil:NilClass c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:551:insh’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:550:in call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:558:insh’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:641:in sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:636:insh’
C:/ruby/lib/ruby/gems/1.8/gems/wee-0.10.0/rakefile:12
C:/ruby/lib/ruby/gems/1.8/gems/wee-0.10.0/rakefile:11:in call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:227:inexecute’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:227:in each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:227:inexecute’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:197:in invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:190:insynchronize’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:190:in invoke' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:1673:inrun’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:1673:in each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/lib/rake.rb:1673:inrun’
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.6.99.2/bin/rake:7
c:/ruby/bin/rake:18:in `load’
c:/ruby/bin/rake:18

C:\ruby\lib\ruby\gems\1.8\gems\wee-0.10.0>


“Stefan L.” [email protected] wrote in message
news:[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs