Open longmtran opened 5 years ago
Same issue as above. I did try pulling in google dependencies from your composer.json, and autoloading namespaces defined in your composer.json, but same result.
Composer version: 1.10.8 drupal-spec-tool-commands: v1.0.0-rc1
Not sure why autoloading isn't working, but it seems to only be a problem for functions outside classes. This terrible hackpatch gets it working:
--- vendor/nickwilde1990/drupal-spec-tool-commands/src/ComposerPlugin.php.bak 2020-07-10 23:54:26.411037775 -0400
+++ vendor/nickwilde1990/drupal-spec-tool-commands/src/ComposerPlugin.php 2020-07-10 23:54:20.678567881 -0400
@@ -25,6 +25,9 @@
*/
public function activate(Composer $composer, IOInterface $io)
{
+ include __DIR__ . '/../../../guzzlehttp/psr7/src/functions_include.php';
+ include __DIR__ . '/../../../guzzlehttp/guzzle/src/functions_include.php';
+ include __DIR__ . '/../../../guzzlehttp/promises/src/functions_include.php';
}
public function getCapabilities()
Composer version 1.10.15 drupal-spec-tool-commands: v1.0.0-rc1
I confirm that @tgifford-webfirst's patch solved the same problem for me. Thanks.
Steps followed:
composer drupal-spec-dump-gherkin
but hit undefined function error:This site is installed with Acquia BLT and Acquia Lightning profile.