6579 self.__makeProcess = QProcess(self) |
6579 self.__makeProcess = QProcess(self) |
6580 self.__makeProcess.readyReadStandardOutput.connect(self.__makeReadStdOut) |
6580 self.__makeProcess.readyReadStandardOutput.connect(self.__makeReadStdOut) |
6581 self.__makeProcess.readyReadStandardError.connect(self.__makeReadStdErr) |
6581 self.__makeProcess.readyReadStandardError.connect(self.__makeReadStdErr) |
6582 self.__makeProcess.finished.connect( |
6582 self.__makeProcess.finished.connect( |
6583 lambda exitCode, exitStatus: self.__makeFinished( |
6583 lambda exitCode, exitStatus: self.__makeFinished( |
6584 exitCode, exitStatus, questionOnly, interactive |
6584 exitCode, exitStatus, questionOnly |
6585 ) |
6585 ) |
6586 ) |
6586 ) |
6587 self.__makeProcess.setWorkingDirectory(self.getProjectPath()) |
6587 self.__makeProcess.setWorkingDirectory(self.getProjectPath()) |
6588 self.__makeProcess.start(prog, args) |
6588 self.__makeProcess.start(prog, args) |
6589 |
6589 |
6620 Preferences.getSystem("IOEncoding"), |
6620 Preferences.getSystem("IOEncoding"), |
6621 "replace", |
6621 "replace", |
6622 ) |
6622 ) |
6623 self.appendStderr.emit(error) |
6623 self.appendStderr.emit(error) |
6624 |
6624 |
6625 def __makeFinished(self, exitCode, exitStatus, questionOnly, interactive=True): |
6625 def __makeFinished(self, exitCode, exitStatus, questionOnly): |
6626 """ |
6626 """ |
6627 Private slot handling the make process finished signal. |
6627 Private slot handling the make process finished signal. |
6628 |
6628 |
6629 @param exitCode exit code of the make process |
6629 @param exitCode exit code of the make process |
6630 @type int |
6630 @type int |
6631 @param exitStatus exit status of the make process |
6631 @param exitStatus exit status of the make process |
6632 @type QProcess.ExitStatus |
6632 @type QProcess.ExitStatus |
6633 @param questionOnly flag indicating a test only run |
6633 @param questionOnly flag indicating a test only run |
6634 @type bool |
|
6635 @param interactive flag indicating an interactive invocation (i.e. |
|
6636 through a menu action) |
|
6637 @type bool |
6634 @type bool |
6638 """ |
6635 """ |
6639 if exitStatus == QProcess.ExitStatus.CrashExit: |
6636 if exitStatus == QProcess.ExitStatus.CrashExit: |
6640 EricMessageBox.critical( |
6637 EricMessageBox.critical( |
6641 self.ui, |
6638 self.ui, |