This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Re: [ANN][netbeans] New plugin for Scala-2.8.0.RC2 is available now

4 replies
Rodrigo Cano
Joined: 2009-03-22,
User offline. Last seen 42 years 45 weeks ago.
I also updated my code from the working RC1 lib and plugin to the RC2. But I have encountered this problem. Full rebuild didn't helped for me :(

On Wed, May 12, 2010 at 11:41 AM, HamsterofDeath <h-star@gmx.de> wrote:
same here when i tried to run my old (rc1) compiled classes against the
rc2 lib. a full rebuild helped.

Rodrigo Cano schrieb:
> Hi Caoyuan,
>
> I'm getting a nasty
> *
> java.lang.NoSuchMethodError:
> scala.collection.immutable.Range$ByOne.foreach$mVc$sp(Lscala/Function1;)V
>     at
> org.netbeans.modules.scala.editor.ScalaFormatter.computeLineIndent(ScalaFormatter.scala:444)
>     at
> org.netbeans.modules.scala.editor.ScalaFormatter.computeIndents(ScalaFormatter.scala:329)
>     at
> org.netbeans.modules.scala.editor.ScalaFormatter.reindent(ScalaFormatter.scala:196)
>     at
> org.netbeans.modules.scala.editor.ScalaFormatter.reformat(ScalaFormatter.scala:97)
>     at
> org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:117)
>     at
> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:547)
>     at
> org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:314)
>     at
> org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:293)
>     at
> org.netbeans.modules.editor.indent.FormatterImpl.reformat(FormatterImpl.java:187)
>     at
> org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1675)
>     at
> org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:357)
>     at
> org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1643)
>     at
> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:119)
>     at
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
> [catch] at
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)*
>
> every time I want to format. Its as if the plugin was compiled against
> scala lib that is not what I have??.
> In the windows->other->Interactive scala shell I get this version:
>
> *Welcome to Scala version 2.8.0.RC2 (Java HotSpot(TM) 64-Bit Server
> VM, Java 1.6.0_20).*
>
> I think its the right one. isn't it?.
>
>
> Cheers
>
> On Tue, May 11, 2010 at 8:03 AM, Caoyuan <dcaoyuan@gmail.com
> <mailto:dcaoyuan@gmail.com>> wrote:
>
>     HI,
>
>     I just put the new NetBeans plugins for Scala-2.8.0.RC2 at:
>     https://sourceforge.net/projects/erlybird/files/nb-scala/6.8v1.1.0rc2b
>
>     It has some minor bug fixes and:
>
>     * The debugger breakpoints should work under Windows now.
>     * Several new code-templates. Try "ca" + [TAB], "th" + [TAB] etc
>     by yourself
>     * Classes that are not under same named source files can be mostly be
>     recognized by editor compiler now.
>
>     Per my recent experience, you may need to increase JVM setting of
>     XX:MaxPermSize to 300m or 500m to work under new Scala-2.8.0RC2, to
>     set:
>
>     Edit $NetBeansInstallationPath/etc/netbeans.conf
>     add or change: -J-Xmx1024m -J-XX:MaxPermSize=500m
>
>     If you did not encounter any issue with Scala-2.8.0RC2 under previous
>     NetBeans plugin, you can choose to keep on it.
>
>     You can always find the latest information at:
>     http://wiki.netbeans.org/Scala68v1
>
>     Cheers,
>     -Caoyuan
>
>


Rodrigo Cano
Joined: 2009-03-22,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: [ANN][netbeans] New plugin for Scala-2.8.0.RC2 is ava
But I have updated the binaries.. I mean, As it indicates I have updated to the RC2 both: plugin and binaries.

On Wed, May 12, 2010 at 11:43 AM, Stefan Langer <mailtolanger@googlemail.com> wrote:
THis is expected as Scala is not binary compatible to other releases

-Stefan

