Refresh problems if a file is modified or deleted outside Eclipse
Submitted by Jeno Attila Balasko
Link to original bug (#498139)
Description
If a ttcn file handled in Eclipse Designer is removed or modified the change is not handled correctly. Perhaps it requires two bug report.
- If a file is removed. Gustavo Gonnet from Ericsson described the problem: Hi,
This is an issue that I was not able to pinpoint for quite a long time (perhaps years).
This is what I observe:
- I have Eclipse open with a titan project open (in reality I have 3 projects opened, they depend on each other but hopefully this does not matter)
- I delete a file from the filesystem manually - outside Eclipse. This can be done by manually deleting the file or by doing a git pull in the repo of my test FW (and the file was removed by one of my colleagues)
- I come back to Eclipse, I see that the Project Explorer inside eclipse refreshes automatically after few seconds and the file is gone.
- I try to compile, I the compilation fails because the just deleted file is missing from the filesystem
- my way out today is to close eclipse, delete the offending Makefile, reopen and build - this fixes the issue. Now that I think of it, probably a project -> clean would fix it too (haven't tried this)
My opinion on why the build fails: The file that was just deleted is still present in the Makefile
Proposed solution (very simplified!): Once there is a change in the Project Explorer content, the code in the plugin that creates the makefile has to refresh the makefile with the ttcn files present in the project right at the time of the build.
I do not require a fix (in case this bug really is one) but it would be nice for other users to have this fixed if it's possible. Hope my description helps, and thank you, Gustavo.
- If the file modified outside Eclipse, and the file is opened after that, the Designer recognizes the change and requires pushing F5 to refresh the file. After refreshing the error markers are not refreshed in the editor window.
Version: 5.5.0