This repository was archived by the owner on Apr 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
This repository was archived by the owner on Apr 7, 2019. It is now read-only.
Pattern generation fails with an error #15
Copy link
Copy link
Open
Description
Generating the patterns using this starter kit gives the following error (file paths have been sanitised)):
Fatal error: Uncaught Error: Call to undefined method __TwigTemplate_cb87d917ee046806b780332adb3b678cc4ebc7d51303b5fbaa0bca108638e7a0::getinput() in [...]/pattern-library/vendor/twig/twig/lib/Twig/Environment.php(467) : eval()'d code:50
Stack trace:
#0 [...]/pattern-library/vendor/twig/twig/lib/Twig/Template.php(432): __TwigTemplate_e3395681ed42013d40ffe03f163864d1d9e831fe1c0e01f210d6af0cd93d309d->doDisplay(Array, Array)
#1 [...]/pattern-library/vendor/twig/twig/lib/Twig/Template.php(403): Twig_Template->displayWithErrorHandling(Array, Array)
#2 [...]/pattern-library/vendor/twig/twig/lib/Twig/Template.php(411): Twig_Template->display(Array)
#3 [...]/pattern-library/vendor/twig/twig/lib/Twig/Environment.php(363): Twig_Template->render(Array)
#4 [...]/pattern-library/vendor/pattern-lab/patternengine-twig/src/PatternLab/PatternEngine/Twig/Loaders/PatternLoader.php(120): Twig_En in [...]/pattern-library/vendor/twig/twig/lib/Twig/Environment.php(467) : eval()'d code on line 50
Steps to reproduce:
Prerequisite: install PHP Pattern Lab Twig and verify it works with the base starter kit
- install Pattern Lab
edition-php-twig-standard
via recommended composer command (composer create-project pattern-lab/edition-twig-standard pattern-library && cd $_
) - during the installation process choose to install
starterkit-twig-base
. (Note we're not choosingstarterkit-twig-demo
because of the advice not to install this via Composer.) - once installation has finished, run
php core/console --generate
. This runs fine.
Demonstrate the error
- install
starterkit-twig-demo
(don't use Composer):php core/console --starterkit --install pattern-lab/starterkit-twig-demo
. - once installation has finished, run
php core/console --generate
. This causes the error.
This looks like a bug to me, but I realise I might be missing something.
josemanosalvas
Metadata
Metadata
Assignees
Labels
No labels