- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
which "plugins" dir
Sun, 2010-04-11, 16:44
Hello
In 2.7.x, the default value for "-Xpluginsdir" was "${scala.home}/misc/scala-devel/plugins".
By mistake, this is different in the 2.8. trunk. Here the default value is
"${scala.home}/misc:${scala.home}/scala-devel:${scala.home}/plugins".
This is why the continuations plugin is loaded when being placed in
the top-level "plugins" folder.
My question: do we want a top-level "plugins" folder as default or do we want
to keep the old "misc/scala-devel/plugins"? The continuations.jar will be
placed in there.
I'll do the according changes in source / build scripts.
Thanks for a prompt answer.
Lukas
In 2.7.x, the default value for "-Xpluginsdir" was "${scala.home}/misc/scala-devel/plugins".
By mistake, this is different in the 2.8. trunk. Here the default value is
"${scala.home}/misc:${scala.home}/scala-devel:${scala.home}/plugins".
This is why the continuations plugin is loaded when being placed in
the top-level "plugins" folder.
My question: do we want a top-level "plugins" folder as default or do we want
to keep the old "misc/scala-devel/plugins"? The continuations.jar will be
placed in there.
I'll do the according changes in source / build scripts.
Thanks for a prompt answer.
Lukas
Sun, 2010-04-11, 17:07
#2
Re: which "plugins" dir
On Sun, Apr 11, 2010 at 05:44:07PM +0200, Lukas Rytz wrote:
> My question: do we want a top-level "plugins" folder as default or do
> we want to keep the old "misc/scala-devel/plugins"? The
> continuations.jar will be placed in there.
I vote that misc/scala-devel/plugins is a needlessly tortuous path given
the relatively small number of entities in the distribution.
Sun, 2010-04-11, 17:17
#3
Re: which "plugins" dir
The development of compiler plugins is not something that is particularly
commonplace, and the location is transparent to final users in the end
anyway. Therefore the actual location matters is unlikely to matter much
in the end.
That said, I'd keep the old location: I don't see a special reason for an
entire top-level directory.
(Actually, I'd personally put them in lib/plugins).
Toni
On Sun, April 11, 2010 5:44 pm, Lukas Rytz wrote:
> Hello
>
> In 2.7.x, the default value for "-Xpluginsdir" was
> "${scala.home}/misc/scala-devel/plugins".
>
> By mistake, this is different in the 2.8. trunk. Here the default value is
> "${scala.home}/misc:${scala.home}/scala-devel:${scala.home}/plugins".
>
> This is why the continuations plugin is loaded when being placed in
> the top-level "plugins" folder.
>
>
> My question: do we want a top-level "plugins" folder as default or do we
> want
> to keep the old "misc/scala-devel/plugins"? The continuations.jar will be
> placed in there.
>
> I'll do the according changes in source / build scripts.
>
>
> Thanks for a prompt answer.
> Lukas
>
Sun, 2010-04-11, 17:27
#4
Re: which "plugins" dir
On Sun, Apr 11, 2010 at 06:07:12PM +0200, Antonio Cunei wrote:
> (Actually, I'd personally put them in lib/plugins).
I second that location if an all new one is on the table.
Sun, 2010-04-11, 17:47
#5
Re: which "plugins" dir
And I'll 1/3rd it
On 11 April 2010 17:13, Paul Phillips <paulp@improving.org> wrote:
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
On 11 April 2010 17:13, Paul Phillips <paulp@improving.org> wrote:
On Sun, Apr 11, 2010 at 06:07:12PM +0200, Antonio Cunei wrote:
> (Actually, I'd personally put them in lib/plugins).
I second that location if an all new one is on the table.
--
Paul Phillips | All men are frauds. The only difference between
Caged Spirit | them is that some admit it. I myself deny it.
Empiricist | -- H. L. Mencken
slap pi uphill! |----------* http://www.improving.org/paulp/ *----------
--
Kevin Wright
mail/google talk: kev.lee.wright@googlemail.com
wave: kev.lee.wright@googlewave.com
skype: kev.lee.wright
twitter: @thecoda
Sun, 2010-04-11, 18:17
#6
Re: which "plugins" dir
On Sun, Apr 11, 2010 at 18:07, Antonio Cunei <antonio.cunei@epfl.ch> wrote:
The development of compiler plugins is not something that is particularly
commonplace, and the location is transparent to final users in the end
anyway. Therefore the actual location matters is unlikely to matter much
in the end.
That said, I'd keep the old location: I don't see a special reason for an
entire top-level directory.
(Actually, I'd personally put them in lib/plugins).
yeah why not. who decides?
paul: by default, every .jar in "lib" is in the scalabootclasspath, but not
any .jars in subfolders, right? plugins don't need to be in the classpath.
lukas
Toni
On Sun, April 11, 2010 5:44 pm, Lukas Rytz wrote:
> Hello
>
> In 2.7.x, the default value for "-Xpluginsdir" was
> "${scala.home}/misc/scala-devel/plugins".
>
> By mistake, this is different in the 2.8. trunk. Here the default value is
> "${scala.home}/misc:${scala.home}/scala-devel:${scala.home}/plugins".
>
> This is why the continuations plugin is loaded when being placed in
> the top-level "plugins" folder.
>
>
> My question: do we want a top-level "plugins" folder as default or do we
> want
> to keep the old "misc/scala-devel/plugins"? The continuations.jar will be
> placed in there.
>
> I'll do the according changes in source / build scripts.
>
>
> Thanks for a prompt answer.
> Lukas
>
Sun, 2010-04-11, 18:37
#7
Re: which "plugins" dir
IMO the 2.7.x default location is fine and we should definitely not use a top-level folder.
Bye--Stéphane
Le 11 avr. 2010 à 19:07, Lukas Rytz <lukas.rytz@epfl.ch> a écrit :
Bye--Stéphane
Le 11 avr. 2010 à 19:07, Lukas Rytz <lukas.rytz@epfl.ch> a écrit :
On Sun, Apr 11, 2010 at 18:07, Antonio Cunei < (antonio [dot] cunei [at] epfl [dot] ch> wrote:The development of compiler plugins is not something that is particularly
commonplace, and the location is transparent to final users in the end
anyway. Therefore the actual location matters is unlikely to matter much
in the end.
That said, I'd keep the old location: I don't see a special reason for an
entire top-level directory.
(Actually, I'd personally put them in lib/plugins).
yeah why not. who decides?
paul: by default, every .jar in "lib" is in the scalabootclasspath, but not
any .jars in subfolders, right? plugins don't need to be in the classpath.
lukas
Toni
On Sun, April 11, 2010 5:44 pm, Lukas Rytz wrote:
> Hello
>
> In 2.7.x, the default value for "-Xpluginsdir" was
> "${scala.home}/misc/scala-devel/plugins".
>
> By mistake, this is different in the 2.8. trunk. Here the default value is
> "${scala.home}/misc:${scala.home}/scala-devel:${scala.home}/plugins".
>
> This is why the continuations plugin is loaded when being placed in
> the top-level "plugins" folder.
>
>
> My question: do we want a top-level "plugins" folder as default or do we
> want
> to keep the old "misc/scala-devel/plugins"? The continuations.jar will be
> placed in there.
>
> I'll do the according changes in source / build scripts.
>
>
> Thanks for a prompt answer.
> Lukas
>
Sun, 2010-04-11, 19:17
#8
Re: which "plugins" dir
On Sun, Apr 11, 2010 at 07:07:41PM +0200, Lukas Rytz wrote:
> paul: by default, every .jar in "lib" is in the scalabootclasspath,
> but not any .jars in subfolders, right? plugins don't need to be in
> the classpath.
Right, everything in lib/* gets on the classpath extdir style, which
means jars in subdirectories would not (but top level directories in lib
should if they were there and had exploded jar structure.) There's a not
entirely clear relationship between the "boot classpath" and the
"extdir" contribution, but except when you need pathological control
over the classpath it doesn't matter since they're all going to turn up
and they'll all be ahead of yours.
Sun, 2010-04-11, 19:17
#9
Re: which "plugins" dir
ok, let's keep the old location then. we've had enough surprises with classpaths.
On Sun, Apr 11, 2010 at 20:09, Paul Phillips <paulp@improving.org> wrote:
On Sun, Apr 11, 2010 at 20:09, Paul Phillips <paulp@improving.org> wrote:
On Sun, Apr 11, 2010 at 07:07:41PM +0200, Lukas Rytz wrote:
> paul: by default, every .jar in "lib" is in the scalabootclasspath,
> but not any .jars in subfolders, right? plugins don't need to be in
> the classpath.
Right, everything in lib/* gets on the classpath extdir style, which
means jars in subdirectories would not (but top level directories in lib
should if they were there and had exploded jar structure.) There's a not
entirely clear relationship between the "boot classpath" and the
"extdir" contribution, but except when you need pathological control
over the classpath it doesn't matter since they're all going to turn up
and they'll all be ahead of yours.
--
Paul Phillips | The important thing here is that the music is not in
Moral Alien | the piano. And knowledge and edification is not in the
Empiricist | computer. The computer is simply an instrument whose
pp: i haul pills | music is ideas. -- Alan Kay
Sun, 2010-04-11, 22:47
#10
Re: which "plugins" dir
I don't have any strong feelings about how the location should be named but the pluginjars should be kept out of the classpath.- Tiark
On Apr 11, 2010, at 8:14 PM, Lukas Rytz wrote:
On Apr 11, 2010, at 8:14 PM, Lukas Rytz wrote:
ok, let's keep the old location then. we've had enough surprises with classpaths.
On Sun, Apr 11, 2010 at 20:09, Paul Phillips <paulp@improving.org> wrote:
On Sun, Apr 11, 2010 at 07:07:41PM +0200, Lukas Rytz wrote:
> paul: by default, every .jar in "lib" is in the scalabootclasspath,
> but not any .jars in subfolders, right? plugins don't need to be in
> the classpath.
Right, everything in lib/* gets on the classpath extdir style, which
means jars in subdirectories would not (but top level directories in lib
should if they were there and had exploded jar structure.) There's a not
entirely clear relationship between the "boot classpath" and the
"extdir" contribution, but except when you need pathological control
over the classpath it doesn't matter since they're all going to turn up
and they'll all be ahead of yours.
--
Paul Phillips | The important thing here is that the music is not in
Moral Alien | the piano. And knowledge and edification is not in the
Empiricist | computer. The computer is simply an instrument whose
pp: i haul pills | music is ideas. -- Alan Kay
directories. also the "misc" folder is intended to have a subfolder for
every sbaz package, so basically "misc/scala-devel" means "the misc
folder of the scala-devel package". putting "plugins" there makes some
sense.
lukas
On Sun, Apr 11, 2010 at 17:44, Lukas Rytz <lukas.rytz@epfl.ch> wrote: