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.
Build: NetBeans IDE Dev (Build 20120808-5b64fdbbc16e) VM: Java HotSpot(TM) Client VM, 20.6-b01, Java(TM) SE Runtime Environment, 1.6.0_31-b05 OS: Windows 7 User Comments: sj-nb: see second comment in issue 216537, after this error, I tried to remove package containing all entities and got number of dialogs like "can't save" and finally this exception Stacktrace: java.lang.Throwable: Locked by: at org.openide.filesystems.FileLock.<init>(FileLock.java:85) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.<init>(LockForFile.java:91) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:102) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:359) at org.openide.loaders.MultiDataObject$Entry.takeLock(MultiDataObject.java:1356) at org.netbeans.modules.openide.loaders.SimpleES$Environment.takeLock(SimpleES.java:188)
Created attachment 122878 [details] stacktrace
EditorModule.reformat and refactoring.java.ui.SafeDeleteUI collide. Which one is supposed to win?
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=191393
Created attachment 138324 [details] stacktrace Using Undo of Formatting. There is something wrong with the Formatting if I have a package or file selected in the Project Window that may be part of this. 1. Opened 2 files in a package. 2. Placed cursor on package name in Project Window. 3. Source>>Format and got a dialog box to confirm format recursively of package or file. 4. Click OK. 5. Put focus on one of the files in editor and click Undo button. 6. Put focus on package name and click Undo button. This exception was thrown. I am not sure I can reproduce it.
Reproducible: 1. Open the 2 files in the attached project. (FormattingProject) 2. Placed cursor on package name in Project Window. 3. Do Source>>Format and confirm dialog box to recursively format package or file. 4. Click OK. 5. Put focus on one of the files in editor and click Undo button. 6. Put focus on package name "formattingproject" in Project window and click Undo button. This exception was thrown. Product Version: NetBeans IDE Dev (Build 201308042300) Updates: Updates available Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Created attachment 138327 [details] Project to use for reproduction
(In reply to comment #5) > Reproducible: > > > 1. Open the 2 files in the attached project. (FormattingProject) > 2. Placed cursor on package name in Project Window. > 3. Do Source>>Format and confirm dialog box to recursively format package or > file. > 4. Click OK. > 5. Put focus on one of the files in editor and click Undo button. > 6. Put focus on package name "formattingproject" in Project window and click > Undo button. > > This exception was thrown. > > Product Version: NetBeans IDE Dev (Build 201308042300) > Updates: Updates available > Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 > Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16 > System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) If the exception is not thrown, do this and repeat the steps above and it should happen. 1. Goto Tools>>Options>>Editor>>Formatting, Language:Java, Category Wrapping and set the first 3 dropdowns to "If Long". 2. Click Apply button. 3. Switch to Category: Tabs and Indent and Uncheck "Use all language settings". 4. Change Right Margin to 40. 5. Click Apply button.
org.netbeans.editor.Utilities.runWithOnSaveTasksDisabled should block and make sure previously started tasks are finished.