2010/5/12 HamsterofDeath <h-star@gmx.de>:
> same here when i tried to run my old (rc1) compiled classes against the
> rc2 lib. a full rebuild helped.
>
> Rodrigo Cano schrieb:
>> Hi Caoyuan,
>>
>> I'm getting a nasty
>> *
>> java.lang.NoSuchMethodError:
>> scala.collection.immutable.Range$ByOne.foreach$mVc$sp(Lscala/Function1;)V
>>     at
>> org.netbeans.modules.scala.editor.ScalaFormatter.computeLineIndent(ScalaFormatter.scala:444)
>>     at
>> org.netbeans.modules.scala.editor.ScalaFormatter.computeIndents(ScalaFormatter.scala:329)
>>     at
>> org.netbeans.modules.scala.editor.ScalaFormatter.reindent(ScalaFormatter.scala:196)
>>     at
>> org.netbeans.modules.scala.editor.ScalaFormatter.reformat(ScalaFormatter.scala:97)
>>     at
>> org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:117)
>>     at
>> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:547)
>>     at
>> org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:314)
>>     at
>> org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:293)
>>     at
>> org.netbeans.modules.editor.indent.FormatterImpl.reformat(FormatterImpl.java:187)
>>     at
>> org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1675)
>>     at
>> org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:357)
>>     at
>> org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1643)
>>     at
>> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:119)
>>     at
>> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
>> [catch] at
>> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)*
>>
>> every time I want to format. Its as if the plugin was compiled against
>> scala lib that is not what I have??.
>> In the windows->other->Interactive scala shell I get this version:
>>
>> *Welcome to Scala version 2.8.0.RC2 (Java HotSpot(TM) 64-Bit Server
>> VM, Java 1.6.0_20).*
>>
>> I think its the right one. isn't it?.
>>
>>
>> Cheers
>>
>> On Tue, May 11, 2010 at 8:03 AM, Caoyuan <dcaoyuan@gmail.com
>> <mailto:dcaoyuan@gmail.com>> wrote:
>>
>>     HI,
>>
>>     I just put the new NetBeans plugins for Scala-2.8.0.RC2 at:
>>     https://sourceforge.net/projects/erlybird/files/nb-scala/6.8v1.1.0rc2b
>>
>>     It has some minor bug fixes and:
>>
>>     * The debugger breakpoints should work under Windows now.
>>     * Several new code-templates. Try "ca" + [TAB], "th" + [TAB] etc
>>     by yourself
>>     * Classes that are not under same named source files can be mostly be
>>     recognized by editor compiler now.
>>
>>     Per my recent experience, you may need to increase JVM setting of
>>     XX:MaxPermSize to 300m or 500m to work under new Scala-2.8.0RC2, to
>>     set:
>>
>>     Edit $NetBeansInstallationPath/etc/netbeans.conf
>>     add or change: -J-Xmx1024m -J-XX:MaxPermSize=500m
>>
>>     If you did not encounter any issue with Scala-2.8.0RC2 under previous
>>     NetBeans plugin, you can choose to keep on it.
>>
>>     You can always find the latest information at:
>>     http://wiki.netbeans.org/Scala68v1
>>
>>     Cheers,
>>     -Caoyuan
>>
>>
>
>

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: [ANN][netbeans] New plugin for Scala-2.8.0.RC2 is ava

For ant project, make sure $HOME is pointed to new Scala RC2,
For maven, make sure dependency on maven is also Scala-2.8.0.RC2,

And it's better to delete old $UserHome/.netbeans/6.8 before you
install the new scala netbeans plugin.

-Caoyuan

