Bug 576465

Summary: Unsynchronized project resources
Product: [Eclipse Project] Platform Reporter: Julien Dehaudt <julien.dehaudt>
Component: ResourcesAssignee: Platform-Resources-Inbox <platform-resources-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.22   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
unsync resource none

Description Julien Dehaudt CLA 2021-10-06 08:33:04 EDT
Created attachment 287264 [details]
unsync resource

I'm experiencing a weird issue for a while that I've finally been able to isolate... It happens with linked resources when the project description file is updated (thanks to Git worktree changes for example) while Eclipse is not running.

Here are steps to reproduce:
1) create a sample project with a linked resource
   out1/ folder here, but same behavior applies to a file
2) open .project with the text editor and change out1/ to out2/ (out2/ exist)
3) select the project and hit F5.
   => the expected behavior happens: out1/ disappears while out2/ is there
4) close Eclipse
5) change back out2/ to out1/ (out1/ still exist) with a system editor
6) launch Eclipse
   => out2/ is still there with a warning decoration whereas I would expect
      the opposite behavior than in 3). See screenshot.
   => F5 and restart do nothing

Reproduced on both Ubuntu and Windows.
Comment 1 Julien Dehaudt CLA 2021-10-06 10:32:11 EDT
Forgot to say that this the Platform part of the issue.

It really becomes annoying when this linked resource point to a .c file causing the CDT Managed Build to fail with:

make: *** No rule to make target '<the_link>', needed by '<project>.elf'.  Stop.