-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to softly shutdown QProcess instances or allow the QProcess destructor to SIGKILL. The major change are the calls to setparent that result in the underlying qprocess being removed by the destructor (killing the nvim process). For the GUI close event we first try to wait 500ms for the process to terminate (this may have to be tuned). Tests were adjusted to make this a bit easier to manage with a QSharedPointer, the main reason for this was the issues we see in windows with leftover process breaking CI. There is still some flakyness in the tests, with occasional failures, but at least tests succeed more often now. No doubt that the root cause for races in tests is still present. Given the issues we saw with CI, I have removed all github CI windows. Troubleshooting them was always hard and some tests systematically failed.
- Loading branch information
Showing
14 changed files
with
78 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
#pragma once | ||
|
||
#include <QSharedPointer> | ||
#include <gui/mainwindow.h> | ||
#include <gui/shell.h> | ||
#include <neovimconnector.h> | ||
#include <utility> | ||
|
||
namespace NeovimQt { | ||
|
||
std::pair<NeovimConnector*, Shell*> CreateShellWidget() noexcept; | ||
QSharedPointer<Shell> CreateShellWidget() noexcept; | ||
|
||
std::pair<NeovimConnector*, MainWindow*> CreateMainWindow() noexcept; | ||
QSharedPointer<MainWindow> CreateMainWindow() noexcept; | ||
|
||
std::pair<NeovimConnector*, MainWindow*> CreateMainWindowWithRuntime() noexcept; | ||
QSharedPointer<MainWindow> CreateMainWindowWithRuntime() noexcept; | ||
|
||
} // namespace NeovimQt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.