Bug 576465 - Unsynchronized project resources
Summary: Unsynchronized project resources
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.22   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-06 08:33 EDT by Julien Dehaudt CLA
Modified: 2021-10-06 10:32 EDT (History)
0 users

See Also:


Attachments
unsync resource (20.25 KB, image/png)
2021-10-06 08:33 EDT, Julien Dehaudt CLA
no flags Details

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