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

IDEA Scala plugin

23 replies
Ian Clarke
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.
I've been playing with the Scala plugin (and the Scala "power pack", a secondary plugin) in IDEA's new free community edition IDE.  I've got to say that it is impressive, rock solid so far as I can tell, with completion that works, and some neat refactoring tools too.
Not to discourage those working on the NetBeans and Eclipse plugins - I'm still most comfortable in Eclipse, and really can't wait for the Eclipse plugin to be robust, and have features comparable to those available for Eclipse's Java users.
But, if you need a solid featureful IDE plugin *today* in a free IDE, you need to try IDEA community edition.
Ian.

--
Ian Clarke
CEO, Uprizer Labs
Email: ian [at] uprizer [dot] com
Ph: +1 512 422 3588
Cay Horstmann
Joined: 2009-09-04,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin

I can't even get it to install. I downloaded the Community Edition
from jetbrains.org, then the Scala plugin, and I am told that the
plugin is "incompatible". Is there a trick to it?

Thanks,

Cay

On Tue, Oct 27, 2009 at 3:50 PM, Ian Clarke wrote:
> I've been playing with the Scala plugin (and the Scala "power pack", a
> secondary plugin) in IDEA's new free community edition IDE.  I've got to say
> that it is impressive, rock solid so far as I can tell, with completion that
> works, and some neat refactoring tools too.
> Not to discourage those working on the NetBeans and Eclipse plugins - I'm
> still most comfortable in Eclipse, and really can't wait for the Eclipse
> plugin to be robust, and have features comparable to those available for
> Eclipse's Java users.
> But, if you need a solid featureful IDE plugin *today* in a free IDE, you
> need to try IDEA community edition.
> Ian.
>
> --
> Ian Clarke
> CEO, Uprizer Labs
> Email: ian [at] uprizer [dot] com
> Ph: +1 512 422 3588
>

L Jantzen
Joined: 2009-01-27,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin

Download 3.0.75 from here: http://plugins.intellij.net/plugin/?id=1347

Cay Horstmann wrote:
>
> I can't even get it to install. I downloaded the Community Edition
> from jetbrains.org, then the Scala plugin, and I am told that the
> plugin is "incompatible". Is there a trick to it?
>

nilskp
Joined: 2009-01-30,
User offline. Last seen 1 year 27 weeks ago.
Re: IDEA Scala plugin
Where/how does one specify which URL for IDEA to use for plugins?

On Thu, Oct 29, 2009 at 8:56 AM, L Jantzen <ljantzen [at] gmail [dot] com> wrote:

Download 3.0.75 from here: http://plugins.intellij.net/plugin/?id=1347


Cay Horstmann wrote:
>
> I can't even get it to install. I downloaded the Community Edition
> from jetbrains.org, then the Scala plugin, and I am told that the
> plugin is "incompatible". Is there a trick to it?
>

--
View this message in context: http://www.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p26113513.html
Sent from the Scala - Tools mailing list archive at Nabble.com.


Felipe Rodrigues
Joined: 2009-10-19,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin
I just hit the "update plugin" on the available plugins list and it brought the 3.0.75. But only on Maia.

=)

Felipe

Nils Kilden-Pedersen wrote:
4a9de6980910291018m276136d6xd2bcbb60da565717 [at] mail [dot] gmail [dot] com" type="cite">Where/how does one specify which URL for IDEA to use for plugins?

On Thu, Oct 29, 2009 at 8:56 AM, L Jantzen <ljantzen [at] gmail [dot] com" rel="nofollow">ljantzen [at] gmail [dot] com> wrote:

Download 3.0.75 from here: http://plugins.intellij.net/plugin/?id=1347


Cay Horstmann wrote:
>
> I can't even get it to install. I downloaded the Community Edition
> from jetbrains.org, then the Scala plugin, and I am told that the
> plugin is "incompatible". Is there a trick to it?
>

--
View this message in context: http://www.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p26113513.html
Sent from the Scala - Tools mailing list archive at Nabble.com.


Cay Horstmann
Joined: 2009-09-04,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin

