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

[ANN] Scalariform, a Scala source formatter + an Eclipse plugin

6 replies
MattRussell
Joined: 2009-07-22,
User offline. Last seen 45 weeks 3 days ago.

Hi everyone, I'd like to announce the first release of Scalariform, a
source code formatter for Scala 2.8. To install the Eclipse plugin,
first install the Scala Eclipse nightly plugin, then pull Scalariform
from this update site:

http://scalariform.googlecode.com/svn/trunk/update-site/

Some documentation:

http://mdr.github.com/scalariform/

Code:

http://github.com/mdr/scalariform

Feedback / feature requests very welcome,

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: [ANN] Scalariform, a Scala source formatter + an Eclipse p

On Mon, Apr 12, 2010 at 10:30 AM, Matt R wrote:
> Hi everyone, I'd like to announce the first release of Scalariform, a
> source code formatter for Scala 2.8. To install the Eclipse plugin,
> first install the Scala Eclipse nightly plugin, then pull Scalariform
> from this update site:
>
>  http://scalariform.googlecode.com/svn/trunk/update-site/
>
> Some documentation:
>
>  http://mdr.github.com/scalariform/
>
> Code:
>
>  http://github.com/mdr/scalariform
>
> Feedback / feature requests very welcome,

This is great stuff :-)

Cheers,

Miles

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Scalariform, a Scala source formatter + an Eclipse p
Are you going to contribute it to the EPFL plugin?

On Mon, Apr 12, 2010 at 5:30 AM, Matt R <MattRussellUK [at] gmail [dot] com> wrote:

Hi everyone, I'd like to announce the first release of Scalariform, a
source code formatter for Scala 2.8. To install the Eclipse plugin,
first install the Scala Eclipse nightly plugin, then pull Scalariform
from this update site:

 http://scalariform.googlecode.com/svn/trunk/update-site/

Some documentation:

 http://mdr.github.com/scalariform/

Code:

 http://github.com/mdr/scalariform

Feedback / feature requests very welcome,

Matt Russell
Joined: 2010-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: [ANN] Scalariform, a Scala source formatter + an Eclipse p

> Are you going to contribute it to the EPFL plugin?

Well, the intention long term is to rewrite Scalariform to use a
different approach (to work with Scalac ASTs directly, as opposed to a
custom parser), so it may be worth waiting until then. Miles would be
very welcome to incorporate it into SDT as it stands, though. There's
a patch to do so here:

http://github.com/mdr/scalariform/blob/master/eclipse/add-formatter-to-s...

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: [ANN] Scalariform, a Scala source formatter + an Eclipse p

On Tue, Apr 13, 2010 at 12:54 PM, Matt Russell
wrote:
>> Are you going to contribute it to the EPFL plugin?
>
> Well, the intention long term is to rewrite Scalariform to use a
> different approach (to work with Scalac ASTs directly, as opposed to a
> custom parser), so it may be worth waiting until then. Miles would be
> very welcome to incorporate it into SDT as it stands, though. There's
> a patch to do so here:
>
>  http://github.com/mdr/scalariform/blob/master/eclipse/add-formatter-to-sdt.patch

I'd prefer to see a formatter based on scalac's ASTs but, depending on
how the timing works out, it might still be a good idea to include
Scalariform as is ... that's something Matt and I will be talking
about at Scala Days :-)

Cheers,

Miles

nilskp
Joined: 2009-01-30,
User offline. Last seen 1 year 27 weeks ago.
Re: [ANN] Scalariform, a Scala source formatter + an Eclipse p
On Tue, Apr 13, 2010 at 7:00 AM, Miles Sabin <miles [at] milessabin [dot] com> wrote:

I'd prefer to see a formatter based on scalac's ASTs but, depending on
how the timing works out, it might still be a good idea to include
Scalariform as is ... that's something Matt and I will be talking
about at Scala Days :-)

Whatever is decided on, please enable source formatting as a Save Action.
milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: [ANN] Scalariform, a Scala source formatter + an Eclipse p

On Tue, Apr 13, 2010 at 3:56 PM, Nils Kilden-Pedersen wrote:
> On Tue, Apr 13, 2010 at 7:00 AM, Miles Sabin wrote:
>>
>> I'd prefer to see a formatter based on scalac's ASTs but, depending on
>> how the timing works out, it might still be a good idea to include
>> Scalariform as is ... that's something Matt and I will be talking
>> about at Scala Days :-)
>
> Whatever is decided on, please enable source formatting as a Save Action.

Oh yes ... you can be sure I'll be doing that.

Cheers,

Miles

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