forked from qt-creator/qt-creator
ExtensionSystem: Improve warnings
Change-Id: Ib9f7a6d08ec267de43ce219c8849ceed72bb5122 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user