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

which "plugins" dir

10 replies
rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
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
rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Re: which "plugins" dir
fwiw i think we should keep the old one as not to introduce new top-level
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:
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

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
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.

Antonio Cunei
Joined: 2008-12-16,
User offline. Last seen 3 years 22 weeks ago.
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
>

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
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.

Kevin Wright
Joined: 2009-06-09,
User offline. Last seen 49 weeks 3 days ago.
Re: which "plugins" dir
And I'll 1/3rd it

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

rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
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
>



Stephane
Joined: 2010-04-11,
User offline. Last seen 42 years 45 weeks ago.
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 :



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
>



extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
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.

rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
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 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

Tiark Rompf
Joined: 2009-02-18,
User offline. Last seen 42 years 45 weeks ago.
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:
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


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