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

intellij vs eclipse (or rather, their scala plugins)

54 replies
H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.

i heard about the eclipse plugin to be able to compile everything a lot
faster than idea, so i gave it a try.
i quickly coded this:object Main {

def main(args: Array[String]) = {
0 to 25 foreach (e => println(e))
}
}

and the compilation really was a lot faster. however, the code
completion doesn't offer "foreach". why is that? it's a simple method of
range, so shouldn't eclipse be able to suggest it?

John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On Thu, Aug 25, 2011 at 12:45 PM, HamsterofDeath wrote:
> i heard about the eclipse plugin to be able to compile everything a lot
> faster than idea, so i gave it a try.
> i quickly coded this:object Main {
>
>  def main(args: Array[String]) = {
>    0 to 25 foreach (e => println(e))
>  }
> }
>
> and the compilation really was a lot faster. however, the code
> completion doesn't offer "foreach". why is that? it's a simple method of
> range, so shouldn't eclipse be able to suggest it?

It seems to work for me, though not consistently
http://image.bayimg.com/kajabaadm.jpg

H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

it works as soon as you put the range into an intermediate val/var

Am 25.08.2011 22:42, schrieb John Cheng:
> On Thu, Aug 25, 2011 at 12:45 PM, HamsterofDeath wrote:
>> i heard about the eclipse plugin to be able to compile everything a lot
>> faster than idea, so i gave it a try.
>> i quickly coded this:object Main {
>>
>> def main(args: Array[String]) = {
>> 0 to 25 foreach (e => println(e))
>> }
>> }
>>
>> and the compilation really was a lot faster. however, the code
>> completion doesn't offer "foreach". why is that? it's a simple method of
>> range, so shouldn't eclipse be able to suggest it?
> It seems to work for me, though not consistently
> http://image.bayimg.com/kajabaadm.jpg
>
>
>

Anthony Accioly 3
Joined: 2011-08-16,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
Don't take me for the typical IntelliJ religious user (I use mainly Eclipse and Netbeans at work), but even with the recent improvements to Eclipse Plug-in, I still think that IntelliJ scala plugin is light-years ahead of Eclipse in terms of code completion and general features.
As for decreasing the compile time on IntelliJ I would recommend one of 3 things:

