0

我在 Aptana Studio 3 中使用 ruby​​-debug-ide,构建:3.4.1.201306062137。

导轨 3.2.13

红宝石 1.9.3p392 (2013-02-22) [i386-mingw32]

ruby-debug-ide 0.4.17,ruby-debug-base19x 0.11)

有时(经常)当我刷新 Web 浏览器(aptana 服务器在调试模式下运行)时,服务器崩溃并出现错误:

[2013-07-22 13:04:05] An error occurred while processing the invoke block for the command ERb Content Assist in C:\Users\Rimantas\Aptana Rubles\rails.ruble\commands\content_assist.rb: (NoMethodError) undefined method `getInstance' for Java::ComAptanaIndexCore::IndexManager:Class
org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `getInstance' for Java::ComAptanaIndexCore::IndexManager:Class
    at Rails::ContentAssistant.index_manager(C:/Users/Rimantas/Aptana Rubles/rails.ruble/lib/content_assistant.rb:87)
    at Rails::ContentAssistant.gem_indices(C:/Users/Rimantas/Aptana Rubles/rails.ruble/lib/content_assistant.rb:79)
    at org.jruby.RubyProc.call(org/jruby/RubyProc.java:274)
    at org.jruby.RubyProc.call(org/jruby/RubyProc.java:229)
    at Java::JavaUtil::Collection.each(D:/IDE/plugins/org.jruby_1.6.4.1331328108/lib/ruby/site_ruby/shared/builtin/java/java.util.rb:7)
    at org.jruby.RubyEnumerable.collect(org/jruby/RubyEnumerable.java:706)
    at Rails::ContentAssistant.gem_indices(C:/Users/Rimantas/Aptana Rubles/rails.ruble/lib/content_assistant.rb:79)
    at Rails::ContentAssistant.gem_and_project_indices(C:/Users/Rimantas/Aptana Rubles/rails.ruble/lib/content_assistant.rb:74)
    at Rails::ContentAssistant.assist(C:/Users/Rimantas/Aptana Rubles/rails.ruble/lib/content_assistant.rb:31)
    at #<Class:0x1013eaebb>.define_content_assist(C:\Users\Rimantas\Aptana Rubles\rails.ruble\commands\content_assist.rb:7)
    at org.jruby.RubyProc.call(org/jruby/RubyProc.java:274)
    at org.jruby.RubyProc.call(org/jruby/RubyProc.java:233)

如何修复调试器?

4

1 回答 1

0

使用另一个 Web 服务器可以解决这个问题。将 gem 'thin' 添加到您的 gem 文件并运行 bundle install。

于 2013-09-04T09:41:57.703 回答