Adding a new Scala platform?

1 view
Skip to first unread message

Gordon

unread,
Jun 2, 2009, 6:15:42 PM6/2/09
to scala-netbeans
I've reported this through the NetBeans exception reporter (http://
statistics.netbeans.org/analytics/detail.do?id=48973) but I was
wondering if Caoyuan could maybe comment? The issue is that it's
impossible to add extra Scala platforms (e.g. the new 2.7.5final or a
2.8.0 preview) because of an error that occurs when stepping through
the wizard.

Caoyuan

unread,
Jun 2, 2009, 9:08:56 PM6/2/09
to scala-n...@googlegroups.com
There is issue on Scala platform management, please use SCALA_HOME
environment variable instead, until I fix it.

-Caoyuan

Gordon

unread,
Jun 3, 2009, 10:14:41 AM6/3/09
to scala-netbeans
Okay, I've set SCALA_HOME. I'm using NetBeans 6.71 RC1 with nb-scala
for NB 6.7 and Scala 2.8.0 preview. I created a simple test object
like this:

import scala.collection.immutable.Map

object Test {

val stuff = Map("blah" -> "foo")

def main(args:Array[String]) = {
println(stuff)
}

}

The Navigator pane shows:

- Test
- main : (<error>)<error>
- stuff : <error>

Mousing over the stuff field with Ctrl held down shows the info
tooltip with: private val stuff: <error>.

Is it just not compatible with Scala 2.8.0?

Caoyuan

unread,
Jun 3, 2009, 9:08:27 PM6/3/09
to scala-n...@googlegroups.com
On Wed, Jun 3, 2009 at 10:14 PM, Gordon <gordon...@gmail.com> wrote:
>
> Okay, I've set SCALA_HOME. I'm using NetBeans 6.71 RC1 with nb-scala
> for NB 6.7 and Scala 2.8.0 preview. I created a simple test object
> like this:
>
> import scala.collection.immutable.Map
>
> object Test {
>
>  val stuff = Map("blah" -> "foo")
>
>  def main(args:Array[String]) = {
>    println(stuff)
>  }
>
> }
>
> The Navigator pane shows:
>
> - Test
>  - main : (<error>)<error>
>  - stuff : <error>
>
> Mousing over the stuff field with Ctrl held down shows the info
> tooltip with: private val stuff: <error>.
>
> Is it just not compatible with Scala 2.8.0?

This plugin use Scala's native compiler, which, in this version, is
compatible with Scala 2.7.x. For 2.8.0, I'm waiting for the first
preview version of Scala 2.8.0.

Gordon

unread,
Jun 10, 2009, 12:07:52 PM6/10/09
to scala-netbeans
I'm not sure I understand. If the NB plugin doesn't use the Scala
compiler from the SCALA_HOME I set, what compiler does it use?

On Jun 3, 9:08 pm, Caoyuan <dcaoy...@gmail.com> wrote:

Caoyuan

unread,
Jun 10, 2009, 9:13:34 PM6/10/09
to scala-n...@googlegroups.com
There are two ways of Scala compiler used. One is used to parse source
file that is opened in NetBeans' editor window, this one is a patched
Scala compiler of the bundling Scala runtime. The other one is used to
build/run/debug the scala project, which is the Scala compiler set by
SCALA_HOME.
Reply all
Reply to author
Forward
0 new messages