No luck--that's the one that it downloaded, and manually installing
made no difference. It is labeled "incompatible". I realize the
community edition is a beta, so one must expect issues such as this
one, but I am wondering why it works for you guys.

On Thu, Oct 29, 2009 at 6:56 AM, L Jantzen wrote:
>
> Download 3.0.75 from here: http://plugins.intellij.net/plugin/?id=1347
>
>
> Cay Horstmann wrote:
>>
>> I can't even get it to install. I downloaded the Community Edition
>> from jetbrains.org, then the Scala plugin, and I am told that the
>> plugin is "incompatible". Is there a trick to it?
>>
>
> --
> View this message in context: http://www.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p2611351...
> Sent from the Scala - Tools mailing list archive at Nabble.com.
>
>

Cay Horstmann
Joined: 2009-09-04,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin

Well, it brought it in for me too. And then labeled it as "incompatible".

Is "Maia" different from the community edition? The original
recommender said it works with the community edition.

On Thu, Oct 29, 2009 at 10:24 AM, Felipe Rodrigues
wrote:
> I just hit the "update plugin" on the available plugins list and it brought
> the 3.0.75. But only on Maia.
>
> =)
>
> Felipe
>
> Nils Kilden-Pedersen wrote:
>
> Where/how does one specify which URL for IDEA to use for plugins?
>
> On Thu, Oct 29, 2009 at 8:56 AM, L Jantzen wrote:
>>
>> Download 3.0.75 from here: http://plugins.intellij.net/plugin/?id=1347
>>
>>
>> Cay Horstmann wrote:
>> >
>> > I can't even get it to install. I downloaded the Community Edition
>> > from jetbrains.org, then the Scala plugin, and I am told that the
>> > plugin is "incompatible". Is there a trick to it?
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p2611351...
>> Sent from the Scala - Tools mailing list archive at Nabble.com.
>>
>
>

Rafael de F. Fe...
Joined: 2009-01-27,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin

I had the same problem with the 3.0.75 plugin. The nightly from '16
Oct 2009' seems to work fine with the community edition, though:

http://www.jetbrains.net/confluence/display/SCA/Scala+Plugin+Nightly+Builds

--
Rafael de F. Ferreira.
http://www.rafaelferreira.net/

On Thu, Oct 29, 2009 at 9:04 PM, Cay Horstmann wrote:
> Well, it brought it in for me too. And then labeled it as "incompatible".
>
> Is "Maia" different from the community edition? The original
> recommender said it works with the community edition.
>
> On Thu, Oct 29, 2009 at 10:24 AM, Felipe Rodrigues
> wrote:
>> I just hit the "update plugin" on the available plugins list and it brought
>> the 3.0.75. But only on Maia.
>>
>> =)
>>
>> Felipe
>>
>> Nils Kilden-Pedersen wrote:
>>
>> Where/how does one specify which URL for IDEA to use for plugins?
>>
>> On Thu, Oct 29, 2009 at 8:56 AM, L Jantzen wrote:
>>>
>>> Download 3.0.75 from here: http://plugins.intellij.net/plugin/?id=1347
>>>
>>>
>>> Cay Horstmann wrote:
>>> >
>>> > I can't even get it to install. I downloaded the Community Edition
>>> > from jetbrains.org, then the Scala plugin, and I am told that the
>>> > plugin is "incompatible". Is there a trick to it?
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p2611351...
>>> Sent from the Scala - Tools mailing list archive at Nabble.com.
>>>
>>
>>
>

Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
Re: IDEA Scala plugin

How does one specify where IDEA should get a plugin? I just seem to get a
fixed list in the plugin manager. Downloaded and unzipped a plugin but do
not know how to point IDEA at it.

Tried the Scala plugin in IDEA btw. Was not very impressed with it. It is
quite rigid in its indenting behaviour. If you dislike opening braces at the
end of code lines and prefer to put them on the next line this plugin is a
nightmare.
The code completion works but is quite slow. It tends to append () pairs
after calls to methods without parameter lists which makes code completion
quite a pain to use.

I have to say that I never cared much for IDEA before so I may be to much
Eclipsified...

