[ANN] NetBeans Scala plugin 1.6.1

123 views
Skip to first unread message

Caoyuan

unread,
Mar 8, 2013, 8:13:05 AM3/8/13
to scala...@googlegroups.com
I would like to announce the availability of NetBeans Scala plugin 1.6.1.

What's new:
1. Much more consistent compilation result, by integrating the improved presentation compiler of Scala 2.10.1 (with race conditions detected and then I could have fixed them).
2. Fixed sbt console under Windows.
3. Supported test scope dependencies of sbt project.
4. Varies fixes for sbt project.
5. A new Scala console with per project classpath information. (Right click on project node, choose "Open Scala Console")
6. A simple auto-completion popup for Scala and sbt console.

Requirements:
* JDK 6.0+
* Scala 2.10.0+
* NetBeans 7.1+
* sbt 0.12.2 (for sbt supporting)
* nbsbt 1.0.2 - NetBeans sbt plugin (for sbt supporting)

Note:
If you've had previous sbt integration installed, you also need to upgrade nbsbt sbt plugin to 1.0.2

For downloading:
https://sourceforge.net/projects/erlybird/files/nb-scala/7.x_2.10.x/

For more information:
http://github.com/dcaoyuan/nbscala
http://github.com/dcaoyuan/nbsbt

-Caoyuan Deng
Twitter: @dcaoyuan

Simon Ochsenreither

unread,
Mar 8, 2013, 8:28:17 AM3/8/13
to scala...@googlegroups.com
Thanks, very nice work!

Martin Senne

unread,
Mar 8, 2013, 8:34:50 AM3/8/13
to Caoyuan, scala...@googlegroups.com

Great!!!!!!

> --
> You received this message because you are subscribed to the Google Groups "scala-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

Alan Burlison

unread,
Mar 18, 2013, 11:51:26 AM3/18/13
to Caoyuan, scala...@googlegroups.com
> Requirements:

> * sbt 0.12.2 (for sbt supporting)
> * nbsbt 1.0.2 - NetBeans sbt plugin (for sbt supporting)

Is there a prebuilt version of the nbsbt plugin anywhere, or is it
necessary to build it from source?

--
Alan Burlison
--

Tomás Lázaro

unread,
Mar 23, 2013, 6:00:44 PM3/23/13
to Alan Burlison, Caoyuan, scala...@googlegroups.com
I'm getting an Exception when opening files:

scala.reflect.internal.MissingRequirementError: object scala.beans.BeanInfo in compiler mirror not found.

Pretty much like http://netbeans.org/bugzilla/show_bug.cgi?id=227146

Alan Burlison

unread,
Mar 30, 2013, 2:02:36 PM3/30/13
to Tomás Lázaro, Caoyuan, scala...@googlegroups.com
On 23/03/2013 22:00, Tom�s L�zaro wrote:

> I'm getting an Exception when opening files:
>
> scala.reflect.internal.MissingRequirementError: object scala.beans.BeanInfo
> in compiler mirror not found.
>
> Pretty much like http://netbeans.org/bugzilla/show_bug.cgi?id=227146

Same here.

--
Alan Burlison
--

Alan Burlison

unread,
Mar 30, 2013, 8:46:32 PM3/30/13
to Caoyuan, Tomás Lázaro, scala...@googlegroups.com
Scala 2.10.1, NB 7.3, NB Scala plugin 1.6.1

I'm seeing the exception below as well, whenever I open a Scala project.
If I purge the NB cache before startup, start up NB and quickly run a
Scala project during the 'Background scanning projects' startup phase it
runs correctly. Once this exception has occurred I can no longer run the
project, I get a message saying the main class can't be found even
though manually running the JAR file from the command-line works fine.
If stop netbeans, delete the cache and restart it I can again run the
project up until the point when the exception occurs.

I've used previous versions of the Scala NB plugin without any issues,
this current version is unusable.

