ExtensionSystem: Improve warnings

Change-Id: Ib9f7a6d08ec267de43ce219c8849ceed72bb5122
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-08-29 10:48:58 +02:00
parent cba31d4eb0
commit f5e9ae47b3

View File

@@ -1410,7 +1410,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) {