Open sorah opened 14 years ago
問題が2つあって:
このうち2について、上のログではException#backtraceの値が "/Users/sorah/git/ruby/termtter/lib/plugins/http_server.rb:24" というStringになっているのが奇怪です。その結果、NoMethodErrorになる、と。再定義されていなければ、RubyのコアでArrayに強制しているはずなのですが。
irb(main):001:0> e = Exception.new
=> #<Exception: Exception>
irb(main):002:0> e.set_backtrace("hoge")
=> ["hoge"]
irb(main):003:0> e.backtrace
=> ["hoge"]
ruby -v:
ruby 1.9.3dev (2010-05-08 trunk 27661) [x86_64-darwin10.3.0]
http_serverを読み込む設定のtermtterを起動しようとすると
[ERROR] SystemStackError: stack level too deep
になって起動後プロンプトもあらわれず停止します。
^C
に応答しても異常終了に見えます。