mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-28 17:16:29 +03:00
This should fix the windows build for real.
This commit is contained in:
@@ -192,10 +192,12 @@ void FormatterPlugin::runFormatter( UICodeEditor* editor, const Formatter& forma
|
||||
data += buffer.substr( 0, bytesRead );
|
||||
} while ( bytesRead != 0 && subprocess_alive( &subprocess ) && !mShuttingDown );
|
||||
|
||||
if ( subprocess_alive( &subprocess ) && !mShuttingDown )
|
||||
subprocess_join( &subprocess, &returnCode );
|
||||
else
|
||||
returnCode = subprocess.return_status;
|
||||
if ( mShuttingDown ) {
|
||||
subprocess_terminate( &subprocess );
|
||||
return;
|
||||
}
|
||||
|
||||
subprocess_join( &subprocess, &returnCode );
|
||||
subprocess_destroy( &subprocess );
|
||||
|
||||
// Log::info( "Formatter result:\n%s", data.c_str() );
|
||||
|
||||
@@ -271,10 +271,12 @@ void LinterPlugin::runLinter( std::shared_ptr<TextDocument> doc, const Linter& l
|
||||
data += buffer.substr( 0, bytesRead );
|
||||
} while ( bytesRead != 0 && subprocess_alive( &subprocess ) && !mShuttingDown );
|
||||
|
||||
if ( subprocess_alive( &subprocess ) && !mShuttingDown )
|
||||
subprocess_join( &subprocess, &returnCode );
|
||||
else
|
||||
returnCode = subprocess.return_status;
|
||||
if ( mShuttingDown ) {
|
||||
subprocess_terminate( &subprocess );
|
||||
return;
|
||||
}
|
||||
|
||||
subprocess_join( &subprocess, &returnCode );
|
||||
subprocess_destroy( &subprocess );
|
||||
|
||||
if ( linter.hasNoErrorsExitCode && linter.noErrorsExitCode == returnCode ) {
|
||||
|
||||
Reference in New Issue
Block a user