[#40961] [Bug #3137] complex.rb changes exceptions of Math — Yusuke Endoh <redmine@...>

Bug #3137: complex.rb changes exceptions of Math

15 messages 2010/04/12

[#41038] Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...>

こんにちは!アーロンです。

17 messages 2010/04/22
[#41039] Re: Windows と DL が使用条件の libffi — "U.Nakamura" <usa@...> 2010/04/22

こんにちは、なかむら(う)です。

[#41040] Re: Windows と DL が使用条件の libffi — "NARUSE, Yui" <naruse@...> 2010/04/22

成瀬です。

[#41059] Re: Windows と DL が使用条件の libffi — Aaron Patterson <aaron.patterson@...> 2010/04/26

2010/4/21 NARUSE, Yui <naruse@airemix.jp>:

[#41060] Re: Windows と DL が使用条件の libffi — Yugui <yugui@...> 2010/04/26

2010/4/26 Aaron Patterson <aaron.patterson@gmail.com>:

[#41067] [Feature #3203] LazySweepGC patch — Narihiro Nakamura <redmine@...>

Feature #3203: LazySweepGC patch

15 messages 2010/04/26
[#41069] Re: [Feature #3203] LazySweepGC patch — Yusuke ENDOH <mame@...> 2010/04/27

遠藤です。

[#41104] Rails3 M17N — Yukihiro Matsumoto <matz@...>

まつもと ゆきひろです

29 messages 2010/04/30
[#41111] Re: Rails3 M17N — Urabe Shyouhei <shyouhei@...> 2010/04/30

Yukihiro Matsumoto さんは書きました:

[#41113] Re: Rails3 M17N — Yukihiro Matsumoto <matz@...> 2010/04/30

まつもと ゆきひろです

[ruby-dev:40953] [Bug #3126] irb/completionでTypeError

From: Kazuhiro NISHIYAMA <redmine@...>
Date: 2010-04-11 02:34:37 UTC
List: ruby-dev #40953
Bug #3126: irb/completionでTypeError
http://redmine.ruby-lang.org/issues/show/3126

起票者: Kazuhiro NISHIYAMA
ステータス: Open, 優先度: Normal
担当者: Keiju Ishitsuka, カテゴリ: lib, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2010-04-10 trunk 27284) [x86_64-linux]

irb/completion を読み込んでいると「a.」や「C::」などの後にタブキーを押すと
.../irb/completion.rb:137:in `quote': can't convert NilClass to String (TypeError)
や
.../irb/completion.rb:87:in `quote': can't convert NilClass to String (TypeError)
で終了してしまいます。

以下の修正で直るようです。

diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index a345c23..e059bc4 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -81,10 +81,10 @@ module IRB
 	candidates.grep(/^#{receiver}/).collect{|e| "::" + e}
 
 #      when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/
-      when /^([A-Z].*)::([^:.]+)*$/
+      when /^([A-Z].*)::([^:.]*)$/
 	# Constant or class methods
 	receiver = $1
-	message = Regexp.quote($4)
+	message = Regexp.quote($2)
 	begin
 	  candidates = eval("#{receiver}.constants.collect{|m| m.to_s}", bind)
 	  candidates |= eval("#{receiver}.methods.collect{|m| m.to_s}", bind)
@@ -134,7 +134,7 @@ module IRB
       when /^([^."].*)\.([^.]*)$/
 	# variable
 	receiver = $1
-	message = Regexp.quote($3)
+	message = Regexp.quote($2)
 
 	gv = eval("global_variables", bind).collect{|m| m.to_s}
 	lv = eval("local_variables", bind).collect{|m| m.to_s}


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next