Incompatibility with latest canvas 1.x-dev version

Created on 16 December 2025, about 1 month ago

Problem

It seems some recent changes in Canvas results in an incompatibility:

Time: 01:25.870, Memory: 22.00 MB
There were 2 errors:
1) Drupal\Tests\custom_elements\Kernel\CanvasIntegrationTest::testCanvasExtJsComponentConversion
ArgumentCountError: Too few arguments to function Drupal\canvas\Plugin\Canvas\ComponentSource\GeneratedFieldExplicitInputUxComponentSourceBase::__construct(), 8 passed in /builds/project/custom_elements/web/modules/contrib/canvas_extjs/src/Plugin/Canvas/ComponentSource/ExternalJavaScriptComponent.php on line 79 and exactly 9 expected
/builds/project/custom_elements/web/modules/contrib/canvas/src/Plugin/Canvas/ComponentSource/GeneratedFieldExplicitInputUxComponentSourceBase.php:102
/builds/project/custom_elements/web/modules/contrib/canvas_extjs/src/Plugin/Canvas/ComponentSource/ExternalJavaScriptComponent.php:79
/builds/project/custom_elements/web/modules/contrib/canvas_extjs/src/Plugin/Canvas/ComponentSource/ExternalJavaScriptComponent.php:95
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php:21
/builds/project/custom_elements/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php:85
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:62
/builds/project/custom_elements/web/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php:80
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:83
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:99
/builds/project/custom_elements/web/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php:55
/builds/project/custom_elements/web/modules/contrib/canvas/src/Plugin/VersionedConfigurationSubsetSingleLazyPluginCollection.php:37
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/Component.php:256
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/Component.php:271
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/VersionedConfigEntityBase.php:184
/builds/project/custom_elements/web/modules/contrib/canvas/src/Entity/Component.php:518

Steps to reproduce

- see custom_elements tests

Proposed resolution

- we should fix + update the tests of canvas_extjs to run against canvas 1.x dev version as well (like custom_elements)

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024