|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
[scala-tools] Getting the plugin running in Eclipse PDEHi,
I'm trying to run the Scala plugin (2.7.5) in the Eclipse PDE (to hack some JUnit stuff :-), but can't seem to get it to run correctly Reading http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin it seem it shouldn't be necessary to create a config.ini for Eclipse 3.5? I've imported great many plugins to my workspace (jdt, scala, etc) and I don't get any errors on launch of the PDE workbench. But compiling a Scala project in the launched workbench fails. It reports lots of Java problems on Scala source files? Only the scala builder is enabled for the project. JDT weaving seems disabled, and enabling doesn't do anything. My guess is this might be causing some problems? Any hints? /Jeppe |
|
|
|
|
|
|
|
|
Re: [scala-tools] Getting the plugin running in Eclipse PDEOn Wed, Jul 8, 2009 at 3:02 PM, Jeppe Nejsum Madsen<jeppe@...> wrote:
> I'm trying to run the Scala plugin (2.7.5) in the Eclipse PDE (to hack some > JUnit stuff :-), but can't seem to get it to run correctly > > Reading http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin it seem it > shouldn't be necessary to create a config.ini for Eclipse 3.5? Nb. the following is *only* relevant to people who want to help out with developement of the Scala IDE for Eclipse, not to people who just want to use it. For the development time workspace (ie. the outer, hosting one) that's true. Unfortunately you do still need a config.ini for the runtime workspace (ie. the inner, hosted one). The section "Creating a config.ini file" here, http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin should get you going. Great to hear that you want to work on JUnit integration! If you can cope with the pain of the current state of trunk, I'd very much appreciate it if you worked there rather than on the 2.7.x branch ... it'll make it a lot easier to integrate anything you can contribute to the next release. Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://www.chuusai.com/ http://twitter.com/milessabin |
|
|
Re: [scala-tools] Getting the plugin running in Eclipse PDEOn Wed, Jul 8, 2009 at 6:15 PM, Miles Sabin<miles@...> wrote:
> On Wed, Jul 8, 2009 at 3:02 PM, Jeppe Nejsum Madsen<jeppe@...> wrote: >> I'm trying to run the Scala plugin (2.7.5) in the Eclipse PDE (to hack some >> JUnit stuff :-), but can't seem to get it to run correctly >> >> Reading http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin it seem it >> shouldn't be necessary to create a config.ini for Eclipse 3.5? > > Nb. the following is *only* relevant to people who want to help out > with developement of the Scala IDE for Eclipse, not to people who just > want to use it. > > For the development time workspace (ie. the outer, hosting one) that's > true. Unfortunately you do still need a config.ini for the runtime > workspace (ie. the inner, hosted one). The section "Creating a > config.ini file" here, > > http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePlugin That worked (my config.ini already contained a osgi.framework.extensions, which I commented out) > Great to hear that you want to work on JUnit integration! If you can > cope with the pain of the current state of trunk, I'd very much > appreciate it if you worked there rather than on the 2.7.x branch ... > it'll make it a lot easier to integrate anything you can contribute to > the next release. I'll see what I can do, but don't get your hopes up just yet :-) One showstopper for using trunk is that afaik, Lift doesn't currently work with 2.8, which means I will not be running trunk on a regular basis /Jeppe |
|
|
Re: [scala-tools] Getting the plugin running in Eclipse PDEOn Wed, Jul 8, 2009 at 6:15 PM, Miles Sabin<miles@...> wrote:
> Great to hear that you want to work on JUnit integration! If you can > cope with the pain of the current state of trunk, I'd very much > appreciate it if you worked there rather than on the 2.7.x branch ... > it'll make it a lot easier to integrate anything you can contribute to > the next release. Don't know if this is the right place for discussing plugin development, but: Just for fun I tried running with trunk but since neither Lift nor specs seem to run with 2.8 this seems like a dead end for now (for me at least). Real pita that scala is not binary compatible between versions. The issue I was trying to solve was the inability of the Eclipse JUnit runner to launch specs test cases without weird workarounds. A brief debugging session (with 2.7.5) showed that with a declaration like class UserUnitTest extends JUnit4(UserSpec) It seems like Eclipse is unable to find the superclass of UserUnitTest and therefore figure out that JUnit4 has the RunWith annotation. I haven't digged deep into the Scala plugin, but was wondering if this is some bigger piece that's missing or just i mishap in this specific case? /Jeppe |
|
|
Re: [scala-tools] Getting the plugin running in Eclipse PDEOn Wed, Jul 8, 2009 at 10:36 PM, Jeppe Nejsum Madsen<jeppe@...> wrote:
> The issue I was trying to solve was the inability of the Eclipse JUnit > runner to launch specs test cases without weird workarounds. A brief > debugging session (with 2.7.5) showed that with a declaration like > > class UserUnitTest extends JUnit4(UserSpec) > > It seems like Eclipse is unable to find the superclass of UserUnitTest > and therefore figure out that JUnit4 has the RunWith annotation. I > haven't digged deep into the Scala plugin, but was wondering if this > is some bigger piece that's missing or just i mishap in this specific > case? This sounds like quite a plausible diagnosis ... the IDE isn't constructing the corresponding JDT type hierarchy completely/correctly at the moment, and very likely that's frustrating searches which depend on the type hierarchy. Patches (against trunk if at all possible) which address that would be very much appreciated, but failing that, a ticket on Trac so that this doesn't get forgotten would help too. Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://www.chuusai.com/ http://twitter.com/milessabin |
|
|
|
|
|
Re: [scala-tools] Getting the plugin running in Eclipse PDEOn Thu, Jul 9, 2009 at 4:18 PM, Naftoli Gugenhem<naftoligug@...> wrote:
> P.S. Does anyone have 2.7.5 working well in eclipse 3.5? It works just fine. I'd recommend 3.5 over 3.4.2 as it happens. Cheers, Miles -- Miles Sabin tel: +44 (0)7813 944 528 skype: milessabin http://www.chuusai.com/ http://twitter.com/milessabin |
|
|
|
|
|
|
|
|
Re: Fwd: [scala-tools] Getting the plugin running in Eclipse PDEJeppe Nejsum Madsen wrote:
> Arrgh again missed the list. > > To list owner: Could the Reply-To please be set to the list?? > > /Jeppe > This is a recurring request. Last time I asked to our sysadmin, this was the response: Fabien Salvi wrote: > I don't agree :) > > There was already a thread on the scala mailing list some time ago about > that : > http://osdir.com/ml/lang.scala.user/2008-01/msg00136.html > After discussions with Martin, we decided to let the setting like it is > now because only half people were in favor of a reply-to-list... > > In my opinion, a reply-to-list is not a good solution, because it makes > difficult to reply only to the sender. Eg: with my Thunderbird (I don't > know about others email clients), when the list is configured with > reply-to-list (eg LAMP list), a "Reply" or "Reply-All" only gives the > mailing list address, not the sender address. If I want to reply only to > the sender, I have to copy and paste his email, which is quite annoying... > Anyway, it's not up to me to decide about that, but I think you should > see with Martin and others because it was already discussed before. |
| Free embeddable forum powered by Nabble | Forum Help |