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 - IllegalStateException: Already locked
Summary: IllegalStateException: Already locked
Status: RESOLVED WORKSFORME
Alias: None
Product: python
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 13:22 UTC by serendev
Modified: 2015-05-18 04:57 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174095


Attachments
stacktrace (4.60 KB, text/plain)
2011-01-09 13:22 UTC, serendev
Details

Note You need to log in before you can comment on or make changes to this bug.
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...