On Wed, May 12, 2010 at 10:46 PM, Rodrigo Cano wrote:
> But I have updated the binaries.. I mean, As it indicates I have updated to
> the RC2 both: plugin and binaries.
>
> On Wed, May 12, 2010 at 11:43 AM, Stefan Langer
> wrote:
>>
>> THis is expected as Scala is not binary compatible to other releases
>>
>> -Stefan
>>
>> 2010/5/12 HamsterofDeath :
>> > same here when i tried to run my old (rc1) compiled classes against the
>> > rc2 lib. a full rebuild helped.
>> >
>> > Rodrigo Cano schrieb:
>> >> Hi Caoyuan,
>> >>
>> >> I'm getting a nasty
>> >> *
>> >> java.lang.NoSuchMethodError:
>> >>
>> >> scala.collection.immutable.Range$ByOne.foreach$mVc$sp(Lscala/Function1;)V
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.computeLineIndent(ScalaFormatter.scala:444)
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.computeIndents(ScalaFormatter.scala:329)
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.reindent(ScalaFormatter.scala:196)
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.reformat(ScalaFormatter.scala:97)
>> >>     at
>> >>
>> >> org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:117)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:547)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:314)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:293)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.FormatterImpl.reformat(FormatterImpl.java:187)
>> >>     at
>> >>
>> >> org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1675)
>> >>     at
>> >>
>> >> org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:357)
>> >>     at
>> >>
>> >> org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1643)
>> >>     at
>> >>
>> >> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:119)
>> >>     at
>> >> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
>> >> [catch] at
>> >>
>> >> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)*
>> >>
>> >> every time I want to format. Its as if the plugin was compiled against
>> >> scala lib that is not what I have??.
>> >> In the windows->other->Interactive scala shell I get this version:
>> >>
>> >> *Welcome to Scala version 2.8.0.RC2 (Java HotSpot(TM) 64-Bit Server
>> >> VM, Java 1.6.0_20).*
>> >>
>> >> I think its the right one. isn't it?.
>> >>
>> >>
>> >> Cheers
>> >>
>> >> On Tue, May 11, 2010 at 8:03 AM, Caoyuan > >> > wrote:
>> >>
>> >>     HI,
>> >>
>> >>     I just put the new NetBeans plugins for Scala-2.8.0.RC2 at:
>> >>
>> >> https://sourceforge.net/projects/erlybird/files/nb-scala/6.8v1.1.0rc2b
>> >>
>> >>     It has some minor bug fixes and:
>> >>
>> >>     * The debugger breakpoints should work under Windows now.
>> >>     * Several new code-templates. Try "ca" + [TAB], "th" + [TAB] etc
>> >>     by yourself
>> >>     * Classes that are not under same named source files can be mostly
>> >> be
>> >>     recognized by editor compiler now.
>> >>
>> >>     Per my recent experience, you may need to increase JVM setting of
>> >>     XX:MaxPermSize to 300m or 500m to work under new Scala-2.8.0RC2, to
>> >>     set:
>> >>
>> >>     Edit $NetBeansInstallationPath/etc/netbeans.conf
>> >>     add or change: -J-Xmx1024m -J-XX:MaxPermSize=500m
>> >>
>> >>     If you did not encounter any issue with Scala-2.8.0RC2 under
>> >> previous
>> >>     NetBeans plugin, you can choose to keep on it.
>> >>
>> >>     You can always find the latest information at:
>> >>     http://wiki.netbeans.org/Scala68v1
>> >>
>> >>     Cheers,
>> >>     -Caoyuan
>> >>
>> >>
>> >
>> >
>
>

Rodrigo Cano
Joined: 2009-03-22,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: [ANN][netbeans] New plugin for Scala-2.8.0.RC2 is ava
Thanks for your help, I finally could!.

For those interested, what seems to have fixed it was the deletion of ~/.netbeans/6.8. Because prior to that I had $SCALA_HOME pointing to the new installation and also had the maven dependencies installed correctly, and cleaned and built fine.

It started working when I deleted the configurations folder. Nevertheless I later copied my old 6.8/config to the new one, overwriting everything needed because I needed my configurations backs (templates, colors, windows configuration etc, shortcuts), and It worked.

Cheers

On Wed, May 12, 2010 at 12:05 PM, Caoyuan <dcaoyuan@gmail.com> wrote:
For ant project, make sure $HOME is pointed to new Scala RC2,
For maven, make sure dependency on maven is also  Scala-2.8.0.RC2,

And it's better to delete old $UserHome/.netbeans/6.8 before you
install the new scala netbeans plugin.

-Caoyuan

