aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2023-07-04 12:42:19 +0200
committerDavid Schulz <david.schulz@qt.io>2023-07-04 11:59:12 +0000
commit5c7cbe802a295bbc22cb2b1a9c9198396ef03733 (patch)
tree4d5bcc33c2c63866dec54e04d6c1871ba6f79513
parenta23b9333080dec3ed9b9b8c1548a97a81b0ffaa6 (diff)
Python: reduce the timeout of version check commands
Task-number: QTCREATORBUG-29363 Change-Id: Id7583c876dc2a8c92eae4dd68bda47dffafd6e3d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
-rw-r--r--src/plugins/python/pythonlanguageclient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp
index 9f347d8e48..eecfb35c97 100644
--- a/src/plugins/python/pythonlanguageclient.cpp
+++ b/src/plugins/python/pythonlanguageclient.cpp
@@ -115,6 +115,7 @@ static PythonLanguageServerState checkPythonLanguageServer(const FilePath &pytho
const FilePath &modulePath = getPylsModulePath(pythonLShelpCommand);
Process pythonProcess;
+ pythonProcess.setTimeoutS(2);
pythonProcess.setCommand(pythonLShelpCommand);
pythonProcess.runBlocking();
if (pythonProcess.allOutput().contains("Python Language Server"))