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 connection has been lost (or folder doesn't exist), then terminal disappears without any warnings. Scenario 1: - Start VirtualBox - Start IDE - Add remote host to NetBeans - Open remote host in built-in IDE terminal - Finish VirtualBox ==> Terminal disappears without any warnings Scenario 2: - Open Services tab - Call context on "C/C++ Build Hosts|user@host:port" node - Select "Open Terminal|Remote Mirror of Local Files" ==> if remote folder doesn't exist, then terminal appears and disappears for a second
It seems there is no way to distinguish in postExecution() if 1) the Terminal was destroyed by user (hitting a close button), or 2) by termination of the underlying process. Some info can be gained from NativeProcessListener (in case of (2) we get PROP_CONNECTION event at first). But is postExecution called before we can get such info.
* But postExecution()
Fixing in: http://hg.netbeans.org/cnd-main/rev/2f8fca039e34 The reason of the disappearing in the 2-nd scenario: pty.c (line 189) returns error code 127 and exits if it couldn't chdir to the folder which doesn't exist. I added some logging to warn user about this situation. And it seems there is no reason to have "Open Terminal|Remote Mirror of Local Files" in all remote modes except the autocopying.
Fix for scenario 2: http://hg.netbeans.org/cnd-main/rev/8f6c8ca63da6
Integrated into 'main-silver', will be available in build *201505060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2f8fca039e34 User: Ilia Gromov <ilia@netbeans.org> Log: Fixing Bug #247756 - Terminal disappears without any warnings
Scenario 2 was fixed as a bug. Scenario 1 is an enhancement, filing a separate issue. https://netbeans.org/bugzilla/show_bug.cgi?id=253678