Bug 565708 - Can't rename run config "SonoffMiniJUnitTest (1)" to "SonoffMiniJUnitTest" - which was a name of a deleted project
Summary: Can't rename run config "SonoffMiniJUnitTest (1)" to "SonoffMiniJUnitTest" - ...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-30 09:53 EDT by Hans Müller CLA
Modified: 2021-01-22 02:35 EST (History)
2 users (show)

See Also:


Attachments
.xml files `20200730-153710.902.xml` and `launchConfigurationHistory.xml` from .metadata folder (1.08 KB, application/x-zip-compressed)
2020-07-30 09:55 EDT, Hans Müller CLA
no flags Details
here are all files from the workspace they contains something with "SonoffMiniJUnitTest" (94.75 KB, application/x-zip-compressed)
2020-07-30 10:03 EDT, Hans Müller CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Müller CLA 2020-07-30 09:53:12 EDT
I searched the whole ".metadata" folder for .xml files they contain "SonoffMiniJUnitTest" ... but as a run config, i only found "SonoffMiniJUnitTest (1)"

The only one SonoffMiniJUnitTest i've found there are from the java class:

SonoffMiniJUnitTest.java.

If you need more infos, so don't hesitate to contact me. thx.

regards, jan
Comment 1 Hans Müller CLA 2020-07-30 09:55:04 EDT
Created attachment 283747 [details]
.xml files `20200730-153710.902.xml` and  `launchConfigurationHistory.xml` from .metadata folder

files are attached now
Comment 2 Hans Müller CLA 2020-07-30 09:57:36 EDT
To clean project and restart does also not help...
Comment 3 Hans Müller CLA 2020-07-30 10:00:21 EDT
to close all other projects, then delete run config and try to rename again does also not help. same situation - "does alrady exist" (WTF?!?)
Comment 4 Hans Müller CLA 2020-07-30 10:03:43 EDT
Created attachment 283748 [details]
here are all files from the workspace they contains something with "SonoffMiniJUnitTest"

here are all files from the workspace they contains something with "SonoffMiniJUnitTest" ---
Comment 5 Hans Müller CLA 2020-07-30 10:09:46 EDT
Currently, the only one solution seems to be to rename the java class e.g. to `SonoffMiniApacheHTTPClientJUnitTest`

But that's not a solution - just resignation!!
Comment 6 Rolf Theunissen CLA 2020-07-30 17:08:41 EDT
Can you check in your workpace .metadata the following folder

<workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/

From your listing, it would contain 'SonoffMiniJUnitTest.launch' and 'SonoffMiniJUnitTest (1).launch'. If not where is the 'SonoffMiniJUnitTest.launch' located?

Also, I would expect that in your list of run configuration those two configurations are listed, Run > Run Configurations.
Comment 7 Hans Müller CLA 2020-07-31 03:17:05 EDT
1.) Yes, the file `SonoffMiniJUnitTest.launch` is in <workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/

2.) No it's NOT in Run Configuration - neither in Junit, nor in Debug, nor in whatever!! So what you meant is wrong: "Also, I would expect that in your list of run configuration those two configurations are listed, Run > Run Configurations."

3.) But if the file <workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/SonoffMiniJUnitTest.launch exists, and will not be shown in eclipse, i can't create a configuration with that name anymore...

4.) So that's CLEARLY A BUG, so d'ont hesitete if you need more infos!

5.) Delting the file solved my problem, but it didn't solved the reason for the bug so i think.,,
Comment 8 Hans Müller CLA 2020-10-01 04:56:24 EDT
solved?
Comment 9 Paul Pazderski CLA 2020-10-01 06:33:12 EDT
(In reply to Hans Müller from comment #7)
> 1.) Yes, the file `SonoffMiniJUnitTest.launch` is in
> <workspace>/.metadata/.plugins/org.eclipse.debug.core/.launches/

And is the reason why you cannot create a new one with this name.

> 2.) No it's NOT in Run Configuration - neither in Junit, nor in Debug, nor
> in whatever!! So what you meant is wrong: "Also, I would expect that in your
> list of run configuration those two configurations are listed, Run > Run
> Configurations."

Because by default the filter "Filter Deleted/Unavailable Projects" is enabled and hides the existing "SonoffMiniJUnitTest" launch.

I admit the error message/handling has room for improvements here.

Depending on how you deleted the project it could be a bug that the launch configuration was not deleted as well but I'm actually not sure what the desired behavior is in that case.
Comment 10 Hans Müller CLA 2020-10-01 08:04:04 EDT
ok thx! :-)

regards, Jan