L Jantzen
Joined: 2009-01-27,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin

I did as follows (on ubuntu ):

1) cloned the git repo for the community edition: git clone
git://git.jetbrains.org/idea/community.git idea
2) ant build
3) cd out/artifacts/
4) tar xvzf idea-IC-90.SNAPSHOT.tar.gz
5) cd idea-IC-90.SNAPSHOT/bin
6) ./idea.sh
7) open plugin manager
8) download scala plugin
9) restart idea
10) open scala project
11) Profit

Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
Re: IDEA Scala plugin

That sounds plausible (and quite impressive) for Linux but I am running this
on Vista. I downloaded IDEA CE and installed it. The only way to get the
Scala plugin is then to use the Plugin Manager that will search no more than
some predefined list of plugin sources. It comes up with the 2.7.x variant
of the Scala plugin but that is no good to me. I can (and have) download(ed)
the current build which supports 2.8 but there is no way to tell Idea where
to look for it. Seems like the only option is to wait until the standard
repo upgrades.

I find it hard to believe that the PM can not be redirected like the Eclipse
one can. Seems so very inflexible that there must be a trick.

Gr. Silvio

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: IDEA Scala plugin

On Fri, 2009-10-30 at 05:07 -0700, Silvio Bierman wrote:
> That sounds plausible (and quite impressive) for Linux but I am running this
> on Vista. I downloaded IDEA CE and installed it. The only way to get the
> Scala plugin is then to use the Plugin Manager that will search no more than
> some predefined list of plugin sources. It comes up with the 2.7.x variant
> of the Scala plugin but that is no good to me. I can (and have) download(ed)
> the current build which supports 2.8 but there is no way to tell Idea where
> to look for it.

You can just extract it in the plugins folder.

Best,
Ismael

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: IDEA Scala plugin

Look in Settings, under Updates. You can add plugin hosts. I've only
checked this on Maia, not on CE.

2009/10/30 Silvio Bierman :
>
> That sounds plausible (and quite impressive) for Linux but I am running this
> on Vista. I downloaded IDEA CE and installed it. The only way to get the
> Scala plugin is then to use the Plugin Manager that will search no more than
> some predefined list of plugin sources. It comes up with the 2.7.x variant
> of the Scala plugin but that is no good to me. I can (and have) download(ed)
> the current build which supports 2.8 but there is no way to tell Idea where
> to look for it. Seems like the only option is to wait until the standard
> repo upgrades.
>
> I find it hard to believe that the PM can not be redirected like the Eclipse
> one can. Seems so very inflexible that there must be a trick.
>
> Gr. Silvio
>
> --
> View this message in context: http://old.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p2612896...
> Sent from the Scala - Tools mailing list archive at Nabble.com.
>
>

Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
Re: IDEA Scala plugin

Ismael Juma wrote:
>
> You can just extract it in the plugins folder.
>

Well, that worked great. IDEA listed it as available but not enabled. Just
had to check the enabled flag and it works.

Thanks a lot.

Gr. Silvio

Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
Re: IDEA Scala plugin

Well, not exactly. It worked for the same version of the plugin but the
current build remains disabled and is listed in red meaning that it is
incompatible with the current version of IDEA.

Gr. Silvio

Ilya Sergey
Joined: 2009-02-02,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin
Hi.

I just want to remind, that excep plugin repository, actual Scala plugin versions may be downloaded from
http://www.jetbrains.net/confluence/display/SCA/Scala+Plugin+Nightly+Builds
where you may compare your IDEA version with the one supported by the last plugin build.
An here
http://www.jetbrains.net/confluence/display/SCA/How+to+build+Scala+plugin+for+IntelliJ+IDEA+from+scratch
we have some advices on how to build plugin and install it which is also applicable for nightly builds.

Cheers!
Ilya

2009/10/30 Silvio Bierman <sbierman [at] jambo-software [dot] com>

Well, not exactly. It worked for the same version of the plugin but the
current build remains disabled and is listed in red meaning that it is
incompatible with the current version of IDEA.

Gr. Silvio

