Skip to content

rake doc:rails not working under Windows7 #10382

Closed
DHB opened this Issue Apr 30, 2013 · 4 comments

3 participants

@DHB
DHB commented Apr 30, 2013

Environment:

$ ruby -v && bundle -v && gem -v && rails -v
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
Bundler version 1.3.5
2.0.3
Rails 4.0.0.rc1

Test case:

$ rake doc:rails
DL is deprecated, please use Fiddle
Parsing sources...
100% [724/724]  ...2.0.0/gems/railties-4.0.0.rc1/lib/rails/welcome_controller.rb

Generating SDoc format into h:/workspace3/doc-test/doc/api...
rake aborted!
Invalid argument - h:/workspace3/doc-test/doc/api/files/h:

Tasks: TOP => doc:rails => html/index.html
(See full trace by running task with --trace)

The above works without any problem on my Ubuntu (staging) box.
Ubuntu 12.01 LTS

@sikachu
Ruby on Rails member
sikachu commented Apr 30, 2013

Can you re-run the command with --trace and post the output here?

@DHB
DHB commented Apr 30, 2013

sure .. here it is:

$ rake doc:rails --trace
DL is deprecated, please use Fiddle
** Invoke doc:rails (first_time)
** Invoke html/index.html (first_time)
** Invoke rakefile (first_time, not_needed)
** Execute html/index.html
rdoc -m h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/RDOC_MAIN.rdoc -e UTF-8 -f sdoc -T rails -o doc/api --title Ruby on Rails
API h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/RDOC_MAIN.rdoc h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/
README.rdoc h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/CHANGELOG.md h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport
-4.0.0.rc1/lib/active_support/all.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/backtrace_cleaner.rb
h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/basic_object.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/act
ivesupport-4.0.0.rc1/lib/active_support/benchmarkable.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/b
uffered_logger.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/builder.rb h:/Ruby200_p0/lib/ruby/gems/2
.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/cache.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_supp
ort/cache/file_store.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/cache/mem_cache_store.rb h:/Ruby20
0_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/cache/memory_store.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/active
support-4.0.0.rc1/lib/active_support/cache/null_store.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/c
ache/strategy/local_cache.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/callbacks.rb h:/Ruby200_p0/li
b/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/concern.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/
lib/active_support/concurrency/latch.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/configurable.rb h:
/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesup
port-4.0.0.rc1/lib/active_support/core_ext/array.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_e
xt/array/access.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/array/conversions.rb h:/Ruby20
0_p0/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/array/extract_options.rb h:/Ruby200_p0/lib/ruby/gems/2.0.0

[..]
[..]

H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/test_unit/model/model_generator.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/test_
unit/model/templates/unit_test.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/test_unit/plugin/plugin_generator.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.
0.0.rc1/lib/rails/generators/test_unit/plugin/templates/test_helper.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb H:/Ruby20
0_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/test_unit/scaffold/templates/functional_test.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/tes
ting/assertions.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/testing/behaviour.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/generators/te
sting/setup_and_teardown.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/info.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/info_controller.rb H:/Ruby20
0_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/initializable.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/paths.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties
-4.0.0.rc1/lib/rails/rack.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/rack/debugger.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/rack/log_tailer.rb
 H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/rack/logger.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/railtie.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gem
s/railties-4.0.0.rc1/lib/rails/railtie/configurable.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/railtie/configuration.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.
0.rc1/lib/rails/ruby_version_check.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/rubyprof_ext.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/source_ann
otation_extractor.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/tasks.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/test_help.rb H:/Ruby200_p0/lib/rub
y/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/test_unit/railtie.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/test_unit/sub_test_task.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gem
s/railties-4.0.0.rc1/lib/rails/version.rb H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc1/lib/rails/welcome_controller.rb
Parsing sources...
100% [724/724]  ...2.0.0/gems/railties-4.0.0.rc1/lib/rails/welcome_controller.rb

Generating SDoc format into H:/workspace3/doc-test/doc/api...
rake aborted!
Invalid argument - H:/workspace3/doc-test/doc/api/files/H:
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:323:in `mkdir'
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:323:in `fu_mkdir'
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:298:in `block (2 levels) in mkdir_p'
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:296:in `reverse_each'
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:296:in `block in mkdir_p'
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:282:in `each'
H:/Ruby200_p0/lib/ruby/2.0.0/fileutils.rb:282:in `mkdir_p'
H:/Ruby200_p0/lib/ruby/2.0.0/pathname.rb:556:in `mkpath'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/sdoc-0.3.20/lib/sdoc/templatable.rb:51:in `render_template'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/sdoc-0.3.20/lib/sdoc/generator.rb:324:in `block in generate_file_files'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/sdoc-0.3.20/lib/sdoc/generator.rb:318:in `each'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/sdoc-0.3.20/lib/sdoc/generator.rb:318:in `generate_file_files'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/sdoc-0.3.20/lib/sdoc/generator.rb:173:in `generate'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:493:in `block in generate'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:488:in `chdir'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:488:in `generate'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:471:in `document'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rdoc-3.12.2/lib/rdoc/task.rb:247:in `block in define'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `call'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `each'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain'
H:/Ruby200_p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:205:in `block in invoke_prerequisites'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:203:in `each'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:203:in `invoke_prerequisites'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:183:in `block in invoke_with_call_chain'
H:/Ruby200_p0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `each'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
H:/Ruby200_p0/lib/ruby/gems/2.0.0/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
H:/Ruby200_p0/bin/rake:23:in `load'
H:/Ruby200_p0/bin/rake:23:in `<main>'
Tasks: TOP => doc:rails => html/index.html
@DHB
DHB commented Jun 6, 2013

Please disregard and CLOSE this issue.

My bad. Sorry, I erroneously posted the issue here by not knowing any better before.

The issue is related to sdoc. I will open an issue in the sdoc group and propose a quick hack/fix.

@fxn
Ruby on Rails member
fxn commented Jun 6, 2013

Excellent, thanks @DHB.

@fxn fxn closed this Jun 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.