Aptana“内容辅助”没有正常完成

时间:2013-03-08 15:37:57

标签: ruby-on-rails aptana

我遇到了Aptana Studio 3的问题。

这是一个全新的装置。我已经导入了Ruby on Rails - 之前用texteditor编辑过的项目。我想使用Aptana,以获得更舒适的开发,但内容辅助失败。

如果我尝试使用内容辅助,则会抛出以下异常并将其写入控制台:

[2013-03-08 16:34:40] An error occurred while processing the invoke block for the command ERb Content Assist in C:\Users\Chris\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/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:87)
    at Rails::ContentAssistant.gem_indices(C:/Users/Chris/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(C:/Users/Chris/AppData/Local/Aptana Studio 3/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/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:79)
at Rails::ContentAssistant.gem_and_project_indices(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:74)
at Rails::ContentAssistant.assist(C:/Users/Chris/Aptana Rubles/rails.ruble/lib/content_assistant.rb:31)
at #<Class:0x101f95cf6>.define_content_assist(C:\Users\Chris\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)

Aptana日志文件包含以下消息:

!ENTRY org.eclipse.ui 4 4 2013-03-08 16:34:40.465
!MESSAGE "Content Assist" did not complete normally.  Please see the log for more information.

!ENTRY org.eclipse.ui 4 0 2013-03-08 16:34:40.465
!MESSAGE (Errno::EINVAL) =::
!STACK 0
org.jruby.exceptions.RaiseException: (Errno::EINVAL) =::
    at org.jruby.RubyHash.replace(org/jruby/RubyHash.java:1623)

我不知道如何处理这个错误。我是否必须安装其他任何东西以使用Ruby on Rails的内容辅助?

2 个答案:

答案 0 :(得分:1)

我在https://jira.appcelerator.org/browse/APSTUD-2718

找到了解决方案
  

作为解决方法:

     

1)命令&gt; Rails Bundle&gt;编辑这个Bundle将获取一份副本   新代码

这为我删除了错误消息。

答案 1 :(得分:0)

我找到了这个链接,将我的问题描述为“未解决”(12 / Sep / 12报道):

https://jira.appcelerator.org/browse/APSTUD-7406

但是这是“Aptana Studio 3.2.2”并且我有版本3.3.3,我无法相信这个问题没有解决。

其他人使用Aptana知道这个问题吗?