nbscala-1.6.1.1 - plugin detail

NetBeans plugin for Scala language.

n/a
Plugin owner: dcaoyuan
Website: github.com/dcaoyuan/nbscala
Added: 2013-03-08
License: CDDL
Category: Programming Languages
Downloaded: 17,080 times
Rating:
 4, by 4 users

Plugin Log Show log

Versions available

Download plugin   Download size: 27.74 MB   Last Update: 2013-03-11

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

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, and varies fixes on sbt project.
  4. A new Scala console with per project classpath information. (Right click on project node, choose "Open Scala Console")
  5. Auto-completion popup for Scala and sbt console.
Requirements:

  • JDK 6.0+
  • Scala 2.10.0+
  • NetBeans 7.2+
  • sbt 0.12.2 (for sbt supporting)
  • nbsbt 1.0.2 - NetBeans sbt plugin (for sbt supporting)


Verifications for NetBeans versions

7.3 verification PASSED See verification details
Download plugin   Download size: 27.74 MB   Last Update: 2013-03-11

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

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, and varies fixes on sbt project.
  4. A new Scala console with per project classpath information. (Right click on project node, choose "Open Scala Console")
  5. Auto-completion popup for Scala and sbt console.
Requirements:

  • JDK 6.0+
  • Scala 2.10.0+
  • NetBeans 7.2+
  • sbt 0.12.2 (for sbt supporting)
  • nbsbt 1.0.2 - NetBeans sbt plugin (for sbt supporting)


Verifications for NetBeans versions

7.2 verification PASSED See verification details


Introduction

* Full featured Scala editor * syntax and semantic coloring * outline navigator * code folding * mark occurrences * go to declaration * instant rename * indentation * formatting * pair matching * error annotations * code completion * Project management (build/run/debug project) * Debugger * Interactive console * Maven integration * sbt integration

[ You have to be logged in to be able to comment. ]

User Comments

  

Thanks! Partially worked on NetBeans IDE Dev (Build 201310070001) with last updates

- syntax, checking
- scala console
- create class, object, trait in projects

not exist in menus:
- create scala projects, [play2, actor...]
- choose scala platform
- execute scala-code

for promote and education:
please add template for scala-servlet in EE-project [for maven projects] and other examples [gui...].

Product Version: NetBeans IDE Dev (Build 201310070001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b47
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b105
System: Linux version 3.4.47-2.38-desktop running on amd64; UTF-8; ru_RU (nb)
Posted by nexoma on Nov 26, 2013
  

Please Fix Scala Plugin for NB 7.4

Hi Deng, I would politely like to add my high interest in having Scala work on NB 7.4.
Hope you will find the time soon to work on it.
=S
Posted by hagger77 on Nov 17, 2013
  

upgrading to last scala, sbt and nb

any chance to?
Posted by anli on Nov 14, 2013
  

NB 7.4

Please, when could be the new version of plugin available for NB 7.4. Thank you!
Posted by fulemj on Nov 07, 2013
  

Current plugin is not compatible with 7.4, will fix it soon

Current plugin is not compatible with 7.4, will fix it soon.
Posted by dcaoyuan on Oct 21, 2013
  

Scala 2.10.X

When will Scala 2.10.X be available for 7.4? The existing plugin worked for 7.3 but does not install in 7.4.
Posted by tknoblauch on Oct 20, 2013
  

Currently not working

Tested with Scala 2.10.2 & NV 7.3.1 and still doesn't work, due to http://statistics.netbeans.org/analytics/detail.do?id=196106, which has 76 duplicate reports. Current status of this project seems to be that it has been abandoned by the author - a showstopper bug and a repo that hasn't had a commit in over 5 months (https://github.com/dcaoyuan/nbscala)
Posted by alanbur on Aug 05, 2013
  

MissingRequirementException

Hi. I installed these plugins, and I get an exception at the bottom of the IDE. I'm using JDK 1.7_11, and Scala 2.10.1

scala.reflect.internal.MissingRequirementError: object scala.beans.BeanInfo 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:40)
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.tools.nsc.backend.jvm.GenASM$AsmPhase.(GenASM.scala:42)
at scala.tools.nsc.backend.jvm.GenASM.newPhase(GenASM.scala:33)
at scala.tools.nsc.Global$Run$$anonfun$27.apply(Global.scala:1310)
at scala.tools.nsc.Global$Run$$anonfun$27.apply(Global.scala:1310)
at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111)
at scala.collection.immutable.List.foldLeft(List.scala:84)
at scala.tools.nsc.Global$Run.(Global.scala:1310)
at scala.tools.nsc.interactive.Global$TyperRun.(Global.scala:1140)
at scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:1163)
at scala.tools.nsc.interactive.Global.(Global.scala:198)
at org.netbeans.modules.scala.core.interactive.Global.(Global.scala:13)
at org.netbeans.modules.scala.core.ScalaGlobal.(ScalaGlobal.scala:94)
at org.netbeans.modules.scala.core.ScalaGlobal$.getGlobal(ScalaGlobal.scala:461)
at org.netbeans.modules.scala.core.ScalaParserResult.(ScalaParserResult.scala:58)
at org.netbeans.modules.scala.core.ScalaParserResult$.apply(ScalaParserResult.scala:194)
at org.netbeans.modules.scala.core.ScalaParser.parse(ScalaParser.scala:112)
at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:596)
at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:236)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:718)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)


