Why is my Eclipse launch configuration not being added to the Run or Debug configurations list?
Asked Answered
E

5

16

I have a .launch file which I can run by context menu (Run As...), but it is not being added to the list of Debug or Run configurations like it should. Why not?

Electrophone answered 29/10, 2010 at 7:36 Comment(0)
E
14

There is something wrong with the launch config. Possibly a project is being referenced which is closed (that's what it was for me)...

So the launch may work (in my case this was because the project wasn't actually required) but any issues like this will cause it not to be added to the list of launches. To figure out what the cause is, you can

  1. Try running the launch file
  2. In the "Debug" view (not perspective, but view i.e. tab), right click the launch and select "Edit <launch name>...". This properties window will show you any errors. Once those are fixed, it will add the launch to the list of run configs.
Electrophone answered 29/10, 2010 at 7:38 Comment(5)
Could you explain where this "Edit <launch name>..." is?Finlay
In my case the Launch-Configurations have just been filtered away by the default filter (closed or unknown project). You can simply remove this filter and they will be shown.Thornie
In step 1 above, you run the launch file by right-clicking it and choosing "Run As".Pharmaceutical
@Springrbua how do you remove that filter?Cankered
@Cankered In the Run / Debug Configurations window, there are the symbols for New, Duplicate, Delete etc. on the top left. Next to all those symbols is a little arrow. If you press it a list with filter-settings will open. There you can toggle Filter Closed Projects, Filter Deleted/Unavailable Projects etc.Thornie
T
15

You can also uncheck the options "Filter configurations in closed project" and "Filter configurations in deleted or missing projects". This should do the trick.

Tay answered 16/2, 2016 at 15:24 Comment(0)
E
14

There is something wrong with the launch config. Possibly a project is being referenced which is closed (that's what it was for me)...

So the launch may work (in my case this was because the project wasn't actually required) but any issues like this will cause it not to be added to the list of launches. To figure out what the cause is, you can

  1. Try running the launch file
  2. In the "Debug" view (not perspective, but view i.e. tab), right click the launch and select "Edit <launch name>...". This properties window will show you any errors. Once those are fixed, it will add the launch to the list of run configs.
Electrophone answered 29/10, 2010 at 7:38 Comment(5)
Could you explain where this "Edit <launch name>..." is?Finlay
In my case the Launch-Configurations have just been filtered away by the default filter (closed or unknown project). You can simply remove this filter and they will be shown.Thornie
In step 1 above, you run the launch file by right-clicking it and choosing "Run As".Pharmaceutical
@Springrbua how do you remove that filter?Cankered
@Cankered In the Run / Debug Configurations window, there are the symbols for New, Duplicate, Delete etc. on the top left. Next to all those symbols is a little arrow. If you press it a list with filter-settings will open. There you can toggle Filter Closed Projects, Filter Deleted/Unavailable Projects etc.Thornie
R
8

enter image description hereTry to remove filter from filtering preferences

Romero answered 6/9, 2017 at 15:10 Comment(0)
L
0

This may be any help at all but I assumed that when importing a project it would be added to general list of "Run Configurations", but as I added a java run config it is added to "Java Application" parent node in Eclipse "Run Configurations".

Leu answered 13/5, 2015 at 11:49 Comment(0)
F
0

For me, this happens due to copy the same project and giving the other name so my project name is not showing in the launch configuration (for not showing in the launch configuration there could be some other reasons.)

Fix:

  • Right-click on the project select Coverage as after this will get two option java application and configuration.

  • select java application it will run the project and create the coverage.

  • Other option is just run the Application it will create the coverage.

Felicefelicia answered 24/12, 2020 at 10:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.