ruby-reference-manual:709
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Thu, 21 Feb 2008 18:07:57 +0900
Subject: [ruby-reference-manual:709] refe2でmust not happen
西山和広です。 SystemCallErrorを探そうとして、ちょっと間違えてしまっていたら must not happenという例外になりました。 C:\rubyrefm>refe-1_8_6.cmd Sysca ./bitclust/lib/bitclust/nameutils.rb:190:in `typechar2mark': must not happen: "" (RuntimeError) from ./bitclust/lib/bitclust/nameutils.rb:99:in `methodid2typemark' from ./bitclust/lib/bitclust/entry.rb:835:in `typemark' from ./bitclust/lib/bitclust/methodid.rb:109:in `match?' from ./bitclust/lib/bitclust/entry.rb:677:in `get_method' from ./bitclust/lib/bitclust/database.rb:307:in `detect' from ./bitclust/lib/bitclust/entry.rb:677:in `each' from ./bitclust/lib/bitclust/entry.rb:677:in `detect' from ./bitclust/lib/bitclust/entry.rb:677:in `get_method' ... 7 levels... from ./bitclust/lib/bitclust/searcher.rb:93:in `exec' from bitclust/bin/refe.rb:16:in `_main' from bitclust/bin/refe.rb:8:in `main' from bitclust/bin/refe.rb:26 C:\rubyrefm>type refe-1_8_6.cmd @echo off pushd "%~dp0" ruby -Ke -I bitclust/lib bitclust/bin/refe.rb -d db-1_8_6 -e sjis %* popd C:\rubyrefm> Linux上でも試してみたら別の例外になりました。 % ruby18 -I bitclust/lib bitclust/bin/refe.rb -d db-1_8_6 Sysca ./bitclust/lib/bitclust/searcher.rb:394:in `describe_method': undefined method `library' for nil:NilClass (NoMethodError) from ./bitclust/lib/bitclust/searcher.rb:329:in `show_method' from ./bitclust/lib/bitclust/searcher.rb:232:in `find_method' from ./bitclust/lib/bitclust/searcher.rb:256:in `find_class_or_method' from ./bitclust/lib/bitclust/searcher.rb:209:in `search_pattern' from ./bitclust/lib/bitclust/searcher.rb:93:in `exec' from bitclust/bin/refe.rb:16:in `_main' from bitclust/bin/refe.rb:8:in `main' from bitclust/bin/refe.rb:26 % すぐには調べられそうにないのでとりあえず報告だけ。 -- |ZnZ(ゼット エヌ ゼット) |西山和広(Kazuhiro NISHIYAMA) -- ML: ruby-reference-manual@m... 使い方: http://QuickML.com/