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.
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)
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).
Reopening - reproduced in NetBeans IDE Dev (Build 200809301401)
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)
Created attachment 71172 [details] stacktrace
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.