GH-4125 workaround for java printing garbage to stdout on bedrock linux

This commit is contained in:
Petr Mrázek 2022-01-08 11:14:07 +01:00 committed by swirl
parent c371558883
commit dc129fd886

View File

@ -61,6 +61,10 @@ void JavaChecker::stdoutReady()
QByteArray data = process->readAllStandardOutput();
QString added = QString::fromLocal8Bit(data);
added.remove('\r');
// NOTE: workaround for GH-4125, where garbage is getting printed into stdout on bedrock linux
if (added.contains("/bedrock/strata")) {
return;
}
m_stdout += added;
}