1. Use maven-scala-plugin (http://scala-tools.org/mvnsites/maven-scala-plugin/usage.html).
   I generally start a project with the scala-archetype-simple (http://www.mvnbrowser.com/artifact-details.html?groupId=org.scala-tools.archetypes&artifactId=scala-archetype-simple&version=1.3&tab=VERSIONS).
   IntelliJ will still provide the useful Scala Facet and pick the Scala Version from your maven dependencies.
   You can run scala:cc in a background shell. It will auto pick your changes and compile blazing fast. (Remember to disable Make Before Launch in you run configuration).

2. Enable FSC by checking Compiler -> Scala Compiler -> Use FSC.
    Start a Compilation Server in Run \ Debug Settings -> Scala Compilation Server (disable Make Before Launch).
    Then run your project as you would do normally.

3. Use SBT and integrated plugins (never tried, but here are some useful links: http://plugins.intellij.net/plugin/?idea&id=5007, http://stackoverflow.com/questions/4250318/how-to-create-sbt-project-with-intellij-idea, http://www.itdevspace.com/2011/04/setup-scala-with-sbt-in-intellij-idea.html). There are a lot of SBT enthusiasts that may help you further.

For me personally, option 1 works very well (almost as if I was working with a interpreted language).

If your are doing Web Development another tool to look at is JRebel (http://www.zeroturnaround.com/jrebel/). It is free for Scala usage.

Cheers,

--
Anthony Accioly

John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Interesting, I didn't think about that. This syntax also works:

0.to(25)

When using the "space to do method calls" (I'm not sure what official
terminology is), the plugin is trying to do code complete on the
object "25". It can be argued that the IDE should "intelligently"
assume you want completion for the result of "0 to 25" instead of for
just 25, but maybe that's difficult to implement.

On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath wrote:
> it works as soon as you put the range into an intermediate val/var
>

H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

don't know much about maven except that it exists. i prefer 2, it's the
most simple way for me. and it works again. the last time i checked, it
was broken.

Am 25.08.2011 22:54, schrieb Anthony Accioly:
> Don't take me for the typical IntelliJ religious user (I use mainly
> Eclipse and Netbeans at work), but even with the recent improvements
> to Eclipse Plug-in, I still think that IntelliJ scala plugin is
> light-years ahead of Eclipse in terms of code completion and general
> features.
> As for decreasing the compile time on IntelliJ I would recommend one
> of 3 things:
>
> 1. Use maven-scala-plugin
> (http://scala-tools.org/mvnsites/maven-scala-plugin/usage.html).
> I generally start a project with the scala-archetype-simple
> (http://www.mvnbrowser.com/artifact-details.html?groupId=org.scala-tools....
> ).
> IntelliJ will still provide the useful Scala Facet and pick the
> Scala Version from your maven dependencies.
> You can run scala:cc in a background shell. It will auto pick your
> changes and compile blazing fast. (Remember to disable Make Before
> Launch in you run configuration).
>
> 2. Enable FSC by checking Compiler -> Scala Compiler -> Use FSC.
> Start a Compilation Server in Run \ Debug Settings -> Scala
> Compilation Server (disable Make Before Launch).
> Then run your project as you would do normally.
>
> 3. Use SBT and integrated plugins (never tried, but here are some
> useful links: http://plugins.intellij.net/plugin/?idea&id=5007
> ,
> http://stackoverflow.com/questions/4250318/how-to-create-sbt-project-wit...,
> http://www.itdevspace.com/2011/04/setup-scala-with-sbt-in-intellij-idea....).
> There are a lot of SBT enthusiasts that may help you further.
>
> For me personally, option 1 works very well (almost as if I was
> working with a interpreted language).
>
> If your are doing Web Development another tool to look at is JRebel
> (http://www.zeroturnaround.com/jrebel/). It is free for Scala usage.
>
> Cheers,
>

H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Am 25.08.2011 23:00, schrieb John Cheng:
> Interesting, I didn't think about that. This syntax also works:
>
> 0.to(25)
>
> When using the "space to do method calls" (I'm not sure what official
> terminology is)
infix notation?
> , the plugin is trying to do code complete on the
> object "25". It can be argued that the IDE should "intelligently"
guess that's why intellij is called intellij ;)
> assume you want completion for the result of "0 to 25" instead of for
> just 25, but maybe that's difficult to implement.

>
> On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath wrote:
>> it works as soon as you put the range into an intermediate val/var
>>

Anthony Accioly 2
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Hamster,

Since it has been fixed, I'm curious, in your opinion how to you think
IntelliJ + FSC compares with Eclipse in terms of compiling
performance?
Is Eclipse noticeably faster?

Cheers,

On Aug 25, 6:19 pm, HamsterofDeath wrote:
> don't know much about maven except that it exists. i prefer 2, it's the
> most simple way for me. and it works again. the last time i checked, it
> was broken.

Anthony Accioly

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
Can you file a bug report?

On Thu, Aug 25, 2011 at 5:00 PM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
Interesting, I didn't think about that. This syntax also works:

0.to(25)

When using the "space to do method calls" (I'm not sure what official
terminology is), the plugin is trying to do code complete on the
object "25". It can be argued that the IDE should "intelligently"
assume you want completion for the result of "0 to 25" instead of for
just 25, but maybe that's difficult to implement.

On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath <h-star [at] gmx [dot] de> wrote:
> it works as soon as you put the range into an intermediate val/var
>

--
---
John L Cheng

Srirangan
Joined: 2011-01-22,
User offline. Last seen 12 weeks 1 day ago.
Re: intellij vs eclipse (or rather, their scala plugins)
For quicker compile times on IDEA, start the "Scala Compilation Server" and select FSC in Settings -> Compile -> Scala.
I'm guessing Scala Eclipse does the same in the background wherein you don't have to manually start the compilation server.
There's a famous post on Stackoverflow where Martin Odersky explains why Scala compilation won't ever be as fast as Java and using compilation server's is the way forward.
- Sri
On Fri, Aug 26, 2011 at 1:15 AM, HamsterofDeath <h-star [at] gmx [dot] de> wrote:
i heard about the eclipse plugin to be able to compile everything a lot
faster than idea, so i gave it a try.
i quickly coded this:object Main {

 def main(args: Array[String]) = {
   0 to 25 foreach (e => println(e))
 }
}

and the compilation really was a lot faster. however, the code
completion doesn't offer "foreach". why is that? it's a simple method of
range, so shouldn't eclipse be able to suggest it?





--
Srirangan  |  About  Blog  GitHub  LinkedIn  Twitter
John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

done

On Thu, Aug 25, 2011 at 4:52 PM, Naftoli Gugenheim wrote:
> Can you file a bug report?
>
> On Thu, Aug 25, 2011 at 5:00 PM, John Cheng wrote:
>>
>> Interesting, I didn't think about that. This syntax also works:
>>
>> 0.to(25)
>>
>> When using the "space to do method calls" (I'm not sure what official
>> terminology is), the plugin is trying to do code complete on the
>> object "25". It can be argued that the IDE should "intelligently"
>> assume you want completion for the result of "0 to 25" instead of for
>> just 25, but maybe that's difficult to implement.
>>
>> On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath wrote:
>> > it works as soon as you put the range into an intermediate val/var
>> >
>>
>> --
>> ---
>> John L Cheng
>
>

Paulo Siqueira
Joined: 2011-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Why not give the Netbeans plugin a try as well? I'm happy with it :-)

[],

Paulo "JCranky" Siqueira
http://jcranky.com

Em 26/08/2011 01:26, "John Cheng" <johnlicheng [at] gmail [dot] com> escreveu:
> done
>
> On Thu, Aug 25, 2011 at 4:52 PM, Naftoli Gugenheim <naftoligug [at] gmail [dot] com> wrote:
>> Can you file a bug report?
>>
>> On Thu, Aug 25, 2011 at 5:00 PM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
>>>
>>> Interesting, I didn't think about that. This syntax also works:
>>>
>>> 0.to(25)
>>>
>>> When using the "space to do method calls" (I'm not sure what official
>>> terminology is), the plugin is trying to do code complete on the
>>> object "25". It can be argued that the IDE should "intelligently"
>>> assume you want completion for the result of "0 to 25" instead of for
>>> just 25, but maybe that's difficult to implement.
>>>
>>> On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath <h-star [at] gmx [dot] de> wrote:
>>> > it works as soon as you put the range into an intermediate val/var
>>> >
>>>
>>> --
>>> ---
>>> John L Cheng
>>
>>
>
>
>
> --
> ---
> John L Cheng
andreak 2
Joined: 2011-07-21,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/26/2011 03:39 AM, Srirangan wrote:
> For quicker compile times on IDEA, start the "Scala Compilation
> Server" and select FSC in Settings -> Compile -> Scala.

I don't think starting the compilation-server as a separate manual step
is necessary any more these days. I just check the "Use FSC" in
Settings -> Compile -> Scala, no other action is taken, and IDEA starts
the compilation-server in the background. You can see the "FSC" process
using "ps" after compilation starts in IDEA.

Or are you experiencing even more speed-ups starting FSC manually as you
describe?

I still find compilation in IDEA slower than in Eclipse, but IDEA's
other excellent Scala-features makes it the preferred IDE for me. I
really don't need to compile so often as IDEA helps me reveal errors
quickly without the need to compile. In Eclipse compilation happens on
save (which I cannot understand anyone really wants) so I guess
compilation-times are more important to Eclipse-users. I've seen
Eclipse-users on my team struggle with almost anything in Scala except
compilation, so Eclipse seems to understand much less of Scala as a
language than IDEA does.

H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

does the netbeans plugin use the scala compiler for displaying error messages so that there cannot be false positives or does it parse everything by itself like idea's plugin?
can it infer types for you?

-------- Original-Nachricht --------
> Datum: Fri, 26 Aug 2011 02:19:29 -0300
> Von: "Paulo \\"JCranky\\" Siqueira"
> An: John Cheng
> CC: scala-user [at] googlegroups [dot] com, Naftoli Gugenheim , HamsterofDeath
> Betreff: Re: [scala-user] intellij vs eclipse (or rather, their scala plugins)

> Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>
> [],
>
> Paulo "JCranky" Siqueira
> http://jcranky.com
> Em 26/08/2011 01:26, "John Cheng" escreveu:
> > done
> >
> > On Thu, Aug 25, 2011 at 4:52 PM, Naftoli Gugenheim
>
> wrote:
> >> Can you file a bug report?
> >>
> >> On Thu, Aug 25, 2011 at 5:00 PM, John Cheng
> wrote:
> >>>
> >>> Interesting, I didn't think about that. This syntax also works:
> >>>
> >>> 0.to(25)
> >>>
> >>> When using the "space to do method calls" (I'm not sure what official
> >>> terminology is), the plugin is trying to do code complete on the
> >>> object "25". It can be argued that the IDE should "intelligently"
> >>> assume you want completion for the result of "0 to 25" instead of for
> >>> just 25, but maybe that's difficult to implement.
> >>>
> >>> On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath wrote:
> >>> > it works as soon as you put the range into an intermediate val/var
> >>> >
> >>>
> >>> --
> >>> ---
> >>> John L Cheng
> >>
> >>
> >
> >
> >
> > --
> > ---
> > John L Cheng

Alan Burlison
Joined: 2011-08-26,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/26/11 06:19, Paulo "JCranky" Siqueira wrote:

> Why not give the Netbeans plugin a try as well? I'm happy with it :-)

I would be too, if I could get documentation displayed when using
autocomplete in the editor. It seems to display the docs for underlying
Javadocs OK, but says it can't find the docs for the Scala libraries.
Any tips?

Anthony Accioly 2
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Andreas,

> I don't think starting the compilation-server as a separate manual step
> is  necessary any more these days. I just check the "Use FSC" in
> Settings -> Compile -> Scala, no other action is taken, and IDEA starts
> the compilation-server in the background. You can see the "FSC" process
> using "ps" after compilation starts in IDEA.

You're absolutely right. I guess old habits are hard to dismiss. :D

> Or are you experiencing even more speed-ups starting FSC manually as you
> describe?

No, not at all, I just didn't know I could skip the step.

Cheers,

H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)

yay

-------- Original-Nachricht --------
> Datum: Fri, 26 Aug 2011 06:34:26 -0700 (PDT)
> Von: Anthony Accioly
> An: scala-user
> Betreff: [scala-user] Re: intellij vs eclipse (or rather, their scala plugins)

> Andreas,
>
> > I don't think starting the compilation-server as a separate manual step
> > is  necessary any more these days. I just check the "Use FSC" in
> > Settings -> Compile -> Scala, no other action is taken, and IDEA starts
> > the compilation-server in the background. You can see the "FSC" process
> > using "ps" after compilation starts in IDEA.
>
> You're absolutely right. I guess old habits are hard to dismiss. :D
>
> > Or are you experiencing even more speed-ups starting FSC manually as you
> > describe?
>
> No, not at all, I just didn't know I could skip the step.
>
> Cheers,

Paulo Siqueira
Joined: 2011-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

No tips, this isn't working correctly for me either, I usually have the scaladocs opened.

[],

Paulo "JCranky" Siqueira
http://jcranky.com

Em 26/08/2011 09:16, "Alan Burlison" <alan [dot] burlison [at] gmail [dot] com> escreveu:
> On 08/26/11 06:19, Paulo "JCranky" Siqueira wrote:
>
>> Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>
> I would be too, if I could get documentation displayed when using
> autocomplete in the editor. It seems to display the docs for underlying
> Javadocs OK, but says it can't find the docs for the Scala libraries.
> Any tips?
>
> --
> Alan Burlison
> --
Paulo Siqueira
Joined: 2011-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

I *think* it parses everything by itself.

[],

Paulo "JCranky" Siqueira
http://jcranky.com

Em 26/08/2011 04:27, "Dennis Haupt" <h-star [at] gmx [dot] de> escreveu:
> does the netbeans plugin use the scala compiler for displaying error messages so that there cannot be false positives or does it parse everything by itself like idea's plugin?
> can it infer types for you?
>
>
> -------- Original-Nachricht --------
>> Datum: Fri, 26 Aug 2011 02:19:29 -0300
>> Von: "Paulo \\"JCranky\\" Siqueira" <paulo [dot] siqueira [at] gmail [dot] com>
>> An: John Cheng <johnlicheng [at] gmail [dot] com>
>> CC: scala-user [at] googlegroups [dot] com, Naftoli Gugenheim <naftoligug [at] gmail [dot] com>, HamsterofDeath <h-star [at] gmx [dot] de>
>> Betreff: Re: [scala-user] intellij vs eclipse (or rather, their scala plugins)
>
>> Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>>
>> [],
>>
>> Paulo "JCranky" Siqueira
>> http://jcranky.com
>> Em 26/08/2011 01:26, "John Cheng" <johnlicheng [at] gmail [dot] com> escreveu:
>> > done
>> >
>> > On Thu, Aug 25, 2011 at 4:52 PM, Naftoli Gugenheim
>> <naftoligug [at] gmail [dot] com>
>> wrote:
>> >> Can you file a bug report?
>> >>
>> >> On Thu, Aug 25, 2011 at 5:00 PM, John Cheng <johnlicheng [at] gmail [dot] com>
>> wrote:
>> >>>
>> >>> Interesting, I didn't think about that. This syntax also works:
>> >>>
>> >>> 0.to(25)
>> >>>
>> >>> When using the "space to do method calls" (I'm not sure what official
>> >>> terminology is), the plugin is trying to do code complete on the
>> >>> object "25". It can be argued that the IDE should "intelligently"
>> >>> assume you want completion for the result of "0 to 25" instead of for
>> >>> just 25, but maybe that's difficult to implement.
>> >>>
>> >>> On Thu, Aug 25, 2011 at 1:51 PM, HamsterofDeath <h-star [at] gmx [dot] de> wrote:
>> >>> > it works as soon as you put the range into an intermediate val/var
>> >>> >
>> >>>
>> >>> --
>> >>> ---
>> >>> John L Cheng
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > ---
>> > John L Cheng
Alan Burlison
Joined: 2011-08-26,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/26/11 16:32, Paulo "JCranky" Siqueira wrote:

> No tips, this isn't working correctly for me either, I usually have the
> scaladocs opened.

Thanks for the confirmation, which rules out the cause just being my
stupidity :) The NB plugin situation seems kinda confused - there seem
to be different versions on different websites, and different Scala
versions seem to need different plugin versions.

Paulo Siqueira
Joined: 2011-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

I usually compile the plugin from  source. Regarding different versions of the plugin for different versions of scala, I think that's true... Everything broke when I migrated to scala 2.9, until I updated the plugin.

[],

Paulo "JCranky" Siqueira
http://jcranky.com

Em 26/08/2011 14:12, "Alan Burlison" <alan [dot] burlison [at] gmail [dot] com> escreveu:
> On 08/26/11 16:32, Paulo "JCranky" Siqueira wrote:
>
>> No tips, this isn't working correctly for me either, I usually have the
>> scaladocs opened.
>
> Thanks for the confirmation, which rules out the cause just being my
> stupidity :) The NB plugin situation seems kinda confused - there seem
> to be different versions on different websites, and different Scala
> versions seem to need different plugin versions.
>
> --
> Alan Burlison
> --
H-star Development
Joined: 2010-04-14,
User offline. Last seen 2 years 26 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)
ericacm
Joined: 2011-05-14,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Since people here have been having success I decided to try using fsc
again from Idea. I am using Scala 2.8.1 and Idea 10.5 with Scala
plugin 0.4.1338.

I would prefer to use a Scala Compilation Server Run Configuration so
I can click on errors and have them navigate me directly to the line
of code.

I created a run configuration and ran it. The Run window opens with
the command

/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
-Denv.classpath="%CLASSPATH%" -Denv.emacs="%EMACS%" -
Didea.launcher.port=7533 -Didea.launcher.bin.path=/Applications/Xena-
IU-107.481.app/bin -Dfile.encoding=MacRoman -classpath /Users/
ericpederson/.m2/repository/org/scala-lang/scala-compiler/2.8.1/scala-
compiler-2.8.1.jar:/Users/ericpederson/.m2/repository/org/scala-lang/
scala-library/2.8.1/scala-library-2.8.1.jar:/Applications/Xena-
IU-107.481.app/lib/idea_rt.jar
com.intellij.rt.execution.application.AppMain
scala.tools.nsc.CompileServer

But then nothing else happens. Checking ps shows the process
running.

I tried using Settings->Compiler->Scala Compiler->Use fsc but that
does nothing. No process starts, no output is displayed.

Any ideas?

On Aug 26, 3:24 pm, HamsterofDeath wrote:
> doesn't work for me. if i don't start the server, i get an error
> (compiler error with exit code 1) :(
> any secret setting i should know about?
>
> Am 26.08.2011 16:09, schrieb Dennis Haupt:
>
>
>
>
>
>
>
> > yay
>
> > -------- Original-Nachricht --------
> >> Datum: Fri, 26 Aug 2011 06:34:26 -0700 (PDT)
> >> Von: Anthony Accioly
> >> An: scala-user
> >> Betreff: [scala-user] Re: intellij vs eclipse (or rather, their scala plugins)
> >> Andreas,
>
> >>> I don't think starting the compilation-server as a separate manual step
> >>> is  necessary any more these days. I just check the "Use FSC" in
> >>> Settings -> Compile -> Scala, no other action is taken, and IDEA starts
> >>> the compilation-server in the background. You can see the "FSC" process
> >>> using "ps" after compilation starts in IDEA.
> >> You're absolutely right. I guess old habits are hard to dismiss. :D
>
> >>> Or are you experiencing even more speed-ups starting FSC manually as you
> >>> describe?
> >> No, not at all, I just didn't know I could skip the step.
>
> >> Cheers,

John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Just noticed something about the Eclipse plugin that bothers me
slightly. I cannot view Scala source code by adding a "source
attachment". I don't always view the source code of the library I am
using, but when I do, IDE integration makes it very convenient.

Does any of the other plugins do that?

On Thu, Aug 25, 2011 at 10:19 PM, Paulo "JCranky" Siqueira
wrote:
> Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>
> [],
>
> Paulo "JCranky" Siqueira
> http://jcranky.com
>

Anthony Accioly 2
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)
Eric,


I tried using Settings->Compiler->Scala Compiler->Use fsc but that
does nothing.   No process starts, no output is displayed.

Any ideas?

Dumb question but, after you've started the compilation server and checked the option, have you run a Main method from inside the IDE or something?
Intellij don't build the project on save.

Cheers,

--
Anthony Accioly
Anthony Accioly 2
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)
Some of the builds weren't working if you didn't start the server (At least I can report so for some OS X builds).
But I can attest that
IntelliJ Build 107.333 (Linux) and scala-plugin 0.4.1205 runs fine.

Cheers,


On Fri, Aug 26, 2011 at 4:24 PM, HamsterofDeath <h-star [at] gmx [dot] de> wrote:
doesn't work for me. if i don't start the server, i get an error
(compiler error with exit code 1) :(
any secret setting i should know about?



--
Anthony Accioly
Alan Burlison
Joined: 2011-08-26,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/26/11 19:09, Paulo "JCranky" Siqueira wrote:

> I usually compile the plugin from source. Regarding different versions of
> the plugin for different versions of scala, I think that's true...
> Everything broke when I migrated to scala 2.9, until I updated the plugin.

I tried that and didn't get very far. There are at least two sets of
conflicting instructions, and it wasn't clear where the source repo was
any more - at one point it appeared to have been in the NetBeans repo,
at another it looked like it has been in the java.net one. There was
also some confusion ove whether you needed to build the full NB source
or just install the NB module builder stuff. If you know the set of
steps that's needed to get it working properly, I'd be very grateful if
you could share them.

As a p.s. - Not only am I liking learning Scala, I'm also liking this
mailing list too - thanks to everyone for the responses :-)

ericacm
Joined: 2011-05-14,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)
Hi Anthony - 
You mean have I tried to run my app?   Yes.  Nothing happens with the CompilerServer either.
Actually I was expecting the CompileServer to compile files as they change - I guess that's not the case?   It kicks off a compilation when you Run or Debug?

