eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

Copy Paste of Project results in new copied project not appearing in Working Sets

Open C4J opened this issue 1 year ago • 12 comments

In previous versions of Eclipse, if you use working sets and use copy/paste to duplicate your project with a new name, then the copied project would appear in the working set called Other. Now it does not appear anywhere.

I am running Eclipse 2024-12 EE on macOS Sonoma 15.1.1

Creating a new project in the standard way does appear in the selected Working Set.

If you want to see the copy/pasted new project you have to go into the properties of an existing working set and "add" the new project to it.

Otherwise it's completely invisible.

C4J avatar Dec 08 '24 19:12 C4J

Is this a problem in the package explorer or the project explorer? Is there a working set called other in the view? Are you showing all working set in the view?

merks avatar Dec 08 '24 19:12 merks

Project explorer. I have my projects grouped into Working sets plus the default working set called Other which contains servers. I select a project, perform a copy and paste (accepting or changing the proposed new name for the copy) and is does create a copy which I can see with the operating system "finder" in the workspace directory. However the new cloned project does not appear in project explorer - I have to select the properties of a Working set and then "add" the new cloned project to the working set manually.

I have tried a fresh install of Eclipse and even imported all my projects into a clean workspace but the glitch seems to remain.

C4J avatar Dec 08 '24 20:12 C4J

I tried debug launching my SDK development environment, changing the view to show working sets, created a project and used copy and paste to create a new one:

image

That works okay.

I also created a new working set and move the project to that. Then again a copy and paste and the new one shows up in Other:

image

Maybe something is already fixed in 4.35 development?

https://download.eclipse.org/eclipse/downloads/drops4/I20241208-1800/

Or maybe my steps are different from yours?

merks avatar Dec 09 '24 09:12 merks

I have done a screen recording which you can see here.

Screen recording

C4J avatar Dec 09 '24 09:12 C4J

Can you drop the file directly? The drop in the markdown entry field support's *.mov and *mp4, and a bunch of other formats. I'm personally not comfortable logging into the linked site. Sorry.

merks avatar Dec 09 '24 11:12 merks

I did some changes in that area with #2262 but that should only be on 4.35 afaik.

N1k145 avatar Dec 09 '24 12:12 N1k145

https://github.com/user-attachments/assets/80898860-c631-4d48-a66e-f55c77a6ca64

Attached (hopefully)

C4J avatar Dec 09 '24 12:12 C4J

This video is perhaps more revealing as it show how duplication works differently depending on how your viewing the projects,

https://github.com/user-attachments/assets/5ecb5a41-ffb6-4442-be29-42c78b2e98ae

C4J avatar Dec 09 '24 12:12 C4J

Thank you for sharing the video! You could test with this to see if it's fixed:

https://download.eclipse.org/eclipse/downloads/drops4/I20241208-1800/

But I understand that's a fair bit of setup work just to test...

merks avatar Dec 09 '24 13:12 merks

I still see the same issue. Just in case it's relevant after opening the workspace and performing a clean I get a lot of errors like this - probably to be expected ?

Description Resource Path Location Type Unknown referenced nature: org.eclipse.jem.beaninfo.BeanInfoNature. .project /b6 Unknown Unknown nature

Description Resource Path Location Type Unknown referenced nature: org.eclipse.jem.workbench.JavaEMFNature. .project /b6 Unknown Unknown nature

Description Resource Path Location Type Unknown referenced nature: org.eclipse.wst.common.modulecore.ModuleCoreNature. .project /b6web_t10_android_eb3 Unknown Unknown nature

Description Resource Path Location Type Unknown referenced nature: org.eclipse.wst.common.project.facet.core.nature. .project /ZPLFormat Unknown Unknown nature

Description Resource Path Location Type Unknown referenced nature: org.eclipse.wst.jsdt.core.jsNature. .project /b6web_t10_android_eb3 Unknown Unknown nature

C4J avatar Dec 09 '24 13:12 C4J

Thanks for the confirmation. Those errors are kind of expected when the the installation doesn't contain all the natures your projects are using so unlikely related to the problem.

merks avatar Dec 09 '24 13:12 merks

I have tried this scenario and i do see the issue occur that once the project is copied in Project Explorer specifically.

  • I cannot select a specific working set and paste it.
  • paste at the same project level then prompted with a new name. Once the new name is given, it gets created but doesnt show up anywhere.
  • I need to select that specific working set -> properties -> add -> project (test7_2 as shown in the screen shot) and click "apply and close". Image

Where as in Package Explorer, it does show up in Other Projects working set. for reference attaching a screenshot for the same -> Image

My environment is as below Eclipse SDK Version: 2025-06 (4.36) Build id: I20250326-1800 OS: Windows 11, v.10.0, x86_64 / win32 Java vendor: Eclipse Adoptium Java runtime version: 23.0.1+11 Java version: 23.0.1

deepika-u avatar Mar 27 '25 14:03 deepika-u