Re: [scala-ide-user] New run configuration generated for each run?

25 views
Skip to first unread message

Simon Schäfer

unread,
May 15, 2013, 7:39:48 AM5/15/13
to scala-i...@googlegroups.com

On 05/15/2013 12:51 PM, Alastair Andrew wrote:
> Hi,
>
> I've been using the Scala IDE plugin (3.0.0-rc3-2) with Eclipse 4.2.2
> on my Mac 10.6.8. I don't know whether this is normal behaviour but
> every time I run one of my Scala programs (by either pressing the
> green run button or using the right-click run as Scala Application
> method) it adds a new run configuration. If I run my Demo.scala file
> which is just a basic object that extends App what I'll find in the
> drop down next to the run button is 1. Demo$ (1). Every time I run
> this file via either of the methods I mentioned I'll get a new config
> added to that list 2. Demo$ (2) and so forth. During the course of my
> development I can run the same files dozens of times and it just
> totally bloats the run configuration list.
>
> Is this a bug? Or is there some option I need to turn off somewhere?
I would say it is a bug. I'm not aware that it is possible to tell
Eclipse explicitly that on each run a new run configuration should be
created.

You could try if it is possible to "solve" the bug when you delete all
run configurations of the project, clean the project, close and open it
or remove Scala nature and adding it again.
> Cheers,
> Alastair
>
> --
> You received this message because you are subscribed to the Google
> Groups "Scala IDE User" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to scala-ide-use...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

iulian dragos

unread,
May 15, 2013, 7:50:44 AM5/15/13
to scala-i...@googlegroups.com
On Wed, May 15, 2013 at 1:39 PM, Simon Schäfer <ma...@antoras.de> wrote:

On 05/15/2013 12:51 PM, Alastair Andrew wrote:
Hi,

I've been using the Scala IDE plugin (3.0.0-rc3-2) with Eclipse 4.2.2 on my Mac 10.6.8. I don't know whether this is normal behaviour but every time I run one of my Scala programs (by either pressing the green run button or using the right-click run as Scala Application method) it adds a new run configuration. If I run my Demo.scala file which is  just a basic object that extends App what I'll find in the drop down next to the run button is 1. Demo$ (1). Every time I run this file via either of the methods I mentioned I'll get a new config added to that list 2. Demo$ (2) and so forth. During the course of my development I can run the same files dozens of times and it just totally bloats the run configuration list.

Is this a bug? Or is there some option I need to turn off somewhere?
I would say it is a bug. I'm not aware that it is possible to tell Eclipse explicitly that on each run a new run configuration should be created.

Can't reproduce it.. The code that reuses existing configurations is here:


I don't see anything obviously wrong, but maybe if the configuration type is `null` (no idea when/why it would be null), it gives up too early.

iulian
 

You could try if it is possible to "solve" the bug when you delete all run configurations of the project, clean the project, close and open it or remove Scala nature and adding it again.
Cheers,
Alastair

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-user+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.





--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

Luc Bourlier

unread,
May 15, 2013, 7:57:07 AM5/15/13
to scala-i...@googlegroups.com
The problem is only visible with Juno.


Luc


On Wednesday, May 15, 2013 1:50:44 PM UTC+2, Iulian Dragos wrote:
On Wed, May 15, 2013 at 1:39 PM, Simon Schäfer <ma...@antoras.de> wrote:

On 05/15/2013 12:51 PM, Alastair Andrew wrote:
Hi,

I've been using the Scala IDE plugin (3.0.0-rc3-2) with Eclipse 4.2.2 on my Mac 10.6.8. I don't know whether this is normal behaviour but every time I run one of my Scala programs (by either pressing the green run button or using the right-click run as Scala Application method) it adds a new run configuration. If I run my Demo.scala file which is  just a basic object that extends App what I'll find in the drop down next to the run button is 1. Demo$ (1). Every time I run this file via either of the methods I mentioned I'll get a new config added to that list 2. Demo$ (2) and so forth. During the course of my development I can run the same files dozens of times and it just totally bloats the run configuration list.

Is this a bug? Or is there some option I need to turn off somewhere?
I would say it is a bug. I'm not aware that it is possible to tell Eclipse explicitly that on each run a new run configuration should be created.

Can't reproduce it.. The code that reuses existing configurations is here:


I don't see anything obviously wrong, but maybe if the configuration type is `null` (no idea when/why it would be null), it gives up too early.

iulian
 

You could try if it is possible to "solve" the bug when you delete all run configurations of the project, clean the project, close and open it or remove Scala nature and adding it again.
Cheers,
Alastair

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.


Alastair Andrew

unread,
May 15, 2013, 8:26:54 AM5/15/13
to scala-i...@googlegroups.com
Thanks,

Nice to know that it is an issue that others have experienced and it's been logged. For the meantime I'll use the workaround of setting the run button always launch the previous configuration. 

A
Reply all
Reply to author
Forward
0 new messages