Thanks,
-- Eric



On Fri, Aug 26, 2011 at 5:13 PM, Anthony Accioly <a [dot] accioly [at] 7rtc [dot] com> wrote:
Eric,


I tried using Settings->Compiler->Scala Compiler->Use fsc but that
does nothing.   No process starts, no output is displayed.

Any ideas?

Dumb question but, after you've started the compilation server and checked the option, have you run a Main method from inside the IDE or something?
Intellij don't build the project on save.

Cheers,

--
Anthony Accioly

Paulo Siqueira
Joined: 2011-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
I used the source available on github: https://github.com/dcaoyuan/nbscala - and followed the instructions there.

[]s,

2011/8/26 Alan Burlison <alan [dot] burlison [at] gmail [dot] com>
On 08/26/11 19:09, Paulo "JCranky" Siqueira wrote:

I usually compile the plugin from  source. Regarding different versions of
the plugin for different versions of scala, I think that's true...
Everything broke when I migrated to scala 2.9, until I updated the plugin.

I tried that and didn't get very far.  There are at least two sets of conflicting instructions, and it wasn't clear where the source repo was any more - at one point it appeared to have been in the NetBeans repo, at another it looked like it has been in the java.net one.  There was also some confusion ove whether you needed to build the full NB source or just install the NB module builder stuff.  If you know the set of steps that's needed to get it working properly, I'd be very grateful if you could share them.

