Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354364

Summary: Duplicate resource warning never updated
Product: [Modeling] OCL Reporter: Hauke Fuhrmann <haf>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: trivial    
Priority: P3 CC: ed
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Hauke Fuhrmann CLA 2011-08-10 07:48:43 EDT
Build Identifier: 20110615-0604

Copying an *.ocl file to another source folder in the same project gives a warning:

"The ressource is a duplicate of XXX/test.ocl and was not copied to the output folder."

This makes sence. However, deleting the first original file does not remove the warning. Neither reopening the copied file nor changing and saving it does help. I can't get rid of this warning.

Reproducible: Always

Steps to Reproduce:
1. create a source folder "model"
2. create an ocl file "test.ocl" in that folder with some contents
3. create a source folder "model2"
4. copy the "test.ocl" to "model2" -> warning will be shown in the copy file
5. delete the "test.ocl" in "model" -> warning will still be present

It seems to be essential that the folders are source folders.
Comment 1 Ed Willink CLA 2011-08-10 15:56:56 EDT
I cannot reproduce this, with Xtext 2.0 or 2.0.1 with or without Xtext nature.

I don't understand "warning will be shown in the copy file"; I presume you mean the project explorer not the file content.

This kind of error probably comes from the Xtext builder or indexer, but in Indigo the Xtext nature is not applied by default so no builder. Eclipse OCL has no builder.

I suggest reproducing with test.xtext and then report against Xtext.
Comment 2 Ed Willink CLA 2013-05-20 11:38:09 EDT
CLOSED after a year in the RESOLVED state.