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.

Bug 194152

Summary: IllegalStateException: Already locked
Product: python Reporter: serendev
Component: EditorAssignee: Torbjorn Norbye <tor>
Status: RESOLVED WORKSFORME    
Severity: normal CC: ghost_linux, keestux, wizhippo
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 174095
Attachments: stacktrace

Description serendev 2011-01-09 13:22:02 UTC
Build: NetBeans IDE 7.0 Beta (Build 201011152355)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows Vista

User Comments:
GUEST: text format python file from shortuct

GUEST: i  press shift+alt+f on a python project

serendev: I was trying to reindent a python script and netbeans make me this error.

GUEST: trying to format *.py file




Stacktrace: 
java.lang.IllegalStateException: Already locked
   at org.netbeans.modules.editor.indent.IndentImpl.reformatLock(IndentImpl.java:183)
   at org.netbeans.modules.editor.indent.api.Reformat.lock(Reformat.java:114)
   at org.netbeans.modules.gsf.api.EditList.apply(EditList.java:144)
   at org.netbeans.modules.python.editor.imports.ImportManager.apply(ImportManager.java:580)
   at org.netbeans.modules.python.editor.imports.ImportManager.cleanup(ImportManager.java:183)
   at org.netbeans.modules.python.editor.PythonFormatter.reformat(PythonFormatter.java:119)
Comment 1 serendev 2011-01-09 13:22:05 UTC
Created attachment 104819 [details]
stacktrace
Comment 2 Lou Dasaro 2015-05-18 04:57:06 UTC
Unable to replicate this error (Shift+Alt+f). Probably fixed long ago...