As a p.s. - Not only am I liking learning Scala, I'm also liking this mailing list too - thanks to everyone for the responses :-)

andreak 2
Joined: 2011-07-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)

On 08/26/2011 09:24 PM, HamsterofDeath wrote:
> doesn't work for me. if i don't start the server, i get an error
> (compiler error with exit code 1) :(
> any secret setting i should know about?

The secret setting might be having scala in the PATH. If you read the
error-message/stack-trace I bet you se "cannot find 'scala'" somewhere.
Try starting idea from a shell where you know scala is in the PATH and
see if it makes any difference.

andreak 2
Joined: 2011-07-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)

On 08/27/2011 12:13 AM, Eric Pederson wrote:
> Hi Anthony -
>
> You mean have I tried to run my app? Yes. Nothing happens with the
> CompilerServer either.
>
> Actually I was expecting the CompileServer to compile files as they
> change - I guess that's not the case? It kicks off a compilation
> when you Run or Debug?

IDEA is not like Eclipse where it compiles on "save". You have to
compile manually using CTRL+F9 (make project) or CTRL+SHIFT+F9 (compile
current file).

andreak 2
Joined: 2011-07-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)

On 08/26/2011 09:50 PM, ericacm wrote:
> Since people here have been having success I decided to try using fsc
> again from Idea. I am using Scala 2.8.1 and Idea 10.5 with Scala
> plugin 0.4.1338.
>
> I would prefer to use a Scala Compilation Server Run Configuration so
> I can click on errors and have them navigate me directly to the line
> of code.
>
> I created a run configuration and ran it. The Run window opens with
> the command
>
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
> -Denv.classpath="%CLASSPATH%" -Denv.emacs="%EMACS%" -
> Didea.launcher.port=7533 -Didea.launcher.bin.path=/Applications/Xena-
> IU-107.481.app/bin -Dfile.encoding=MacRoman -classpath /Users/
> ericpederson/.m2/repository/org/scala-lang/scala-compiler/2.8.1/scala-
> compiler-2.8.1.jar:/Users/ericpederson/.m2/repository/org/scala-lang/
> scala-library/2.8.1/scala-library-2.8.1.jar:/Applications/Xena-
> IU-107.481.app/lib/idea_rt.jar
> com.intellij.rt.execution.application.AppMain
> scala.tools.nsc.CompileServer
>
> But then nothing else happens. Checking ps shows the process
> running.
>
> I tried using Settings->Compiler->Scala Compiler->Use fsc but that
> does nothing. No process starts, no output is displayed.
>
> Any ideas?

Don't start any compilation-server manually, it isn't necessary. Just
check "Use FSC" and off you go. Ensure 'scala' is in you $PATH. Try
starting IDEA from a shell where you know 'scala' is in the $PATH.

Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: Re: intellij vs eclipse (or rather, their scala plugins)


On 27 August 2011 11:31, Andreas Joseph Krogh <andreas [dot] krogh [at] gmail [dot] com> wrote:
On 08/27/2011 12:13 AM, Eric Pederson wrote:
> Hi Anthony -
>
> You mean have I tried to run my app?   Yes.  Nothing happens with the
> CompilerServer either.
>
> Actually I was expecting the CompileServer to compile files as they
> change - I guess that's not the case?   It kicks off a compilation
> when you Run or Debug?

IDEA is not like Eclipse where it compiles on "save". You have to
compile manually using CTRL+F9 (make project) or CTRL+SHIFT+F9 (compile
current file).


or just launch "sbt ~compile" in the embedded console or a separate window 
Alan Burlison
Joined: 2011-08-26,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/27/11 01:27, Paulo "JCranky" Siqueira wrote:

> I used the source available on github: https://github.com/dcaoyuan/nbscala -
> and followed the instructions there.

Ta, I'll take a look.

Alan Burlison
Joined: 2011-08-26,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/27/11 01:27, Paulo "JCranky" Siqueira wrote:

> I used the source available on github: https://github.com/dcaoyuan/nbscala -
> and followed the instructions there.

I've built and installed it OK but I still get 'No document found'.
It's possible I haven't configured the Javadoc path settings properly in
the Scala platform definition - I have it pointed to the directory that
contains the index.html of the Scala doc tree.

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)


On Sat, Aug 27, 2011 at 9:01 PM, Alan Burlison <alan [dot] burlison [at] gmail [dot] com> wrote:
On 08/27/11 01:27, Paulo "JCranky" Siqueira wrote:

I used the source available on github: https://github.com/dcaoyuan/nbscala -
and followed the instructions there.

I've built and installed it OK but I still get 'No document found'. It's possible I haven't configured the Javadoc path settings properly in the Scala platform definition - I have it pointed to the directory that contains the index.html of the Scala doc tree.

Currently, nb scala only supports document which is from comments in source code.

-Caoyuan

 

Alan Burlison
Joined: 2011-08-26,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On 08/27/11 14:06, Caoyuan wrote:

> Currently, nb scala only supports document which is from comments in source
> code.

Ah right, and for the case of the standard Scala components, that won't
be available, correct?

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)


On Sat, Aug 27, 2011 at 9:11 PM, Alan Burlison <alan [dot] burlison [at] gmail [dot] com> wrote:
On 08/27/11 14:06, Caoyuan wrote:

Currently, nb scala only supports document which is from comments in source
code.

Ah right, and for the case of the standard Scala components, that won't be available, correct?

Correct. But, for maven project, if you provide the source jar for  standard Scala components, it may works. I have not testes yet.

-Caoyuan
 

Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: intellij vs eclipse (or rather, their scala plugins)


On 27 August 2011 14:33, Caoyuan <dcaoyuan [at] gmail [dot] com> wrote:


I have not testes yet.

-Caoyuan
 
 I'm not entirely convinced that that's what you meant to say... This could quite possibly get you a "typo of the year" award :)
Bill La Forge
Joined: 2011-07-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
My wife has finally learned not to trust spellcheck. (Hindi is her first language, English is her fourth.) She got frustrated yesterday because she was looking for pictures of ships and only found sheep. (typed in sheps) English is tough to learn, and the tools we have don't help a lot. Spellcheck should really provide definitions, not just a word choice. --Bill

On Sat, Aug 27, 2011 at 8:10 PM, Kevin Wright <kev [dot] lee [dot] wright [at] gmail [dot] com> wrote:


On 27 August 2011 14:33, Caoyuan <dcaoyuan [at] gmail [dot] com> wrote:


I have not testes yet.

-Caoyuan
 
 I'm not entirely convinced that that's what you meant to say... This could quite possibly get you a "typo of the year" award :)

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)


On Sat, Aug 27, 2011 at 10:40 PM, Kevin Wright <kev [dot] lee [dot] wright [at] gmail [dot] com> wrote:


On 27 August 2011 14:33, Caoyuan <dcaoyuan [at] gmail [dot] com> wrote:


I have not testes yet.

-Caoyuan
 
 I'm not entirely convinced that that's what you meant to say... This could quite possibly get you a "typo of the year" award :)

You know what I meant, I drunk too much :-)
 
Paulo Siqueira
Joined: 2011-04-13,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

I don't think it works, that's my environment but no docs for scala apis are shown, only java's.

[],

Paulo "JCranky" Siqueira
http://jcranky.com

Em 27/08/2011 10:33, "Caoyuan" <dcaoyuan [at] gmail [dot] com> escreveu:
> On Sat, Aug 27, 2011 at 9:11 PM, Alan Burlison <alan [dot] burlison [at] gmail [dot] com>wrote:
>
>> On 08/27/11 14:06, Caoyuan wrote:
>>
>> Currently, nb scala only supports document which is from comments in
>>> source
>>> code.
>>>
>>
>> Ah right, and for the case of the standard Scala components, that won't be
>> available, correct?
>>
>
> Correct. But, for maven project, if you provide the source jar for standard
> Scala components, it may works. I have not testes yet.
>
> -Caoyuan
>
>
>>
>> --
>> Alan Burlison
>> --
>>
Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)


On Sat, Aug 27, 2011 at 11:12 PM, Paulo "JCranky" Siqueira <paulo [dot] siqueira [at] gmail [dot] com> wrote:

I don't think it works, that's my environment but no docs for scala apis are shown, only java's.


You are right, it doesn't work. I'll add this feature in the future.