On Wed, May 12, 2010 at 10:46 PM, Rodrigo Cano <ioniviil@gmail.com> wrote:
> But I have updated the binaries.. I mean, As it indicates I have updated to
> the RC2 both: plugin and binaries.
>
> On Wed, May 12, 2010 at 11:43 AM, Stefan Langer
> <mailtolanger@googlemail.com> wrote:
>>
>> THis is expected as Scala is not binary compatible to other releases
>>
>> -Stefan
>>
>> 2010/5/12 HamsterofDeath <h-star@gmx.de>:
>> > same here when i tried to run my old (rc1) compiled classes against the
>> > rc2 lib. a full rebuild helped.
>> >
>> > Rodrigo Cano schrieb:
>> >> Hi Caoyuan,
>> >>
>> >> I'm getting a nasty
>> >> *
>> >> java.lang.NoSuchMethodError:
>> >>
>> >> scala.collection.immutable.Range$ByOne.foreach$mVc$sp(Lscala/Function1;)V
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.computeLineIndent(ScalaFormatter.scala:444)
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.computeIndents(ScalaFormatter.scala:329)
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.reindent(ScalaFormatter.scala:196)
>> >>     at
>> >>
>> >> org.netbeans.modules.scala.editor.ScalaFormatter.reformat(ScalaFormatter.scala:97)
>> >>     at
>> >>
>> >> org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:117)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:547)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:314)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:293)
>> >>     at
>> >>
>> >> org.netbeans.modules.editor.indent.FormatterImpl.reformat(FormatterImpl.java:187)
>> >>     at
>> >>
>> >> org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1675)
>> >>     at
>> >>
>> >> org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:357)
>> >>     at
>> >>
>> >> org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1643)
>> >>     at
>> >>
>> >> org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:119)
>> >>     at
>> >> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
>> >> [catch] at
>> >>
>> >> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)*
>> >>
>> >> every time I want to format. Its as if the plugin was compiled against
>> >> scala lib that is not what I have??.
>> >> In the windows->other->Interactive scala shell I get this version:
>> >>
>> >> *Welcome to Scala version 2.8.0.RC2 (Java HotSpot(TM) 64-Bit Server
>> >> VM, Java 1.6.0_20).*
>> >>
>> >> I think its the right one. isn't it?.
>> >>
>> >>
>> >> Cheers
>> >>
>> >> On Tue, May 11, 2010 at 8:03 AM, Caoyuan <dcaoyuan@gmail.com
>> >> <mailto:dcaoyuan@gmail.com>> wrote:
>> >>
>> >>     HI,
>> >>
>> >>     I just put the new NetBeans plugins for Scala-2.8.0.RC2 at:
>> >>
>> >> https://sourceforge.net/projects/erlybird/files/nb-scala/6.8v1.1.0rc2b
>> >>
>> >>     It has some minor bug fixes and:
>> >>
>> >>     * The debugger breakpoints should work under Windows now.
>> >>     * Several new code-templates. Try "ca" + [TAB], "th" + [TAB] etc
>> >>     by yourself
>> >>     * Classes that are not under same named source files can be mostly
>> >> be
>> >>     recognized by editor compiler now.
>> >>
>> >>     Per my recent experience, you may need to increase JVM setting of
>> >>     XX:MaxPermSize to 300m or 500m to work under new Scala-2.8.0RC2, to
>> >>     set:
>> >>
>> >>     Edit $NetBeansInstallationPath/etc/netbeans.conf
>> >>     add or change: -J-Xmx1024m -J-XX:MaxPermSize=500m
>> >>
>> >>     If you did not encounter any issue with Scala-2.8.0RC2 under
>> >> previous
>> >>     NetBeans plugin, you can choose to keep on it.
>> >>
>> >>     You can always find the latest information at:
>> >>     http://wiki.netbeans.org/Scala68v1
>> >>
>> >>     Cheers,
>> >>     -Caoyuan
>> >>
>> >>
>> >
>> >
>
>

ichoran
Joined: 2009-08-14,
User offline. Last seen 2 years 3 weeks ago.
Re: Re: [ANN][netbeans] New plugin for Scala-2.8.0.RC2 is ava
For a standard NetBeans project, I generally set
  Tools > Scala Platform > Platform Folder
to something I can re-point to the correct current Scala directory.

Then I just point that directory link at the true directory and all projects update seamlessly with the new plugin.  At least it's never failed yet.  (Haven't tried maven yet.)

   --Rex

On Wed, May 12, 2010 at 11:33 AM, Rodrigo Cano <ioniviil@gmail.com> wrote:
Thanks for your help, I finally could!.

For those interested, what seems to have fixed it was the deletion of ~/.netbeans/6.8. Because prior to that I had $SCALA_HOME pointing to the new installation and also had the maven dependencies installed correctly, and cleaned and built fine.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland