diff --git a/src/plugins/python/pythonrunconfiguration.cpp b/src/plugins/python/pythonrunconfiguration.cpp index 44db1b7a913..480f3f153f4 100644 --- a/src/plugins/python/pythonrunconfiguration.cpp +++ b/src/plugins/python/pythonrunconfiguration.cpp @@ -308,9 +308,10 @@ void PythonRunConfiguration::updateExtraCompilers() } } } - const FilePath python = aspect()->currentInterpreter().command; - if (auto client = PyLSClient::clientForPython(python)) - client->updateExtraCompilers(project(), m_extraCompilers); + for (LanguageClient::Client *client : LanguageClient::LanguageClientManager::clients()) { + if (auto pylsClient = qobject_cast(client)) + pylsClient->updateExtraCompilers(project(), m_extraCompilers); + } qDeleteAll(oldCompilers); }