Bugs: Browse | Submit New | Admin

[#28637] Chokes on missing yaml file

Date:
2010-10-11 13:26
Priority:
3
Submitted By:
Daniel Berger (djberg96)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Chokes on missing yaml file

Detailed description
Ruby 1.8.7 (REE)
Snow Leopard

I fired up fastri-server, and then tried to run "fri -e Module", but hit this error:

dberger@globe-madison ~>fri -e Module
(druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_index.rb:354:in `initialize':
No such file or directory - /opt/ree/lib/ruby/gems/1.8/doc/activesupport-3.0.0/ri/Module/cdesc-Module.yaml
(Errno::ENOENT)
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_index.rb:354:in `open'
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_index.rb:354:in
`get_class'
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_index.rb:352:in `each'
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_index.rb:352:in
`get_class'
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_service.rb:209:in `info'
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_service.rb:422:in
`capture_stdout'
	from (druby://127.0.0.1:52736) /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/lib/fastri/ri_service.rb:208:in `info'
	from /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/bin/fri:342
	from /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/bin/fri:337:in `each'
	from /opt/ree/lib/ruby/gems/1.8/gems/fastri-0.3.1.1/bin/fri:337
	from /opt/ree/bin/fri:19:in `load'
	from /opt/ree/bin/fri:19

Suggestions?

Dan

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-01-15 04:53
Sender: Stephen Gustafson

Confirming this bug on Gentoo with Ruby 1.8
From what I can tell, here's what seems to be the issue:

RDoc 1.0.1 comes as part of the standard ruby distribtuion
This version of rdoc is ancient, so I've installed the latest
rdoc (3.4) from rubygems.

At this point, since I have the latest rdoc installed, all of
my rdoc caches are generated using the new .ri format that's
not at all compatible with earlier rdoc versions. And ri/rdoc
itself works just fine.

The problem comes in that fastri seems to be avoiding requiring
rubygems in order to get a 100ms speedup. So when fastri requires
rdoc libs, it's loading the ancient rdoc 1.0.1 from the standard
distribution, instead of the rdoc lib from ruby gems. The old
rdoc of course expects .yaml files instead of the new .ri format,
giving us these errors.

So if we're going to skip loading rubygems, it seems like we
need an alternate way of pointing to the correct version of rdoc.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item