2009-08-09 69 views
2

我無法在Textmate中查找Ruby的文檔。我安裝了Ruby 1.9.1到/ usr/local/bin目錄,但是當我用Ctrl+H使用Ruby包中我得到這個錯誤來查找一個字:來自Textmate的Ruby RI文檔查找

/Users/joshuaaburto/Library/Application Support/TextMate/Pristine Copy/Support/lib/web_preview.rb:101: warning: mismatched indentations at 'end' with 'if' at 98 /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:661:in initialize': Permission denied - /Users/joshuaaburto/.ri/cache/ActionController-Base (Errno::EACCES) from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:661:in open' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:661:in write_cache' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:507:in create_cache_for' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:469:in load_cache_for' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:648:in block (2 levels) in select_methods' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:647:in each' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:647:in grep' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:647:in block in select_methods' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:646:in each' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:646:in select_methods' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:624:in block in run' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:590:in each' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:590:in run' from /usr/local/lib/ruby/1.9.1/rdoc/ri/driver.rb:300:in run' from /usr/local/bin/ri:5:in '

誰能告訴我如何正確編輯RI權限或者爲了使用文檔功能而使用Ruby textmate捆綁軟件?

回答

0

縮進問題可以很容易地通過用空格替換那個'結束'詞前面的標籤符號來解決(匹配98行'if'的'縮進符號')。正如它所說的,編輯你的「/ Users/joshuaaburto/Library/Application Support/TextMate/Pristine Copy/Support/lib/web_preview.rb」文件,第101行。

但是,在那裏出現了另一個問題(至少對我來說):下一次調用文檔查找時,TextMate會「凍結」(按Ctrl-C釋放它)。在Ctrl-C「解凍」之後,TextMate說:「舊式plist解析器錯誤:第1行意外字符'0x300':/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:182

也許這是因爲我沒有可可用Ruby 1.9.1在這裏編譯或者什麼東西