scala.reflect.internal.MissingRequirementError: class
scala.deprecatedInheritance in compiler mirror not found.
at
scala.reflect.internal.MissingRequirementError$.signal(MissingRequirementError.scala:16)
at
scala.reflect.internal.MissingRequirementError$.notFound(MissingRequirementError.scala:17)
at
scala.reflect.internal.Mirrors$RootsBase$$anonfun$getModuleOrClass$3.apply(Mirrors.scala:49)
at
scala.reflect.internal.Mirrors$RootsBase$$anonfun$getModuleOrClass$3.apply(Mirrors.scala:49)
at scala.reflect.internal.Symbols$Symbol.orElse(Symbols.scala:2220)
at
scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:48)
at
scala.reflect.internal.Mirrors$RootsBase.getModuleOrClass(Mirrors.scala:61)
at
scala.reflect.internal.Mirrors$RootsBase.getClassByName(Mirrors.scala:99)
at
scala.reflect.internal.Mirrors$RootsBase.getRequiredClass(Mirrors.scala:102)
at
scala.reflect.internal.Mirrors$RootsBase.requiredClass(Mirrors.scala:105)
at
scala.reflect.internal.Definitions$DefinitionsClass.DeprecatedInheritanceAttr$lzycompute(Definitions.scala:967)
at
scala.reflect.internal.Definitions$DefinitionsClass.DeprecatedInheritanceAttr(Definitions.scala:967)
at
scala.reflect.internal.Symbols$Symbol.hasDeprecatedInheritanceAnnotation(Symbols.scala:726)
at
scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$validateParentClass$1(Typers.scala:1673)
at
scala.tools.nsc.typechecker.Typers$Typer$$anonfun$validateParentClasses$2.apply(Typers.scala:1707)
at
scala.tools.nsc.typechecker.Typers$Typer$$anonfun$validateParentClasses$2.apply(Typers.scala:1707)
at scala.collection.immutable.List.foreach(List.scala:318)
at
scala.tools.nsc.typechecker.Typers$Typer.validateParentClasses(Typers.scala:1707)
at
scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:1900)
at
scala.tools.nsc.typechecker.Typers$Typer$$anonfun$28.apply(Typers.scala:1752)
at
scala.tools.nsc.typechecker.Typers$Typer$$anonfun$28.apply(Typers.scala:1752)
at
scala.tools.nsc.typechecker.Typers$Typer.typerReportAnyContextErrors(Typers.scala:510)
at
scala.tools.nsc.typechecker.Typers$Typer.typedClassDef(Typers.scala:1751)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5571)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5630)
at
scala.tools.nsc.typechecker.Typers$Typer.scala$tools$nsc$typechecker$Typers$Typer$$typedStat$1(Typers.scala:2921)
at
scala.tools.nsc.typechecker.Typers$Typer$$anonfun$62.apply(Typers.scala:3025)
at
scala.tools.nsc.typechecker.Typers$Typer$$anonfun$62.apply(Typers.scala:3025)
at scala.collection.immutable.List.loop$1(List.scala:170)
at scala.collection.immutable.List.mapConserve(List.scala:186)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3025)
at
scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5288)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5575)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5630)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5687)
at
scala.tools.nsc.typechecker.Analyzer$typerFactory$$anon$3.apply(Analyzer.scala:99)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:464)
at
scala.tools.nsc.interactive.Global$TyperRun$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:1158)
at
scala.tools.nsc.interactive.Global$TyperRun$$anonfun$applyPhase$1.apply(Global.scala:1158)
at
scala.tools.nsc.interactive.Global$TyperRun$$anonfun$applyPhase$1.apply(Global.scala:1158)
at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:207)
at
scala.tools.nsc.interactive.Global$TyperRun.applyPhase(Global.scala:1158)
at
scala.tools.nsc.interactive.Global$TyperRun.typeCheck(Global.scala:1151)
at
scala.tools.nsc.interactive.Global.scala$tools$nsc$interactive$Global$$typeCheck(Global.scala:586)
at
scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$5$$anonfun$apply$7.apply(Global.scala:502)
at
scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$5$$anonfun$apply$7.apply(Global.scala:498)
at scala.Option.foreach(Option.scala:236)
at
scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$5.apply(Global.scala:498)
at
scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$5.apply(Global.scala:498)
at
scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
at scala.collection.immutable.List.foreach(List.scala:318)
at
scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
at scala.tools.nsc.interactive.Global.backgroundCompile(Global.scala:498)
[catch] at
scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:25)

--
Alan Burlison
--

Alan Burlison

unread,
Mar 31, 2013, 9:48:21 AM3/31/13
to Caoyuan, Tomás Lázaro, scala...@googlegroups.com
I've tried pulling from the nbscala repo, changing the netbeans
version in pom.xml to 7.3 and building. The test phase fails with what
appears to be https://netbeans.org/bugzilla/show_bug.cgi?id=225522,
but I can't figure out how to apply the patch to that to the nbscala
source.

If I ignore the test errors and generate the nbm files anyway and
install them into netbeans 7.3 I get the same problem that I reported
earlier, with the scala.deprecatedInheritance exception. That seems to
be something that was added to scala in 2.10, in the form of the
@deprecatedInheritance annotation, see
https://github.com/scala/scala/pull/1026

In summary it seems that the nbscala module doesn't currently work
with either NetBeans 7.3 or Scala 2.10 / 2.10.1 I use NB 7.3 for other
non-Scala development work and I don't want to switch to an earlier
version of Scala, so it looks like I'll have to switch to either
Eclipse or IDEA if I want a Scala IDE, which is a shame.

--
Alan Burlison
--
Reply all
Reply to author
Forward
0 new messages