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

Netbeans scala plugin

2 replies
Rodrigo Cano
Joined: 2009-03-22,
User offline. Last seen 42 years 45 weeks ago.
Hi all, has anyone experimented an issue with the final release of Netbeans 6.8?
Precisely my problem is with maven. The plugin seems to work fine with a standard scala project. But with a project in maven, it refuses to parse the code occasionally throwing exceptions of class not found like scala.collection.Seq not found.

This didn't happened in the dev version of netbeans nor in the RC2.

Cheers.
Iulian Dragos 2
Joined: 2009-02-10,
User offline. Last seen 42 years 45 weeks ago.
Re: Netbeans scala plugin
scala.Seq has been renamed to Sequence and back while developing 2.8. It seems maven is pulling an older scala library and the compiler fails looking for the wrong name. Make sure you are using the same version of Scala in the two scenarios.
iulian

On Tue, Dec 15, 2009 at 12:26 AM, Rodrigo Cano <ioniviil@gmail.com> wrote:
Hi all, has anyone experimented an issue with the final release of Netbeans 6.8?
Precisely my problem is with maven. The plugin seems to work fine with a standard scala project. But with a project in maven, it refuses to parse the code occasionally throwing exceptions of class not found like scala.collection.Seq not found.

This didn't happened in the dev version of netbeans nor in the RC2.

Cheers.



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais
anli
Joined: 2008-08-19,
User offline. Last seen 1 day 9 min ago.
Re: Netbeans scala plugin

On Tuesday 15 December 2009 18:34:08 Iulian Dragos wrote:
> scala.Seq has been renamed to Sequence and back while developing 2.8. It
> seems maven is pulling an older scala library and the compiler fails
> looking for the wrong name. Make sure you are using the same version of
> Scala in the two scenarios.
>
> iulian

Yes, to use current Scala trunk with maven I start this script every time I update
Scala dist from the trunk:

#!/bin/bash

SCALA_DIST="/wrk/dev/scala/SVN/scala/dists/latest"

mvn install:install-file -DgroupId=org.scala-lang -DartifactId=scala-compiler -Dversion=2.8.0-SNAPSHOT -Dpackaging=jar -Dfile=$SCALA_DIST/lib/scala-compiler.jar

mvn install:install-file -DgroupId=org.scala-lang -DartifactId=scala-library -Dversion=2.8.0-SNAPSHOT -Dpackaging=jar -Dfile=$SCALA_DIST/lib/scala-library.jar -
Dsources=$SCALA_DIST/src/scala-library-src.jar

mvn install:install-file -DgroupId=org.scala-lang -DartifactId=scala-swing -Dversion=2.8.0-SNAPSHOT -Dpackaging=jar -Dfile=$SCALA_DIST/lib/scala-swing.jar -
Dsources=$SCALA_DIST/src/scala-swing-src.jar

> On Tue, Dec 15, 2009 at 12:26 AM, Rodrigo Cano wrote:

Rodrigo, BTW, [scala-tools] is the nost appropriate list for such
discussion, I think.

> > Hi all, has anyone experimented an issue with the final release of
> > Netbeans 6.8?
> > Precisely my problem is with maven. The plugin seems to work fine with a
> > standard scala project. But with a project in maven, it refuses to parse
> > the code occasionally throwing exceptions of class not found like
> > scala.collection.Seq not found.
> >
> > This didn't happened in the dev version of netbeans nor in the RC2.
> >
> > Cheers.
>

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