【问题标题】:Aptana "Content Assist" did not complete normallyAptana“内容辅助”未正常完成
【发布时间】:2013-03-08 15:37:57
【问题描述】:

我对 Aptana Studio 3 有疑问。

这是一个全新的安装。我已经导入了一个 Ruby on Rails - 之前用文本编辑器编辑过的项目。我想使用 Aptana 进行更舒适的开发,但 Content Assist 失败。

如果我尝试使用 Content Assist,它会抛出以下异常并将其写入控制台:

[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 中使用 Content Assist?

【问题讨论】:

    标签: ruby-on-rails aptana


    【解决方案1】:

    我在https://jira.appcelerator.org/browse/APSTUD-2718找到了解决方案

    作为一种解决方法:

    1) Commands > Rails Bundle > Edit this Bundle 将获取一份 新代码

    这为我删除了错误消息。

    【讨论】:

      【解决方案2】:

      我找到了这个链接,该链接将我的问题描述为“未解决”(报告于 12/9 月 12 日):

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

      但这是“Aptana Studio 3.2.2”,我有3.3.3版本,我不敢相信这个问题没有解决。

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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2013-07-03
        • 1970-01-01
        • 2011-10-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多