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.
Summary: | Terminal disappears without any warnings | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Terminalemulator | Assignee: | ilia |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
soldatov
2014-10-07 09:32:13 UTC
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 |