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.
If you open a file in the editor (that is not already opened) and then right away hit Ctrl+G, opening the goto line dialog, enters a line number and hit enter, the editor will sometimes switch back to the file previously edited and select said line number in that file. It seems as though the goto dialog do not get notification of the change in which file is shown before the editor is done parsing the file and is showing it correctly with code folds and syntax coloring.
Probably fixed with changes in Bug #216495 It would be great to check it in Netbeans beta 2, or dev build - created in 2-3 days.