| Summary: | (PatchAttached)[Watch/Edit] automatic 'editors' check doesn't check for updated versions. | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Reinier Zwitserloot <rz_eclipse.org> | ||||||
| Component: | CVS | Assignee: | platform-cvs-inbox <platform-cvs-inbox> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | luke.hutch | ||||||
| Version: | 3.0.1 | Keywords: | helpwanted | ||||||
| Target Milestone: | 3.2 M1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Reinier Zwitserloot
Your proposal makes sense to me. However, there is no plan to address it unless a patch is provided. I am submitting a patch to the cvs core and cvs ui projects that does an update check on the file when watch/edit is configured to send a notification synchronously. If the file is out of date it will be updated depending on the new ui prefs. A few sidenotes: Refactoring something that causes an update will cause the refactoring to fail. It bails out nicely though and you can just do the refactoring again as a workaround. I had to pull in the execute code from EclipseResource into Command so that I could run the update with a scheduling rule that was compatible with what was already being locked. If anyones has any ideas around these issues let me know. Created attachment 23386 [details]
cvs core project patch (3.1 RC2 sources)
Created attachment 23387 [details]
cvs ui project patch (3.1 RC2 sources)
Thansk for the patch. We'll have a look once 3.1. is deleivered. I've released the patch to HEAD with the following modifications: 1) Simplified the code to check for new revisions and update. 2) Change the default to Never Update since there is considerable overhead in both of the other options 3) Added code to ensure that the required scheduling rules are obtained. Verified in I20050808-2000. It's fixed and works great, but there still appears to be a couple of issues related to this: (1) If you choose not to update, then the file is locked for editing. You have to close the file and re-open it again to edit. (2) If you initiate the up-to-date check using Ctrl-X for Cut, then after updating, if characters were inserted or deleted before the current selection, then the wrong region is cut. It's probably better to update but cancel the cut operation in this situation. Additionally, I did anyone look at the issues Rob raised in Comment #2? I don't have perms to re-open the bug... Hopefully someone sees this comment. I would prefer that we report any additional issues in separate bugs. Otherwise, it becomes to difficult to figure out what the remaining work for a bug is. The issue from comment 2 is a known issue so it may already have a bug report in JDT UI. The 2nd item in comment 8 is related to this but is the oposite (i.e. the Paste continues but probably should stop). You could log a bug report against Platform Text for this. The 1st item in comment 8 should be logged against Platform CVS. Is it possible to provide the patch for R2.1 also? We also meet the same difficulty. Thanks. |