From b36cbf150726373ae352f5d502b0b7b0d6f739c4 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Wed, 20 Dec 2017 18:41:26 +0300 Subject: [PATCH] setFraction makes sense only for determinate progress indicator --- .../com/jetbrains/python/console/PydevConsoleCommunication.java | 1 + 1 file changed, 1 insertion(+) diff --git a/python/src/com/jetbrains/python/console/PydevConsoleCommunication.java b/python/src/com/jetbrains/python/console/PydevConsoleCommunication.java index 7d6d0295dabc..ce636e5447a8 100644 --- a/python/src/com/jetbrains/python/console/PydevConsoleCommunication.java +++ b/python/src/com/jetbrains/python/console/PydevConsoleCommunication.java @@ -480,6 +480,7 @@ public class PydevConsoleCommunication extends AbstractConsoleCommunication impl ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator(); progressIndicator.setText("Waiting for REPL response with " + (int)(TIMEOUT / 10e8) + "s timeout"); + progressIndicator.setIndeterminate(false); final long startTime = System.nanoTime(); while (nextResponse == null) { if (progressIndicator.isCanceled()) {