--
View this message in context: http://old.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p26129535.html
Sent from the Scala - Tools mailing list archive at Nabble.com.


!DSPAM:52,4aeae0f7182722090119686!


Silvio Bierman
Joined: 2009-02-16,
User offline. Last seen 1 year 16 weeks ago.
Re: IDEA Scala plugin

Ilya Sergey (JetBrains) wrote:
>
> Hi.
>
> I just want to remind, that excep plugin repository, actual Scala plugin
> versions may be downloaded from
> http://www.jetbrains.net/confluence/display/SCA/Scala+Plugin+Nightly+Builds
> where you may compare your IDEA version with the one supported by the last
> plugin build.
>

That is where I got the plugin build but I do not see any information on
which IDEA version is supported is supported by which build.

Ilya Sergey (JetBrains) wrote:
>
> An here
> http://www.jetbrains.net/confluence/display/SCA/How+to+build+Scala+plugi...
> we have some advices on how to build plugin and install it which is also
> applicable for nightly builds.
>

Yes, I found that page earlier. But I skipped the building part since I can
download builds from the previous page and the build process there is not
very practical for a Windows user. I do not know what git is and I do not
have an Ant version hat I can run from the command line, only Ants embedded
in IDEA and Eclipse.

But the part about unzipping in the plugin folder that is mentioned there is
what is failing here. IDEA sees the plugin but lists it as an incompatible
version.