-Caoyuan
 

[],

Paulo "JCranky" Siqueira
http://jcranky.com

Em 27/08/2011 10:33, "Caoyuan" <dcaoyuan [at] gmail [dot] com> escreveu:
> On Sat, Aug 27, 2011 at 9:11 PM, Alan Burlison <alan [dot] burlison [at] gmail [dot] com>wrote:
>
>> On 08/27/11 14:06, Caoyuan wrote:
>>
>> Currently, nb scala only supports document which is from comments in
>>> source
>>> code.
>>>
>>
>> Ah right, and for the case of the standard Scala components, that won't be
>> available, correct?
>>
>
> Correct. But, for maven project, if you provide the source jar for standard
> Scala components, it may works. I have not testes yet.
>
> -Caoyuan
>
>
>>
>> --
>> Alan Burlison
>> --
>>

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
That's not determined by the Scala plugin. What are you trying to add a source attachment to, and how did it get into your project?

On Fri, Aug 26, 2011 at 4:40 PM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
Just noticed something about the Eclipse plugin that bothers me
slightly. I cannot view Scala source code by adding a "source
attachment". I don't always view the source code of the library I am
using, but when I do, IDE integration makes it very convenient.

Does any of the other plugins do that?

On Thu, Aug 25, 2011 at 10:19 PM, Paulo "JCranky" Siqueira
<paulo [dot] siqueira [at] gmail [dot] com> wrote:
> Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>
> [],
>
> Paulo "JCranky" Siqueira
> http://jcranky.com
>
--
---
John L Cheng

Jeppe Nejsum Madsen
Joined: 2009-05-19,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

Naftoli Gugenheim writes:

> That's not determined by the Scala plugin. What are you trying to add a
> source attachment to, and how did it get into your project?
>
>
> On Fri, Aug 26, 2011 at 4:40 PM, John Cheng wrote:
>
>> Just noticed something about the Eclipse plugin that bothers me
>> slightly. I cannot view Scala source code by adding a "source
>> attachment". I don't always view the source code of the library I am
>> using, but when I do, IDE integration makes it very convenient.

"View source" (mostly) works for me in Eclipse with the lift
source. Though sometimes I have to do a refresh on the workspace before
it works....

Source jars are added automatically by my gradle build script

/Jeppe

John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

What I mean is that it would be nice if a plugin (on Eclipse, IDEA, or
Netbeans) can provide this functionality.

The jar files come from Casbah, added via SBT and sbteclipse. My guess
is that Eclipse treats Casbah binary as regular Java code and tries to
look for Java source code files. It may not be feasible to override
how Eclipse looks up source attachments to jar files, but it would
sure be really nice if there is an easy way to view Scala source code
for 3rd party scala libraries.

On Sun, Aug 28, 2011 at 4:06 PM, Naftoli Gugenheim wrote:
> That's not determined by the Scala plugin. What are you trying to add a
> source attachment to, and how did it get into your project?
>
> On Fri, Aug 26, 2011 at 4:40 PM, John Cheng wrote:
>>
>> Just noticed something about the Eclipse plugin that bothers me
>> slightly. I cannot view Scala source code by adding a "source
>> attachment". I don't always view the source code of the library I am
>> using, but when I do, IDE integration makes it very convenient.
>>
>> Does any of the other plugins do that?
>>
>> On Thu, Aug 25, 2011 at 10:19 PM, Paulo "JCranky" Siqueira
>> wrote:
>> > Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>> >
>> > [],
>> >
>> > Paulo "JCranky" Siqueira
>> > http://jcranky.com
>> >
>> --
>> ---
>> John L Cheng
>
>

John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

>> On Fri, Aug 26, 2011 at 4:40 PM, John Cheng wrote:
>>
>>> Just noticed something about the Eclipse plugin that bothers me
>>> slightly. I cannot view Scala source code by adding a "source
>>> attachment". I don't always view the source code of the library I am
>>> using, but when I do, IDE integration makes it very convenient.
>
> "View source" (mostly) works for me in Eclipse with the lift
> source. Though sometimes I have to do a refresh on the workspace before
> it works....
>
> Source jars are added automatically by my gradle build script
>
> /Jeppe
>

Perhaps I am doing something wrong. So you can open a Lift library
under the "Referenced Libraries" tree (in Package Explorer) and see
the Scala source code for Lift? Which version of Lift are you using?

Caoyuan
Joined: 2009-01-18,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
For Maven project in NetBeans' scala plugin, if the source jar had been downloaded (by right clicking on Dependencies, then choose 'Download Sources'), you can CTL+click to open/jump to the referred source file.

On Mon, Aug 29, 2011 at 11:46 PM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
What I mean is that it would be nice if a plugin (on Eclipse, IDEA, or
Netbeans) can provide this functionality.

The jar files come from Casbah, added via SBT and sbteclipse. My guess
is that Eclipse treats Casbah binary as regular Java code and tries to
look for Java source code files. It may not be feasible to override
how Eclipse looks up source attachments to jar files, but it would
sure be really nice if there is an easy way to view Scala source code
for 3rd party scala libraries.


On Sun, Aug 28, 2011 at 4:06 PM, Naftoli Gugenheim <naftoligug [at] gmail [dot] com> wrote:
> That's not determined by the Scala plugin. What are you trying to add a
> source attachment to, and how did it get into your project?
>
> On Fri, Aug 26, 2011 at 4:40 PM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
>>
>> Just noticed something about the Eclipse plugin that bothers me
>> slightly. I cannot view Scala source code by adding a "source
>> attachment". I don't always view the source code of the library I am
>> using, but when I do, IDE integration makes it very convenient.
>>
>> Does any of the other plugins do that?
>>
>> On Thu, Aug 25, 2011 at 10:19 PM, Paulo "JCranky" Siqueira
>> <paulo [dot] siqueira [at] gmail [dot] com> wrote:
>> > Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>> >
>> > [],
>> >
>> > Paulo "JCranky" Siqueira
>> > http://jcranky.com
>> >
>> --
>> ---
>> John L Cheng
>
>