This is the only Scala environment listed in the Scala Platforms for NetBeans. This is in a mixed java/scala Maven project, and I do know that the scala dependency is using an older version of Scala. Would that have any impact on the version of Scala picked up by the IDE/Plugin?
Posted by hildo on May 03, 2013
  

Parse Exception and Go to Declaration

Hi,
Running NB 7.3 under jdk6-u43-b01 64 bit, produced the exception below when invoking the info popup via Ctrl hand-pointer on a scala type or def in the editor with the exception of AnyRef. I managed to circumvent this by aggregating all the source in the scala src folder into a single jar!

Also the Go to Declaration no longer functions either via the Ctrl left-click or the right-click popup menu or Ctrl+B, which it used to for both java and scala declarations in the 9.x versions of the plugin, the current result is an inhibitory audible "java beep". I guess it feels like a path problem of some sort? I'm sure none of the above is intentional, any help would be much appreciated.

java.lang.NullPointerException
at org.netbeans.modules.scala.core.ScalaSourceFile.hashCode(ScalaSourceFile.scala:123)
at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:922)
at org.netbeans.modules.scala.core.ScalaGlobal.askForSemantic(ScalaGlobal.scala:181)
at org.netbeans.modules.scala.core.element.ScalaElements$ScalaElement.load(ScalaElements.scala:245)
at org.netbeans.modules.scala.core.element.ScalaElements$ScalaElement.getOffset(ScalaElements.scala:181)
at org.netbeans.modules.scala.editor.ScalaDeclarationFinder.findDeclaration(ScalaDeclarationFinder.scala:128)
at org.netbeans.modules.csl.editor.hyperlink.GoToSupport$2.run(GoToSupport.java:170)
at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:584)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:201)
at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:198)
at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74)
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:198)
Caused: org.netbeans.modules.parsing.spi.ParseException
at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:206)
at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106)
[catch] at org.netbeans.modules.csl.editor.hyperlink.GoToSupport.perform(GoToSupport.java:144)
at org.netbeans.modules.csl.editor.hyperlink.GoToSupport.getGoToElementTooltip(GoToSupport.java:102)
at org.netbeans.modules.csl.editor.hyperlink.GsfHyperlinkProvider.getTooltipText(GsfHyperlinkProvider.java:85)
at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$TooltipResolver.getValue(HyperlinkOperation.java:508)
at org.netbeans.lib.editor.hyperlink.HyperlinkOperation$TooltipResolver.getValue(HyperlinkOperation.java:495)
at org.netbeans.modules.editor.NbToolTip$Request.getTooltipFromHighlightingLayers(NbToolTip.java:445)
at org.netbeans.modules.editor.NbToolTip$Request.resolveTooltipText(NbToolTip.java:433)
at org.netbeans.modules.editor.NbToolTip$Request.run(NbToolTip.java:369)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2048
Posted by tez on Mar 21, 2013
  

Re Warning with JDK6

New versions work fine. Thx!
Posted by ent38 on Mar 11, 2013
  

Re Warning with JDK6

I rebuilt all nbms with target 1.6, and tested on my virtual Windows box with JDK6, it seems OK now. I just uploaded the new one. Please check.
Posted by dcaoyuan on Mar 11, 2013
  

Warning with JDK6

Hi again,
when installing on NB7.3 with JDK6 (6u43), I get the following warning:

org.netbeans.InvalidException: StandardModule:org.netbeans.modules.scala.stdplatform jarFile: C:\Java\netbeans730_jdk6\nbscala\modules\org-netbeans-modules-scala-stdplatform.jar: java.lang.UnsupportedClassVersionError: org/netbeans/modules/scala/stdplatform/J2SEPlatformModule : Unsupported major.minor version 51.0

I have to disable this module.

If this NBM is compiled for Java7, could you recompile it for Java6 ? NetBeans 7.3 is designed to run on Java6 and Java7.

Thx!
Posted by ent38 on Mar 11, 2013
  

Re: Repackaged

Thanks v. much! I'll proceed to validation asap.
Posted by ent38 on Mar 11, 2013
  

Repackaged

Hi, I've repackaged, please verify it.
Posted by dcaoyuan on Mar 09, 2013
  

Plugin structure invalid

Hi,
when you package NBM files into a ZIP, please put them in the root folder, do not create a sub-folder (you've placed them into a "netbeans_site" folder).
Could you repackage your plugin and submit it again for validation ? Thx.
Posted by ent38 on Mar 08, 2013
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo