terminal: survive failed resize (IDEA-203500)

The underlying cause still needs investigation.
This commit is contained in:
Sergey Simonchik
2018-12-17 21:53:20 +03:00
parent e90f657074
commit 0c762f9347
@@ -212,7 +212,12 @@ public abstract class AbstractTerminalRunner<T extends Process> {
// Resize ASAP once the process started.
// Even though it will be resized in invokeLater, it takes some time until invokeLater is executed.
// Sometimes it's enough to have cropped output, if the output is restricted by the terminal width.
TerminalStarter.resizeTerminal(terminalWidget.getTerminal(), connector, size, RequestOrigin.User);
try {
TerminalStarter.resizeTerminal(terminalWidget.getTerminal(), connector, size, RequestOrigin.User);
}
catch (Exception e) {
LOG.warn("Cannot resize right after creation, process.isAlive: " + process.isAlive(), e);
}
}
ApplicationManager.getApplication().invokeLater(() -> {