Piergiuliano Bossi
1/19/2005 5:12:00 PM
Hello, just a brief note in order to detail it a little bit more.
I have 2 machines, both with Win2000 PRO, SP4.
The former has ruby 1.8.2-RC10 (I guess, not final). In any case:
C:\>ruby -v
ruby 1.8.2 (2004-11-06) [i386-mswin32]
Under this platform, error is found by loadpath_manager in rubygems:
irb(main):001:0> "".help
NoMethodError: undefined method `help' for "":String
from (irb):1
from
c:/apps/ruby18/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5
Please note that I have installed at least 1 gem (extensions).
The latter has a fresh ruby 1.8.2 installation:
C:\>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]
As you can see error here is found by a different source:
irb(main):001:0> "".help
NoMethodError: undefined method `help' for "":String
from (irb):1
from c:/apps/ruby18/lib/ruby/1.8/yaml/rubytypes.rb:2
I don't know if it matters, though.
Thanks anyway, I like it.
Giuliano
Ilmari Heikkinen wrote:
>
> On 18.1.2005, at 14:56, Piergiuliano Bossi wrote:
>
>> Ilmari Heikkinen wrote:
>>
>>> If you think it makes the irb startup too slow, load it in a thread:
>>> Thread.new{ require 'ihelp' }
>>> But note that calling help will fail before it's completely loaded.
>>
>>
>> Sorry, but loading it in a separate thread doesn't work under windows
>> (neither 0.1):
>>
>> [snip]
>> Note that I have only
>> Thread.new { require 'ihelp' }
>> in .irbrc therefore 9 minutes should be enough to load, shouldn't
>> they? :)
>>
>
> Yes it definitely should.
> I don't know why it doesn't work, sorry :(
>
> I wonder why it doesn't work... Guess I'll boot to windows tomorrow and
> find out.
> Better not load it in a thread for the time being ;)
>
>> Btw, which differences since 0.1 apart from setup?
>>
>
> Not much external changes, apart from working around that TypeError
> exception ri started raising in 1.8.2.
>
> Refactored code, changed the name, rewrote documentation, added tests,
> fixed bugs.
>
> Now I have 0.3.0 candidate in the darcs repo, which separates the code
> more from the ri cmdline tool and has changable help renderers. I have a
> simple alternative handler there that opens the ruby-doc.org class doc
> in a web browser (on osx), it merely grabs the class name and puts it in
> the url, calls the osx `open`-cmd, and is around 5 lines of code.
>
> --
> Ilmari Heikkinen (is going through version numbers way too fast)
>
>
>
--
If you want to send me an email address should be 'p', then a dot,
followed by 'bossi' at 'quinary', another dot and 'com' at last