From 5c7cbe802a295bbc22cb2b1a9c9198396ef03733 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 4 Jul 2023 12:42:19 +0200 Subject: [PATCH] Python: reduce the timeout of version check commands Task-number: QTCREATORBUG-29363 Change-Id: Id7583c876dc2a8c92eae4dd68bda47dffafd6e3d Reviewed-by: Christian Stenger --- src/plugins/python/pythonlanguageclient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/python/pythonlanguageclient.cpp b/src/plugins/python/pythonlanguageclient.cpp index 9f347d8e486..eecfb35c97f 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"))