This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 147811 - [65cat] AbstractMethodError: org.netbeans.modules.scala.editing.ScalaFormatter.reindent(Lorg/netbeans/modules/editor/indent/spi/Context;)V
Summary: [65cat] AbstractMethodError: org.netbeans.modules.scala.editing.ScalaFormatte...
Status: REOPENED
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-21 20:46 UTC by dynamite
Modified: 2008-10-06 15:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 115572


Attachments
stacktrace (3.02 KB, text/plain)
2008-10-06 04:17 UTC, cfrias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2008-09-21 20:46:34 UTC
Build: NetBeans IDE Dev (Build 200809210201)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-21-generic, amd64

User Comments:
dynamite: Source is

package example

object Main extends Application {
}

My cursor was after { and I pressed the return key and got this exception.

buzzword: Writing a scala class.

dynamite: Source is

package example

object Main extends Application {
}

My cursor was after { and I pressed the return key and got this exception.



Stacktrace: 
java.lang.AbstractMethodError: org.netbeans.modules.scala.editing.ScalaFormatter.reindent(Lorg/netbeans/modules/editor/indent/spi/Context;)V
        at org.netbeans.modules.gsf.GsfIndentTask.reindent(GsfIndentTask.java:69)
        at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:502)
        at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:271)
        at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:232)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentLine(FormatterImpl.java:164)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentNewLine(FormatterImpl.java:159)
Comment 1 Torbjorn Norbye 2008-09-22 22:10:46 UTC
Some APIs that the scala editor depends on changed incompatibly. You need a new version of the Scala editor module. I
updated the module dependencies but I haven't bumped the version number of the scala editor itself to trigger a new
build on the update center. I just did that (changeset 857cf023f76c).
Comment 2 cfrias 2008-10-06 03:51:18 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200809301401)
Comment 3 cfrias 2008-10-06 04:17:22 UTC
Build: NetBeans IDE Dev (Build 200810041417)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.22-15-generic, i386

User Comments: 


Stacktrace: 
java.lang.AbstractMethodError: org.netbeans.modules.groovy.editor.Formatter.reindent(Lorg/netbeans/modules/editor/indent/spi/Context;)V
        at org.netbeans.modules.gsf.GsfIndentTask.reindent(GsfIndentTask.java:69)
        at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:502)
        at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:271)
        at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:232)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentLine(FormatterImpl.java:164)
        at org.netbeans.modules.editor.indent.FormatterImpl.indentNewLine(FormatterImpl.java:159)
Comment 4 cfrias 2008-10-06 04:17:33 UTC
Created attachment 71172 [details]
stacktrace
Comment 5 Torbjorn Norbye 2008-10-06 15:08:16 UTC
You need a new version of the Scala plugins. Your IDE is up to date, but your scala plugins are not. My fix for this
issue was simply to increase the version number of the Scala plugin code, such that the update center should
automatically rebuild and provide a new version. That version is hopefully available now (it would be assuming there has
been a successful build of the update-center-nbm build target which builds -everything- in contrib.