On 5/7/07, Jim Weirich <[EMAIL PROTECTED]> wrote:
> Chad,
>
> Sorry for the late response ... things have finally slowed down a bit here.
>
> I've tried this on the platforms I have available (MacOS, Ubuntu) and
> don't see the same problem.
>
> By the error trace it seems that the program is aborting in the middle
> of the version comparison software (to_ints converts "1.2.3" to [1, 2,
> 3]).  Since the trace complains about a YAML object, I'm suspecting
> that the version data is somehow bogus.  The YAML data comes from the
> local source index cache, so maybe your source index cache is
> corrupted.  Try this:
>
> (1) Save your current source index cache somewhere.
> (2) Delete current source index cache.
> (3) Rerun gem list --remote (it will automatically regenerate the cache).
>
> If the problem goes away, then we can blame the cache.  At that point,
> I would like to see the file, so send me the file you saved in step 1
> above).
>
> If the problem persists, then it is something else ... and i'll have
> to think harder.
>
> -- Jim Weirich


OK, I just reproduced this on my mac and two linux boxes, all rubygems
0.9.2.  It did not occur on linux with rubygems 0.8.11.  One linux is
ruby 1.8.4, other linux and mac are 1.8.5.

Strangely, it was NOT occurring on the two linux boxes until I deleted
my source_cache.  Then, it started happening again after I deleted it.
 So, I can recreate the problem without any source_cache at all (list
--remote doesn't create it), on three different systems.

chadmac:/ woolley$ rm /usr/local/lib/ruby/gems/1.8/source_cache
rm: /usr/local/lib/ruby/gems/1.8/source_cache: No such file or directory
chadmac:/ woolley$ gem list activerecord --remote

*** REMOTE GEMS ***
ERROR:  While executing gem ... (NoMethodError)
    private method `scan' called for #<YAML::PrivateType:0x15e2594>

I have the source_cache from my mac, where it was occurring even
before I deleted the file, but is that still relevant, since I can
recreate it without any source_cache at all?

Thanks,
Chad
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to