- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scala.library bundle
Fri, 2009-12-18, 02:15
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.
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