This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Refactor->Rename occasionally fails, makes file read-only and damages its tab name in editor | ||
---|---|---|---|
Product: | platform | Reporter: | Petr Somol <psomol> |
Component: | Text | Assignee: | Miloslav Metelka <mmetelka> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | jbecicka, jtulach |
Priority: | P3 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Rename fails, makes file read only |
Another manifestation of (probably) the same problem: Again I tried Refactor->Rename on a variable in java source. Immediately after the display of Rename dialog a Message Box popped up asking "Do you want to save changes to file?" (do not remember exact wording). I answered yes, and the file got closed. Refactoring just calls LifecycleManager.saveAll on invocation. Refactoring is not yet performed. Reassigning to editor for evaluation Cannot reproduce the problem (tested both method and variable rename). Hopefully fix of issue #228991 have fixed a race condition that this issue probably was. If the problem would reappear please reopen the issue. |
Created attachment 115546 [details] Rename fails, makes file read only I have observed this several times already in NB7.1. Unfortunately, it occurs irregularly, without apparent reason, usually after long time of editing a java file. When attempting to rename a method argument by right-click and selecting Refactor->Rename in the pop-up menu, the IDE gets right into the state shown in the attachment. Note the empty tab - the file name vanishes. The only way forward in such situation is to Cancel out the dialogs, then close the file tab, and reopen it. Luckily the file gets auto-saved before this, however not always to the very latest state. But I never lost more than a couple of lines thus the auto-saved version is apparently not older than a couple of minutes.