Eclipse plugin 2.x Scala compiler version ?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Eclipse plugin 2.x Scala compiler version ?

griba2010
I have been playing with the eclipse scala plugin for the first time,
plugin version (2.1.6) from http://lamp.epfl.ch/~mcdirmid/scala-plugin 
under JDK 1.5 and eclipse 3.2M4 as read.

I thought I would be working with my disc SCALA_HOME installation but
after some syntax errors I have deduced it was not, and I have seen that
there is a scala-compiler.jar within the plugin.

I could not found the compiler version within.

Maybe it's a provisional situation because of the Scala2 beta state to
embed the compiler within.

-----------

Assuming it should be the Scala2 beta I'd like to report

Testing the mixin example from the web introduction
(http://scala.epfl.ch/intro/mixin.html)
with a separate file for every class/object

there is a syntax error with the following statement
(it rejects the 'with' keyword: '{ expected'

class ColoredPoint3D(xc: Int, yc: Int, zc: Int, col: String)
extends Point3D(xc, yc, zc)
with ColoredPoint2D(xc, yc, col);

(From the Scala2 changes document it seems it should be accepted)

-------------------------------------------------------------

I hope it helps.

Cheers.

Reply | Threaded
Open this post in threaded view
|

Re: Eclipse plugin 2.x Scala compiler version ?

sean.mcdirmid
Hi,

The plugin comes with its own version of the compiler and is  
completely unintegrated with your command line environment. This  
makes configuration seamless (install the plugin, install Scala). For  
now, just mentioning the plugin version is good enough. Thanks for  
the bug report!

Sean

On Feb 12, 2006, at 2:46 AM, [hidden email] wrote:

> I have been playing with the eclipse scala plugin for the first  
> time, plugin version (2.1.6) from http://lamp.epfl.ch/~mcdirmid/ 
> scala-plugin under JDK 1.5 and eclipse 3.2M4 as read.
>
> I thought I would be working with my disc SCALA_HOME installation  
> but after some syntax errors I have deduced it was not, and I have  
> seen that there is a scala-compiler.jar within the plugin.
>
> I could not found the compiler version within.
>
> Maybe it's a provisional situation because of the Scala2 beta state  
> to embed the compiler within.
>
> -----------
>
> Assuming it should be the Scala2 beta I'd like to report
>
> Testing the mixin example from the web introduction (http://
> scala.epfl.ch/intro/mixin.html)
> with a separate file for every class/object
>
> there is a syntax error with the following statement
> (it rejects the 'with' keyword: '{ expected'
>
> class ColoredPoint3D(xc: Int, yc: Int, zc: Int, col: String)
> extends Point3D(xc, yc, zc)
> with ColoredPoint2D(xc, yc, col);
>
> (From the Scala2 changes document it seems it should be accepted)
>
> -------------------------------------------------------------
>
> I hope it helps.
>
> Cheers.
>

Reply | Threaded
Open this post in threaded view
|

Re: Eclipse plugin 2.x Scala compiler version ?

griba2010

"Sean McDirmid" <[hidden email]> ha escrit en el missatge dels grups de
discussió:[hidden email]...
> Hi,
>
> The plugin comes with its own version of the compiler and is
> completely unintegrated with your command line environment. This
> makes configuration seamless (install the plugin, install Scala). For
> now, just mentioning the plugin version is good enough. Thanks for
> the bug report!

Well, in this case I would appreciate to find included, the language reference and library docs
specific to the embedded compiler version as we get with the standard distribution.

---
We ought to know also the compiler version number, to know where we are in the version changes log,
if a specific bug  has been resolved in our version or a specific feature is available,

so the plugin should have, in my humble opinion, the plugin version number followed by the compiler
version.

---
Finally, some people may want, in the future, to stuck to a specific version to recompile an old
library, so it would help to find a description on how to substitute the compiler with an older
version.

---
By now, the documentation is what I lacks the most.

You could pack the docs in a zip file where the scala-compiler.jar and scala-library.jar are found.

---
Till now I have been developing with JEdit with the Console and ErrorList plugins.

The Eclipse Scala plugin, with the Content-Assist, will be a step forward.

Cheers!








Reply | Threaded
Open this post in threaded view
|

Re: Eclipse plugin 2.x Scala compiler version ?

sean.mcdirmid
In reply to this post by griba2010
Hi Gabriel,

When the plugin is out of beta, it will be at parity with the command-line compiler release.
Right now I'm fixing
bugs which require pulling in the latest check-in of the compiler, which is different from the
current Scala2 beta
release. Perhaps my release management skills are also lacking :)

As for the plugin version, this is largely determined by the compiler version (updating the
compiler in the
plugin requires updating the plugin), so the versions will correspond, even if the versioning
is different. I think
it will be pretty difficult to use the plugin with an older version of the compiler. The problem
is that the plugin
code usually needs to be recompiled when changes are made to the compiler because its use
of mixins break
binary compatibility (at least right now). I guess we could get around this by using reflection,
which would also
make it possible to configure what compiler is being used. But reflection has its own
problems. Maybe when the
compiler is more stable, we'll have more options.

I will include the online Scala language and library documentation in the SDT help plugin.

Thanks for your comments!

Sean

----- Original Message -----
From: Gabriel Riba <[hidden email]>
Date: Monday, February 13, 2006 1:36 am
Subject: Re: Eclipse plugin 2.x Scala compiler version ?

> Well, in this case I would appreciate to find included, the
> language reference and library docs
> specific to the embedded compiler version as we get with the
> standard distribution.
>
> ---
> We ought to know also the compiler version number, to know where we
> are in the version changes log,
> if a specific bug  has been resolved in our version or a specific
> feature is available,
>
> so the plugin should have, in my humble opinion, the plugin version
> number followed by the compiler
> version.
>
> ---
> Finally, some people may want, in the future, to stuck to a
> specific version to recompile an old
> library, so it would help to find a description on how to
> substitute the compiler with an older
> version.
>
> ---
> By now, the documentation is what I lacks the most.
>
> You could pack the docs in a zip file where the scala-compiler.jar
> and scala-library.jar are found.
>
> ---
> Till now I have been developing with JEdit with the Console and
> ErrorList plugins.
>
> The Eclipse Scala plugin, with the Content-Assist, will be a step
> forward.
> Cheers!
>
>
>
>
>
>
>
>
>