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
| Comment | File | Size | Author |
|---|---|---|---|
| devel_kint_problem.png | 394.25 KB | will_frank |
Issue fork devel_kint_extras-3535663
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
Comment #2
will_frank commentedI 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}
Comment #3
dieterholvoet commentedThis 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.
Comment #4
will_frank commentedThanks. One more question please.
Is the "main Kint module" this one - https://www.drupal.org/project/kint
or something else?
Comment #5
dieterholvoet commentedYes, that’s it.
Comment #6
will_frank commentedThanks dieterholvoet! I was able to use the latest version
of this kint module with the latest Devel and I can confirm it
works well.
Comment #7
delzhand commentedWhat is the replacement for ksm() then?
Comment #8
dieterholvoet commentedI recommend creating an issue in the Kint issue queue to add the
ksm()functionality.Comment #9
mandclu commentedAt some point it might be helpful to have a release of this module that required Devel >= 5.4.0 and the main Kint module
Comment #10
dieterholvoet commentedSure, we could do that. I would still mark the module as obsolete though. MR's are welcome.
Comment #11
aubjr_drupal commented@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....
Comment #12
dieterholvoet commentedThat's a possibility, or ideally we would add a change record summarizing what was said/decided in the issue.
Comment #14
aubjr_drupal commentedChange record and MR created.
Comment #15
aubjr_drupal commentedComment #16
dieterholvoet commentedI added some more information to the change record, changed the lifecycle link to the change record and bumped the minimum Devel version.
Comment #18
dieterholvoet commentedThanks for your contribution! I'll mark the Drupal project as obsolete as well.
Comment #20
yannickooWe need to use
lifecycle_linkand notlifecycle-link. See https://www.drupal.org/node/3215042Comment #21
dieterholvoet commentedThis is being fixed in #3551060: Fix lifecycle-link typo .