- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
IDEA Scala plugin
Tue, 2009-10-27, 23:50
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@uprizer.com
Ph: +1 512 422 3588
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@uprizer.com
Ph: +1 512 422 3588
Thu, 2009-10-29, 14:57
#2
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?
>
Thu, 2009-10-29, 18:27
#3
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@gmail.com> wrote:
On Thu, Oct 29, 2009 at 8:56 AM, L Jantzen <ljantzen@gmail.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.
Thu, 2009-10-29, 18:27
#4
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:
=)
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@gmail.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.
Thu, 2009-10-29, 18:37
#5
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.
>
>
Fri, 2009-10-30, 00:07
#6
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.
>>
>
>
Fri, 2009-10-30, 00:37
#7
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.
>>>
>>
>>
>
Fri, 2009-10-30, 01:27
#8
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...
Fri, 2009-10-30, 12:37
#9
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
Fri, 2009-10-30, 13:17
#10
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
Fri, 2009-10-30, 13:17
#11
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
Fri, 2009-10-30, 13:27
#12
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.
>
>
Fri, 2009-10-30, 13:37
#13
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
Fri, 2009-10-30, 13:57
#14
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
Sat, 2009-10-31, 01:37
#15
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@jambo-software.com>
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@jambo-software.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!
Sat, 2009-10-31, 02:17
#16
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
Sat, 2009-10-31, 02:27
#17
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@jambo-software.com>
Cheers!Ilya
2009/10/31 Silvio Bierman <sbierman@jambo-software.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!
Sun, 2009-11-01, 20:17
#18
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.
Sun, 2009-11-01, 20:37
#19
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
Sun, 2009-11-01, 20:47
#20
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.
Sun, 2009-11-01, 21:27
#21
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.
Sun, 2009-11-01, 21:37
#22
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
Sun, 2009-11-01, 22:07
#23
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.
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@uprizer.com
> Ph: +1 512 422 3588
>