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

scala.library bundle

1 reply
Erkki Lindpere
Joined: 2008-12-19,
User offline. Last seen 42 years 45 weeks ago.

Is there any particular reason why the scala.library bundle (and also
the scala.tools.nsc bundle) are marked as singletons?
( Bundle-SymbolicName: scala.tools.nsc;singleton:=true )

To my knowledge, this is only necessary for plugin.xml (extensions and
extension points) but neither of the plug-ins use that.

I'm asking because I just ran into an issue where I couldn't package a
particular version of Scala library 2.8 with my plug-in because 2.7.7
was already installed. So I resorted to including the library as a Jar
within my plug-in (and it's now a 5MB plugin)

I think the Scala IDE shouldn't necessarily be confused by multiple
versions of these bundles: it will get wired to the version that it
specifies, for example [2.8.0,2.9.0) would wire it to the latest Scala
2.8 dev plug-in available.
Also, in the future it would be nice if the IDE supported multiple
versions of Scala, not that I expect us to get there soon with the
current backwards compatibility of Scala versions.

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: scala.library bundle

On Fri, Dec 18, 2009 at 1:15 AM, Erkki Lindpere wrote:
> Is there any particular reason why the scala.library bundle (and also the
> scala.tools.nsc bundle) are marked as singletons?
> ( Bundle-SymbolicName: scala.tools.nsc;singleton:=true )
>
> To my knowledge, this is only necessary for plugin.xml (extensions and
> extension points) but neither of the plug-ins use that.
>
> I'm asking because I just ran into an issue where I couldn't package a
> particular version of Scala library 2.8 with my plug-in because 2.7.7 was
> already installed. So I resorted to including the library as a Jar within my
> plug-in (and it's now a 5MB plugin)
>
> I think the Scala IDE shouldn't necessarily be confused by multiple versions
> of these bundles: it will get wired to the version that it specifies, for
> example [2.8.0,2.9.0) would wire it to the latest Scala 2.8 dev plug-in
> available.

Open an enhancement ticket in Trac for this and I'll take a look at it.

> Also, in the future it would be nice if the IDE supported multiple versions
> of Scala, not that I expect us to get there soon with the current backwards
> compatibility of Scala versions.

This is something I'd like to see happen at some point.

Cheers,

Miles

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