Revert "Revert "ExtensionSystem: Improve warnings""

This reverts commit 54b7ba9060.

Reason for revert: Re-revert once dcafa4b2f3b80972bf4ceffbf68b2bac2d96e5a8 in

Change-Id: I25151e36106e2701a7e464045df3d2d7ead70036
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-08-29 11:30:29 +00:00
parent 861aa753b9
commit 0a54d8a102

View File

@@ -1423,7 +1423,15 @@ void PluginManagerPrivate::loadPlugins()
void PluginManagerPrivate::loadPluginsAtRuntime(const QSet<PluginSpec *> &plugins)
{
QTC_CHECK(allOf(plugins, [](PluginSpec *spec) { return spec->isSoftLoadable(); }));
const bool allSoftloadable = allOf(plugins, &PluginSpec::isSoftLoadable);
if (!allSoftloadable) {
const QStringList notSoftLoadablePlugins = Utils::transform<QStringList>(
Utils::filtered(plugins, std::not_fn(&PluginSpec::isSoftLoadable)),
&PluginSpec::displayName);
qWarning().noquote()
<< "PluginManagerPrivate::loadPluginsAtRuntime(): trying to load non-softloadable"
<< "plugin(s):" << notSoftLoadablePlugins.join(", ");
}
// load the plugins and their dependencies (if possible) ordered by dependency
const QList<PluginSpec *> queue = filtered(loadQueue(), [&plugins](PluginSpec *spec) {