Problem/Motivation

Running Drupal 10, latest Devel 5.4.0 (which announced kint was removed) and Devel Kint Extras 1.1.4, When I went to the configuration page it had trouble finding/displaying/choosing the kint vardumper. I've attached a screenshot of the page with the errors shown.
And trying to put a kint statement in code that runs it reports kint not found.
The Devel module release notes state that we should use a contributed module to continue to use kint
now that kint has been removed from Devel. Will you support this or do we have to look elsewhere for a solution?

Steps to reproduce

Running Drupal 10, latest Devel 5.4.0 (which announced kint was removed) and Devel Kint Extras 1.1.4, When I went to the configuration page it had trouble finding/displaying/choosing the kint vardumper. I've attached a screenshot of the page with the errors shown.
And trying to put a kint statement in code that runs it reports kint not found.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
devel_kint_problem.png394.25 KBwill_frank
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

will_frank created an issue. See original summary.

will_frank’s picture

I am pasting in here one of the 3 stack traces that appear in the error logs when
you try to open the devel admin page (as shown in the screenshot above).

Warning: Undefined array key "description" in Drupal\devel\Form\SettingsForm->buildForm() (line 149 of /var/www/html/web/modules/contrib/devel/src/Form/SettingsForm.php)
#0 /var/www/html/web/core/includes/bootstrap.inc(166): _drupal_error_handler_real()
#1 /var/www/html/web/modules/contrib/devel/src/Form/SettingsForm.php(149): _drupal_error_handler()
#2 [internal function]: Drupal\devel\Form\SettingsForm->buildForm()
#3 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array()
#4 /var/www/html/web/core/lib/Drupal/Core/Form/FormBuilder.php(284): Drupal\Core\Form\FormBuilder->retrieveForm()
#5 /var/www/html/web/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#6 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#7 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#8 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(637): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#9 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(121): Drupal\Core\Render\Renderer->executeInRenderContext()
#10 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#11 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#13 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#14 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#15 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#16 /var/www/html/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#17 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(116): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#18 /var/www/html/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(90): Drupal\page_cache\StackMiddleware\PageCache->pass()
#19 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#20 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#21 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#22 /var/www/html/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#23 /var/www/html/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#24 /var/www/html/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#25 {main}

dieterholvoet’s picture

This module was made specifically to enhance Devel's Kint integration. Since that has been removed, that would make this module obsolete. Feel free to create issues in the Kint issue queue for any of this module's functionalities that you would want to see in the main Kint module.

will_frank’s picture

Thanks. One more question please.
Is the "main Kint module" this one - https://www.drupal.org/project/kint
or something else?

dieterholvoet’s picture

Yes, that’s it.

will_frank’s picture

Thanks dieterholvoet! I was able to use the latest version
of this kint module with the latest Devel and I can confirm it
works well.

delzhand’s picture

What is the replacement for ksm() then?

dieterholvoet’s picture

I recommend creating an issue in the Kint issue queue to add the ksm() functionality.

mandclu’s picture

At some point it might be helpful to have a release of this module that required Devel >= 5.4.0 and the main Kint module

dieterholvoet’s picture

Sure, we could do that. I would still mark the module as obsolete though. MR's are welcome.

aubjr_drupal’s picture

@dieterholvoet - You're saying that you'd like someone to make a pull request that marks this module as "Obsolete" (lifecycle: obsolete in the *.info.yml file)? If so, do you want this issue page to be the "lifecycle-link"? I can do that for this project, if you want.

This is based on Info files can now contain 'lifecycle' and 'lifecycle_link' keys....

dieterholvoet’s picture

That's a possibility, or ideally we would add a change record summarizing what was said/decided in the issue.

aubjr_drupal’s picture

Change record and MR created.

aubjr_drupal’s picture

Status: Active » Needs review
dieterholvoet’s picture

I added some more information to the change record, changed the lifecycle link to the change record and bumped the minimum Devel version.

dieterholvoet’s picture

Status: Needs review » Fixed

Thanks for your contribution! I'll mark the Drupal project as obsolete as well.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

yannickoo’s picture

Status: Fixed » Needs work

We need to use lifecycle_link and not lifecycle-link. See https://www.drupal.org/node/3215042

dieterholvoet’s picture

Status: Needs work » Fixed
Related issues: +#3551060: Fix lifecycle-link typo

This is being fixed in #3551060: Fix lifecycle-link typo .

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.