Is IDEA CE not the latest IDEA version and is that why the plugin does not
match? I knew that CE is lacking some functionality (which I don't need) but
was under the impression that it is a recent version.

Gr. Silvio

Ilya Sergey
Joined: 2009-02-02,
User offline. Last seen 42 years 45 weeks ago.
Re: IDEA Scala plugin
If the plugin version you have now is grayed in IDEA I'd recommend you to check its version (Help -> About in IntelliJ menu). There you may see the build number. The last stable one is 90.122 and the right column on the nightly builds' page contains this information about a compatible IDEA version.

Cheers!Ilya
2009/10/31 Silvio Bierman <sbierman [at] jambo-software [dot] com>



Ilya Sergey (JetBrains) wrote:
>
> Hi.
>
> I just want to remind, that excep plugin repository, actual Scala plugin
> versions may be downloaded from
> http://www.jetbrains.net/confluence/display/SCA/Scala+Plugin+Nightly+Builds
> where you may compare your IDEA version with the one supported by the last
> plugin build.
>

That is where I got the plugin build but I do not see any information on
which IDEA version is supported is supported by which build.


Ilya Sergey (JetBrains) wrote:
>
> An here
> http://www.jetbrains.net/confluence/display/SCA/How+to+build+Scala+plugin+for+IntelliJ+IDEA+from+scratch
> we have some advices on how to build plugin and install it which is also
> applicable for nightly builds.
>

Yes, I found that page earlier. But I skipped the building part since I can
download builds from the previous page and the build process there is not
very practical for a Windows user. I do not know what git is and I do not
have an Ant version hat I can run from the command line, only Ants embedded
in IDEA and Eclipse.

But the part about unzipping in the plugin folder that is mentioned there is
what is failing here. IDEA sees the plugin but lists it as an incompatible
version.

Is IDEA CE not the latest IDEA version and is that why the plugin does not
match? I knew that CE is lacking some functionality (which I don't need) but
was under the impression that it is a recent version.

Gr. Silvio

--
View this message in context: http://old.nabble.com/-scala-tools--IDEA-Scala-plugin-tp26086506p26138932.html
Sent from the Scala - Tools mailing list archive at Nabble.com.


!DSPAM:52,4aeb8e60318475786344116!


phkoester
Joined: 2009-08-23,
User offline. Last seen 42 years 45 weeks ago.
Problems with ScalaTest (Scala 2.8)

Now that I finished reading ``Programming in Scala," I wanted to go
ahead and have a good look at ScalaTest. I'm using Eclipse with the
latest nightly of the Scala IDE, which uses Scala library 2.8.0.r19360.
The version of the ScalaTest Maven artifact is 1.0-for-scala-2.8.0-SNAPSHOT.

This is my test class, and it compiles fine:

class MyTest extends AssertionsForJUnit {
@Test
def testEqEqEq() {
val buf = new StringBuilder("ScalaTest is ")
buf.append("fun!")
assert(buf.toString === "ScalaTest is funx!")
}
}

Naturally, the `===' comparison fails here, and when it does so I get this:

java.lang.NoClassDefFoundError: scala/collection/VectorLike
at org.scalatest.Assertions$Equalizer.$eq$eq$eq(Assertions.scala:247)
. . .

I looked around in my Scala library, and indeed there is no
`scala.collection.VectorLike', not even in any other package.

So what gives?

---Ph.

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: Problems with ScalaTest (Scala 2.8)

On Sun, 2009-11-01 at 20:08 +0100, Philip Köster wrote:
> I looked around in my Scala library, and indeed there is no
> `scala.collection.VectorLike', not even in any other package.
>
> So what gives?

You need to compile ScalaTest with trunk. The snapshot used to compile
the binary you used is too old for the library used by the Eclipse
plugin for Scala.

Best,
Ismael

David Hall 4
Joined: 2009-08-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Problems with ScalaTest (Scala 2.8)

On Sun, Nov 1, 2009 at 12:29 PM, Ismael Juma wrote:
> On Sun, 2009-11-01 at 20:08 +0100, Philip Köster wrote:
>> I looked around in my Scala library, and indeed there is no
>> `scala.collection.VectorLike', not even in any other package.
>>
>> So what gives?
>
> You need to compile ScalaTest with trunk. The snapshot used to compile
> the binary you used is too old for the library used by the Eclipse
> plugin for Scala.

There's actually a new version of scalatest against a
post-rename-of-VectorLike nightly of Scala. I successfully used it
yesterday.
The version is 1.0-for-scala-2.8.0.20091026-SNAPSHOT . No guarantees though.

phkoester
Joined: 2009-08-23,
User offline. Last seen 42 years 45 weeks ago.
Re: Problems with ScalaTest (Scala 2.8)

> There's actually a new version of scalatest against a
> post-rename-of-VectorLike nightly of Scala. I successfully used it
> yesterday.
> The version is 1.0-for-scala-2.8.0.20091026-SNAPSHOT . No guarantees though.

This one works fine for me in Eclipse. On the console with Maven, tough,
I get a `java.lang.NoClassDefFoundError: scala/collection/Seq'. The
Maven plug uses Scala 2.8.0.r18462-b20090811081019 (when will there be a
newer one on Central?).

Now it looks like 2.8 isn't 2.8 isn't 2.8. :)

Regards
---Ph.

ijuma
Joined: 2008-08-20,
User offline. Last seen 22 weeks 2 days ago.
Re: Problems with ScalaTest (Scala 2.8)

On Sun, 2009-11-01 at 21:23 +0100, Philip Köster wrote:
> > There's actually a new version of scalatest against a
> > post-rename-of-VectorLike nightly of Scala. I successfully used it
> > yesterday.
> > The version is 1.0-for-scala-2.8.0.20091026-SNAPSHOT . No guarantees though.
>
> This one works fine for me in Eclipse. On the console with Maven, tough,
> I get a `java.lang.NoClassDefFoundError: scala/collection/Seq'. The
> Maven plug uses Scala 2.8.0.r18462-b20090811081019 (when will there be a
> newer one on Central?).

Add the scala-tools.org repository. It has all the recent nightlies:

http://scala-tools.org/repo-snapshots/org/scala-lang/scala-compiler/2.8....

Ismael

phkoester
Joined: 2009-08-23,
User offline. Last seen 42 years 45 weeks ago.
Re: Problems with ScalaTest (Scala 2.8)

> Add the scala-tools.org repository. It has all the recent nightlies:
>
> http://scala-tools.org/repo-snapshots/org/scala-lang/scala-compiler/2.8....

Awesome! I had this as a plug-in repo already but not for Scala itself.
Now Maven uses a decent, recent compiler and lib on the console as well!
That fulfills a great desire---thanks a lot, Ismael!

---Ph.

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