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.
090313. Open a module group, press C-O right away during scanning, pick a class, and hit Enter. The editor tab opens blank and the IDE freezes for quite a while. Looks like JavaTypeDescription.open should be made to run asynch?
Created attachment 78313 [details] Thread dump
In this case we have only one reasonable option. Open file on 0 offset. Then schedule task which locates correct offset of element and after this task is finished the cursor will be moved appropriately based on condition (e.g. the caret has not been moved since opening the file...). This will not affect opening file when scan is not running.
Even just opening at offset 0 and not scheduling any further correction would be better than the current state. Most of the time I am opening a top-level type and do not really care what caret position you initially open the editor to; if I want to see something else I will use Page Down.
Fixed. If there is indexing in progress the editor is opened on 0 offset in document.
Excellent! BTW it is normal to include changeset information in comment, in this case probably jet-main #0871113eeaa3 A note on impl: ErrorManager should not be used in new code. Anyway ErrorManager.getDefault().log(ErrorManager.INFORMATIONAL, "...") will by default not be displayed anywhere, which may or may not be what you want. Use e.g. Logger.getLogger(ElementOpen.class.getName()).log(Level.FINE, "Opening {0} at offset 0", fileName); or whatever you need. INFO displayed by default (probably undesirable in this case), FINE not unless you pass -J-Dorg.netbeans.api.java.source.level=FINE or similar.
@jglick: The ErrorManager was removed in jet-main #0871113eeaa3