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: | Not locked. Use Indent.lock(). | ||
---|---|---|---|
Product: | editor | Reporter: | Torbjorn Norbye <tor> |
Component: | Formatting & Indentation | Assignee: | issues@editor <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Torbjorn Norbye
2007-07-23 22:12:14 UTC
Milo, any ideas? Tor you've probably pressed Ctrl+Enter so that SplitLineAction was invoked. Unfortunately I did not wrap this one by the locking (I had to miss it when I've searched for the usages). I'll fix it together with others that I possibly find. Yes, that's quite possible... Code templates seem to be broken. When I open a Ruby file and type "class" followed by Tab I get this exception: java.lang.AssertionError: Not locked. Use Reformat.lock() at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:176) at org.netbeans.modules.editor.indent.FormatterImpl.reformat(FormatterImpl.java:117) at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.insertTemplate(CodeTemplateInsertHandler.java:320) at org.netbeans.lib.editor.codetemplates.CodeTemplateInsertHandler.processTemplate(CodeTemplateInsertHandler.java:237) at org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.insert(CodeTemplateManagerOperation.java:222) at org.netbeans.lib.editor.codetemplates.api.CodeTemplate.insert(CodeTemplate.java:78) at org.netbeans.lib.editor.codetemplates.CodeTemplateAbbrevExpander.expand(CodeTemplateAbbrevExpander.java:48) at org.netbeans.lib.editor.codetemplates.AbbrevDetection.expand(AbbrevDetection.java:330) at org.netbeans.lib.editor.codetemplates.AbbrevDetection.checkExpansionKeystroke(AbbrevDetection.java:234) at org.netbeans.lib.editor.codetemplates.AbbrevDetection.keyPressed(AbbrevDetection.java:196) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:191) at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:191) Bumping to P2 - the abbreviation problem is more serious than the original intermittent problem I was seeing (possibly accidentally typing shift-return) Checking in libsrc/org/netbeans/editor/BaseKit.java; /cvs/editor/libsrc/org/netbeans/editor/BaseKit.java,v <-- BaseKit.java new revision: 1.171; previous revision: 1.170 done Checking in libsrc/org/netbeans/editor/Abbrev.java; /cvs/editor/libsrc/org/netbeans/editor/Abbrev.java,v <-- Abbrev.java new revision: 1.31; previous revision: 1.30 done Checking in libsrc/org/netbeans/editor/ActionFactory.java; /cvs/editor/libsrc/org/netbeans/editor/ActionFactory.java,v <-- ActionFactory.java new revision: 1.87; previous revision: 1.86 done Checking in codetemplates/src/org/netbeans/lib/editor/codetemplates/CodeTemplateInsertHandler.java; /cvs/editor/codetemplates/src/org/netbeans/lib/editor/codetemplates/CodeTemplateInsertHandler.java,v <-- CodeTemplateInsertHandler.java new revision: 1.11; previous revision: 1.10 *** Issue 111993 has been marked as a duplicate of this issue. *** *** Issue 112998 has been marked as a duplicate of this issue. *** |