On Sat, Nov 11, 2006 at 11:18:53AM +0900, Pe, Botp wrote:
> # Here's case-independent, nested, partial matching at work:
> # 
> # $ fri writer.rend
> # ----------------------------------------------------- 
> # PDF::Writer#render
> #      render(debug = false)
> # --------------------------------------------------------------
> # ----------
> #      Return the PDF stream as a string.
> 
> tried it on my win box, and yes! it works! very fast yet cool indeed.
> 
> btw, Mauricio, how do i troubleshoot the fri? is there a log somewhere? 

Not right now, but it will be added (we really want this if fastri-server is
to run as a daemon).

> I have a problem with one of my linux box running ubuntu6.10, ruby1.8.5,
> gem0.9, and rails1.1.6. The install went fine, the fri server is running,
> but when i query thru fri, eg fri String#upcase, the result returns nil; in
> fact, all queries returns nil. tips again, pls =)

hmm  I guess that you're getting a RiError for some reason; this might tell us
what's happening:


diff -rN -u old-0.1/lib/fastri/ri_service.rb new-0.1/lib/fastri/ri_service.rb --- old-0.1/lib/fastri/ri_service.rb 2006-11-11 23:13:38.000000000 +0100 +++ new-0.1/lib/fastri/ri_service.rb 2006-11-11 23:13:38.000000000 +0100 @@ -220,6 +220,8 @@ end end rescue RiError + puts "RiError: #{$!.message}" + puts $!.backtrace return nil end
Does fri --show-matches Array# return anything? (if it does, the problem lies in the processing of the descriptions, not in the lookup). Also, you might want to take a look at the index (~/.fastri-index by default) to verify that it's not empty (it's a Marshal serialization but it's easy to spot), or run fastri-server -b to rebuild the index and see if it found any methods/classes/modules: $ fastri-server -b Indexing RI docs for ParseTree version 1.5.0. [...] Indexing RI docs for tidy version 1.1.2. Indexing RI docs for transaction-simple version 1.3.0. Building index. Indexed: * 11201 methods * 2304 classes/modules Needed 6.926496 seconds > also, > :~# fastri-server > Looking for Ring server... > No Ring server found, starting my own. > fastri-server 0.0.1 (FastRI 0.1.1) listening on druby://127.0.0.1:34136 > -------------->^^^^^^^ > > How do i make the fastri fixed to a certain port, say 12345? we're using > firewalls, so the concern.. I'll implement this. Note that you'll also have to open the port used by the Rinda Ring (7647). cheers, -- Mauricio Fernandez - http://eigenclass.org - singular Ruby