- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala Plugin for Eclipse: Support for Eclipse plugin and OSGi development ..
Tue, 2009-02-17, 12:55
Hi,
The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse)
states that there is support for Eclipse plugin and OSGi development.
Is there some documentation available for that support?
Stefan
Tue, 2009-02-17, 13:27
#2
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and O
There is some documentation on the Eclipse Wiki:
http://wiki.eclipse.org/Scala_Bundle
On Tue, Feb 17, 2009 at 12:00 PM, Miles Sabin wrote:
> On Tue, Feb 17, 2009 at 8:59 AM, Stefan Liebig
> wrote:
>> The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse) states
>> that there is support for Eclipse plugin and OSGi development.
>> Is there some documentation available for that support?
>
> Not specifically (contributions always welcome) ... basically many
> things will work exactly as they would for plugin development with
> Java.
>
> Cheers,
>
>
> Miles
>
> --
> Miles Sabin
> tel: +44 (0)1273 720 779
> mobile: +44 (0)7813 944 528
> skype: milessabin
>
Tue, 2009-02-17, 13:37
#3
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and
I saw that but it did not work for me. Maybe I have to try harder!
This wiki page is from June 2007 - I will update it if I get it to work.
Tschüß,
Stefan
Neil Bartlett wrote:
> There is some documentation on the Eclipse Wiki:
>
> http://wiki.eclipse.org/Scala_Bundle
>
>
>
> On Tue, Feb 17, 2009 at 12:00 PM, Miles Sabin wrote:
>> On Tue, Feb 17, 2009 at 8:59 AM, Stefan Liebig
>> wrote:
>>> The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse) states
>>> that there is support for Eclipse plugin and OSGi development.
>>> Is there some documentation available for that support?
>> Not specifically (contributions always welcome) ... basically many
>> things will work exactly as they would for plugin development with
>> Java.
>>
>> Cheers,
>>
>>
>> Miles
>>
>> --
>> Miles Sabin
>> tel: +44 (0)1273 720 779
>> mobile: +44 (0)7813 944 528
>> skype: milessabin
>>
>
Tue, 2009-02-17, 13:47
#4
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and O
On Tue, Feb 17, 2009 at 12:14 PM, Neil Bartlett wrote:
> There is some documentation on the Eclipse Wiki:
>
> http://wiki.eclipse.org/Scala_Bundle
Interesting!
Do you know who's responsible for that page? I ask because it contains
at least one important error: the Java builder shouldn't be included
in Scala PDE projects any more ... it looks like it was written
relative to an older release of the plugin.
Cheers,
Miles
Tue, 2009-02-17, 13:47
#5
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and O
Oops I hit "Send" a bit too quickly. I meant to comment additionally
that the Eclipse community is starting to look seriously at other JVM
languages for plug-in development. This includes Scala and there has
been considerable discussion about it on the "E4" (Eclipse 4.0)
project mailing list.
It's time for these two communities to be talking to each other more!
I will send a similar mail to the E4 list.
Regards
Neil
On Tue, Feb 17, 2009 at 12:14 PM, Neil Bartlett wrote:
> There is some documentation on the Eclipse Wiki:
>
> http://wiki.eclipse.org/Scala_Bundle
>
>
>
> On Tue, Feb 17, 2009 at 12:00 PM, Miles Sabin wrote:
>> On Tue, Feb 17, 2009 at 8:59 AM, Stefan Liebig
>> wrote:
>>> The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse) states
>>> that there is support for Eclipse plugin and OSGi development.
>>> Is there some documentation available for that support?
>>
>> Not specifically (contributions always welcome) ... basically many
>> things will work exactly as they would for plugin development with
>> Java.
>>
>> Cheers,
>>
>>
>> Miles
>>
>> --
>> Miles Sabin
>> tel: +44 (0)1273 720 779
>> mobile: +44 (0)7813 944 528
>> skype: milessabin
>>
>
Tue, 2009-02-17, 13:57
#6
Re: Re: Scala Plugin for Eclipse: Support for Eclipse plugin a
I actually have a toy workspace I've been playing in where I'm using BND to create valid manifests for all the scala artifacts (instead of creating a new one with just the library). If I ever get around to finishing, perhaps it may be an easier way to go for creating OSGi scala bundles than exists currently.
I'm also attempting to create an OSGi scalac plugin that can be used when building OSGi bundles (the Eclipse Plugin specificially) to enforce OSGi package/class visibility rules. The project resides here, but is still in its infancy. I'm hoping for it to be precursor to an SIP. I've already run into an issue that I'm not sure I can solve inside a plugin and would need a compiler change to fix.
If anyone else is interested in contributing to this effort, please let me know!
-Josh
On Tue, Feb 17, 2009 at 7:28 AM, Stefan Liebig <Stefan.Liebig@compeople.de> wrote:
I'm also attempting to create an OSGi scalac plugin that can be used when building OSGi bundles (the Eclipse Plugin specificially) to enforce OSGi package/class visibility rules. The project resides here, but is still in its infancy. I'm hoping for it to be precursor to an SIP. I've already run into an issue that I'm not sure I can solve inside a plugin and would need a compiler change to fix.
If anyone else is interested in contributing to this effort, please let me know!
-Josh
On Tue, Feb 17, 2009 at 7:28 AM, Stefan Liebig <Stefan.Liebig@compeople.de> wrote:
I saw that but it did not work for me. Maybe I have to try harder!
This wiki page is from June 2007 - I will update it if I get it to work.
Tschüß,
Stefan
Neil Bartlett wrote:
There is some documentation on the Eclipse Wiki:
http://wiki.eclipse.org/Scala_Bundle
On Tue, Feb 17, 2009 at 12:00 PM, Miles Sabin <miles@milessabin.com> wrote:
On Tue, Feb 17, 2009 at 8:59 AM, Stefan Liebig
<Stefan.Liebig@compeople.de> wrote:
The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse) statesNot specifically (contributions always welcome) ... basically many
that there is support for Eclipse plugin and OSGi development.
Is there some documentation available for that support?
things will work exactly as they would for plugin development with
Java.
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype: milessabin
Tue, 2009-02-17, 14:07
#7
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and
See at the end of the wiki page. It is Tom Watson (tjwatson@us.ibm.com).
Tschüß,
Stefan
Miles Sabin wrote:
> On Tue, Feb 17, 2009 at 12:14 PM, Neil Bartlett wrote:
>> There is some documentation on the Eclipse Wiki:
>>
>> http://wiki.eclipse.org/Scala_Bundle
>
> Interesting!
>
> Do you know who's responsible for that page? I ask because it contains
> at least one important error: the Java builder shouldn't be included
> in Scala PDE projects any more ... it looks like it was written
> relative to an older release of the plugin.
>
> Cheers,
>
>
> Miles
>
Tue, 2009-02-17, 14:07
#8
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and O
On Tue, Feb 17, 2009 at 12:38 PM, Neil Bartlett wrote:
> Oops I hit "Send" a bit too quickly. I meant to comment additionally
> that the Eclipse community is starting to look seriously at other JVM
> languages for plug-in development. This includes Scala and there has
> been considerable discussion about it on the "E4" (Eclipse 4.0)
> project mailing list.
>
> It's time for these two communities to be talking to each other more!
> I will send a similar mail to the E4 list.
This looks very encouraging ... thanks for the pointer!
Cheers,
Miles
Tue, 2009-02-17, 14:17
#9
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and
Yes, that´s right but I think that this topic should not be "restricted"
to E4 only.
Tschüß,
Stefan
Neil Bartlett wrote:
> Oops I hit "Send" a bit too quickly. I meant to comment additionally
> that the Eclipse community is starting to look seriously at other JVM
> languages for plug-in development. This includes Scala and there has
> been considerable discussion about it on the "E4" (Eclipse 4.0)
> project mailing list.
>
> It's time for these two communities to be talking to each other more!
> I will send a similar mail to the E4 list.
>
> Regards
> Neil
>
> On Tue, Feb 17, 2009 at 12:14 PM, Neil Bartlett wrote:
>> There is some documentation on the Eclipse Wiki:
>>
>> http://wiki.eclipse.org/Scala_Bundle
>>
>>
>>
>> On Tue, Feb 17, 2009 at 12:00 PM, Miles Sabin wrote:
>>> On Tue, Feb 17, 2009 at 8:59 AM, Stefan Liebig
>>> wrote:
>>>> The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse) states
>>>> that there is support for Eclipse plugin and OSGi development.
>>>> Is there some documentation available for that support?
>>> Not specifically (contributions always welcome) ... basically many
>>> things will work exactly as they would for plugin development with
>>> Java.
>>>
>>> Cheers,
>>>
>>>
>>> Miles
>>>
>>> --
>>> Miles Sabin
>>> tel: +44 (0)1273 720 779
>>> mobile: +44 (0)7813 944 528
>>> skype: milessabin
>>>
>
Tue, 2009-02-17, 14:27
#10
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and O
The scala stuff I'm using is pretty much exclusively PDE / OSGi based.
The major requirement is to require / import the scala jar itself.
Other than that most of it works fine, the only problem I've noted is
that sometimes the dependencies don't always carry over if you change
things within a package into other bundles. Clean all solves that
however, and each release seems a little better at handling this, but
I couldn't give simple examples for it either way.
On 2/17/09, Miles Sabin wrote:
> On Tue, Feb 17, 2009 at 12:38 PM, Neil Bartlett wrote:
> > Oops I hit "Send" a bit too quickly. I meant to comment additionally
> > that the Eclipse community is starting to look seriously at other JVM
> > languages for plug-in development. This includes Scala and there has
> > been considerable discussion about it on the "E4" (Eclipse 4.0)
> > project mailing list.
> >
> > It's time for these two communities to be talking to each other more!
> > I will send a similar mail to the E4 list.
>
>
> This looks very encouraging ... thanks for the pointer!
>
>
> Cheers,
>
>
> Miles
>
> --
> Miles Sabin
> tel: +44 (0)1273 720 779
> mobile: +44 (0)7813 944 528
> skype: milessabin
>
Tue, 2009-02-17, 14:37
#11
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and
Chris,
Do you tweak the .project as described in
http://wiki.eclipse.org/Scala_Bundle ?
Tschüß,
Stefan
Chris Twiner wrote:
> The scala stuff I'm using is pretty much exclusively PDE / OSGi based.
> The major requirement is to require / import the scala jar itself.
> Other than that most of it works fine, the only problem I've noted is
> that sometimes the dependencies don't always carry over if you change
> things within a package into other bundles. Clean all solves that
> however, and each release seems a little better at handling this, but
> I couldn't give simple examples for it either way.
>
> On 2/17/09, Miles Sabin wrote:
>> On Tue, Feb 17, 2009 at 12:38 PM, Neil Bartlett wrote:
>> > Oops I hit "Send" a bit too quickly. I meant to comment additionally
>> > that the Eclipse community is starting to look seriously at other JVM
>> > languages for plug-in development. This includes Scala and there has
>> > been considerable discussion about it on the "E4" (Eclipse 4.0)
>> > project mailing list.
>> >
>> > It's time for these two communities to be talking to each other more!
>> > I will send a similar mail to the E4 list.
>>
>>
>> This looks very encouraging ... thanks for the pointer!
>>
>>
>> Cheers,
>>
>>
>> Miles
>>
>> --
>> Miles Sabin
>> tel: +44 (0)1273 720 779
>> mobile: +44 (0)7813 944 528
>> skype: milessabin
>>
>
Tue, 2009-02-17, 14:47
#12
Re: Re: Scala Plugin for Eclipse: Support for Eclipse plugin a
On Tue, Feb 17, 2009 at 1:30 PM, Stefan Liebig
wrote:
> Do you tweak the .project as described in
> http://wiki.eclipse.org/Scala_Bundle ?
Not quite: don't add the javabuilder, and do make sure you have
per-project settings set up as described here,
http://www.scala-lang.org/node/94
in the section headed "Important Upgrade Note".
Cheers,
Miles
Tue, 2009-02-17, 15:17
#13
Re: Re: Scala Plugin for Eclipse: Support for Eclipse plugin a
Originally yes, but with the improved plugin I just followed the
instructions from Sean and Miles and it worked fine, basically PDE /
JAVA app first, add scala nature. Classpath:
<?xml version="1.0" encoding="UTF-8"?>
project file:
<?xml version="1.0" encoding="UTF-8"?>
scalesUtils
ch.epfl.lamp.sdt.core.scalabuilder
org.eclipse.pde.ManifestBuilder
org.eclipse.pde.PluginNature
org.eclipse.jdt.core.javanature
ch.epfl.lamp.sdt.core.scalanature
hope that helps.
On 2/17/09, Stefan Liebig wrote:
> Chris,
>
> Do you tweak the .project as described in
> http://wiki.eclipse.org/Scala_Bundle ?
>
> Tschüß,
> Stefan
>
>
> Chris Twiner wrote:
>
> > The scala stuff I'm using is pretty much exclusively PDE / OSGi based.
> > The major requirement is to require / import the scala jar itself.
> > Other than that most of it works fine, the only problem I've noted is
> > that sometimes the dependencies don't always carry over if you change
> > things within a package into other bundles. Clean all solves that
> > however, and each release seems a little better at handling this, but
> > I couldn't give simple examples for it either way.
> >
> > On 2/17/09, Miles Sabin wrote:
> >
> > > On Tue, Feb 17, 2009 at 12:38 PM, Neil Bartlett
> wrote:
> > > > Oops I hit "Send" a bit too quickly. I meant to comment additionally
> > > > that the Eclipse community is starting to look seriously at other JVM
> > > > languages for plug-in development. This includes Scala and there has
> > > > been considerable discussion about it on the "E4" (Eclipse 4.0)
> > > > project mailing list.
> > > >
> > > > It's time for these two communities to be talking to each other more!
> > > > I will send a similar mail to the E4 list.
> > >
> > >
> > > This looks very encouraging ... thanks for the pointer!
> > >
> > >
> > > Cheers,
> > >
> > >
> > > Miles
> > >
> > > --
> > > Miles Sabin
> > > tel: +44 (0)1273 720 779
> > > mobile: +44 (0)7813 944 528
> > > skype: milessabin
> > >
> > >
> >
> >
>
>
Tue, 2009-02-17, 15:27
#14
Re: Re: Scala Plugin for Eclipse: Support for Eclipse plugin a
On 2/17/09, Miles Sabin wrote:
> On Tue, Feb 17, 2009 at 1:30 PM, Stefan Liebig
>
> wrote:
>
> > Do you tweak the .project as described in
> > http://wiki.eclipse.org/Scala_Bundle ?
>
>
> Not quite: don't add the javabuilder, and do make sure you have
> per-project settings set up as described here,
>
>
> http://www.scala-lang.org/node/94
>
>
> in the section headed "Important Upgrade Note".
exactly the bit I was just looking for :-)
Tue, 2009-02-17, 15:37
#15
Re: Re: Scala Plugin for Eclipse: Support for Eclipse plugin a
On Tue, Feb 17, 2009 at 2:07 PM, Chris Twiner wrote:
> Originally yes, but with the improved plugin I just followed the
> instructions from Sean and Miles and it worked fine, basically PDE /
> JAVA app first, add scala nature.
It'd be great if someone could add that to the (now editable) plugin FAQ here,
http://lampsvn.epfl.ch/trac/scala/wiki/EclipsePluginFAQ
(Trac login required).
Cheers,
Miles
Tue, 2009-02-17, 16:57
#16
Re: Scala Plugin for Eclipse: Support for Eclipse plugin and O
In a nutshell, I can confirm Scala and OSGi works and works pretty well in
general. For specific environments YMMV.
I have been using Emacs, Maven, scala-maven-plugin and the
osgi-bundle-maven-plugin from the Felix project with Scala for months.
Currently we have modest code projects in the 10k-20k range building and
with test deploying 5-8 bundles on Felix, Knoplerfish, ServiceMix, and
briefly with Eclipse's standalone impl. No issues. I have plenty of sample
maven poms etc.
I can say so far its been great within the bounds of the above toolset.
The latest Apache Felix osgi bundle maven plugin to build Java bundles has
worked perfectly with Scala based code. These same Maven poms building
Scala code into OSGi bundles works pretty code in Netbeans which a portion
of the team uses.
We did some brief experimentation with Eclipse but Netbeans was providing an
easier path so we moved in that direction. A few dinos stayed with emacs,
and maven with some very modest custom .el elisp work
Ray
Stefan Liebig-2 wrote:
>
> Hi,
>
> The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse)
> states that there is support for Eclipse plugin and OSGi development.
> Is there some documentation available for that support?
>
> Stefan
>
>
>
On Tue, Feb 17, 2009 at 8:59 AM, Stefan Liebig
wrote:
> The page http://www.scala-lang.org/node/94 (Scala Plugin for Eclipse) states
> that there is support for Eclipse plugin and OSGi development.
> Is there some documentation available for that support?
Not specifically (contributions always welcome) ... basically many
things will work exactly as they would for plugin development with
Java.
Cheers,
Miles