Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Pattern generation fails with an error #15

@davidcmoulton

Description

@davidcmoulton

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

  1. install Pattern Lab edition-php-twig-standard via recommended composer command (composer create-project pattern-lab/edition-twig-standard pattern-library && cd $_)
  2. during the installation process choose to install starterkit-twig-base. (Note we're not choosing starterkit-twig-demo because of the advice not to install this via Composer.)
  3. once installation has finished, run php core/console --generate. This runs fine.

Demonstrate the error

  1. install starterkit-twig-demo (don't use Composer): php core/console --starterkit --install pattern-lab/starterkit-twig-demo.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions