Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354364 - Duplicate resource warning never updated
Summary: Duplicate resource warning never updated
Status: CLOSED WORKSFORME
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 07:48 EDT by Hauke Fuhrmann CLA
Modified: 2013-05-20 11:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.