We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74b797 commit d021e5aCopy full SHA for d021e5a
1 file changed
bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/ToolInitializer.java
@@ -6,6 +6,7 @@
6
7
import java.io.File;
8
import java.io.IOException;
9
+import java.io.OutputStream;
10
import java.nio.file.Files;
11
import java.nio.file.Path;
12
import java.nio.file.Paths;
@@ -276,6 +277,8 @@ public boolean isEimGuiCapable(String eimPath)
276
277
Logger.log("Checking if EIM supports GUI mode with command: " + String.join(" ", pb.command())); //$NON-NLS-1$ //$NON-NLS-2$
278
pb.redirectErrorStream(true);
279
Process process = pb.start();
280
+ // Drain stdout so the process doesn't block
281
+ process.getInputStream().transferTo(OutputStream.nullOutputStream());
282
boolean finished = process.waitFor(5, TimeUnit.SECONDS);
283
if (!finished)
284
{
0 commit comments