--
---
John L Cheng

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
Wait, did you try opening the jar's properties and checking or setting the attached source location?For instance, sbt-eclipse-integration --- an eclipse plugin --- creates its own classpath containers which are not editable by the user, so if it doesn't find the source you're stuck. But I would assume sbteclipse just adds the jars directly to the project definition, which means their source lookup should be editable. If your issue is that you would expect sbteclipse to specify the source path for you, then it's an sbteclipse question. For instance, the plugin for sbt 0.10 requires an extra parameter to add source information --- I think you do 'eclipse with-sources' or something (use tab completion to find out).
But again, I don't think it has anything to do with the scala plugin. There's nothing scala specific about attaching a source location per se. Of course the scala plugin gets involved, for instance to allow jumping to a definition or opening the quick outline, and it's possible that it would have a bug that would stop it from being able to open the source, of course (not that I know of such a bug).

On Mon, Aug 29, 2011 at 11:46 AM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
What I mean is that it would be nice if a plugin (on Eclipse, IDEA, or
Netbeans) can provide this functionality.

The jar files come from Casbah, added via SBT and sbteclipse. My guess
is that Eclipse treats Casbah binary as regular Java code and tries to
look for Java source code files. It may not be feasible to override
how Eclipse looks up source attachments to jar files, but it would
sure be really nice if there is an easy way to view Scala source code
for 3rd party scala libraries.


On Sun, Aug 28, 2011 at 4:06 PM, Naftoli Gugenheim <naftoligug [at] gmail [dot] com> wrote:
> That's not determined by the Scala plugin. What are you trying to add a
> source attachment to, and how did it get into your project?
>
> On Fri, Aug 26, 2011 at 4:40 PM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
>>
>> Just noticed something about the Eclipse plugin that bothers me
>> slightly. I cannot view Scala source code by adding a "source
>> attachment". I don't always view the source code of the library I am
>> using, but when I do, IDE integration makes it very convenient.
>>
>> Does any of the other plugins do that?
>>
>> On Thu, Aug 25, 2011 at 10:19 PM, Paulo "JCranky" Siqueira
>> <paulo [dot] siqueira [at] gmail [dot] com> wrote:
>> > Why not give the Netbeans plugin a try as well? I'm happy with it :-)
>> >
>> > [],
>> >
>> > Paulo "JCranky" Siqueira
>> > http://jcranky.com
>> >
>> --
>> ---
>> John L Cheng
>
>



--
---
John L Cheng

John L. Cheng
Joined: 2011-07-30,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)

On Mon, Aug 29, 2011 at 8:06 PM, Naftoli Gugenheim wrote:
> Wait, did you try opening the jar's properties and checking or setting the
> attached source location?
Yup. I did. The source path can be modified and it is pointing to a
jar file with BarewordOperators.scala, CoreOperators.scala, and
Implicits.scala
https://lh3.googleusercontent.com/-4WiOiybxKpo/Tlxwhx5rY_I/AAAAAAAAAJc/G...

> If your issue is that you would expect sbteclipse to specify the source path
> for you, then it's an sbteclipse question. For instance, the plugin for sbt
> 0.10 requires an extra parameter to add source information --- I think you
> do 'eclipse with-sources' or something (use tab completion to find out).

No, no, no. That's not what I am trying to get at. I think sbteclipse
did exactly what it advertised; I have no problems with it or the
eclipse plugin. What I am getting at is that even with the sourcepath
correctly set, I am not able to view the Scala source code for 3rd
party libraries.

> But again, I don't think it has anything to do with the scala plugin.

No. I don't find fault with the Eclipse scala plugin for this. I am
wondering if I am the only one with this problem (perhaps through user
error) or if it is just the state of things. I am saying it would
certainly be a nice feature. I would definitely try out an alternative
IDE+plugin that makes this possible.

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: intellij vs eclipse (or rather, their scala plugins)
Okay, I don't know why I thought you were saying that the source path was not editable...Anyway for me it definitely works, so you should ask on scala-ide-user.

On Tue, Aug 30, 2011 at 1:20 AM, John Cheng <johnlicheng [at] gmail [dot] com> wrote:
On Mon, Aug 29, 2011 at 8:06 PM, Naftoli Gugenheim <naftoligug [at] gmail [dot] com> wrote:
> Wait, did you try opening the jar's properties and checking or setting the
> attached source location?
Yup. I did. The source path can be modified and it is pointing to a
jar file with  BarewordOperators.scala, CoreOperators.scala, and
Implicits.scala
https://lh3.googleusercontent.com/-4WiOiybxKpo/Tlxwhx5rY_I/AAAAAAAAAJc/Ghr7qKE-RdI/s912/Selection_010.png

> If your issue is that you would expect sbteclipse to specify the source path
> for you, then it's an sbteclipse question. For instance, the plugin for sbt
> 0.10 requires an extra parameter to add source information --- I think you
> do 'eclipse with-sources' or something (use tab completion to find out).

No, no, no. That's not what I am trying to get at. I think sbteclipse
did exactly what it advertised; I have no problems with it or the
eclipse plugin. What I am getting at is that even with the sourcepath
correctly set, I am not able to view the Scala source code for 3rd
party libraries.

> But again, I don't think it has anything to do with the scala plugin.

No. I don't find fault with the Eclipse scala plugin for this. I am
wondering if I am the only one with this problem (perhaps through user
error) or if it is just the state of things. I am saying it would
certainly be a nice feature. I would definitely try out an alternative
IDE+plugin that makes this possible.

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