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.
Steps to reproduce: 1. Start ide with fresh user and set editor to vim 2. Select menu File=>New to bringup New WIzard window. 3. Expand C++/Class and select class.group to generate class.cc and class.h files Givm window comes up along with Note dialog which say "Waiting connection from external editor". No like the time when open a normal file, this "Note" dialog won't go away itself. Click Cancel to close this dialog. FIles "class.h" and "class.cc" are loaded into vim. But I can't open any file into vim. If I am in SDI mode, I can see from this point all the files I try to open are loaded to internal editor. This problem won't show If I load any file to vim before I use New Wizard. Netbean build : 20011081131(FD EA1) or 200110231011 (ifdef nightly) vim: /set/krakatoa_ea1/dist/ea1.10/sparc-S2/opt/SUNWspro/FD7/contrib/contrib7/vim6.0
The basic problem here is that the "Waiting for connection" dialog does not go away automatically in this case. This is a reproducible testcase for a race condition: If the external editor has already connected before the dialog is displayed, the notification is lost and the dialog must be dismissed manually, via the window manager's Close button, *not* the Cancel button. Using the Cancel button cancels the operation and disables the externaleditor module (as the text in the dialog clearly states). This is why subsequent Open actions invoked the internal editor. I will leave this issue open to track the dialog-box race condition.
Eliminated the race condition.