Skip to content

Exception thrown: "Error in bootstrap script" in latest version (6.4) #697

@bshaffer

Description

@bshaffer

Hello!
The latest version (6.4) broke our installation with the following error/stack trace:

Error in bootstrap script: Webmozart\Assert\InvalidArgumentException:
Expected a non-empty value. Got: "0"
#0 vendor/webmozart/assert/src/Assert.php(666): Webmozart\Assert\Assert::reportInvalidArgument('Expected a non-...')
#1 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Expression.php(90): Webmozart\Assert\Assert::notEmpty('0')
#2 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/ClassConstant.php(120): phpDocumentor\Reflection\Php\Expression->__construct('0', Array)
#3 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/ClassConstant.php(91): phpDocumentor\Reflection\Php\Factory\ClassConstant->determineValue(Object(phpDocumentor\Reflection\Php\Factory\ClassConstantIterator))
#4 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php(60): phpDocumentor\Reflection\Php\Factory\ClassConstant->doCreate(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(PhpParser\Node\Stmt\ClassConst), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#5 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/Class_.php(75): phpDocumentor\Reflection\Php\Factory\AbstractFactory->create(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(PhpParser\Node\Stmt\ClassConst), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#6 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php(60): phpDocumentor\Reflection\Php\Factory\Class_->doCreate(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(PhpParser\Node\Stmt\Class_), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#7 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/Namespace_.php(48): phpDocumentor\Reflection\Php\Factory\AbstractFactory->create(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(PhpParser\Node\Stmt\Class_), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#8 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php(131): phpDocumentor\Reflection\Php\Factory\Namespace_->create(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(PhpParser\Node\Stmt\Namespace_), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#9 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php(118): phpDocumentor\Reflection\Php\Factory\File->createElements(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Array, Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#10 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php(66): phpDocumentor\Reflection\Php\Factory\File->createFile(Object(phpDocumentor\Reflection\Php\Factory\File\CreateCommand))
#11 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/File.php(93): phpDocumentor\Reflection\Php\Factory\File->{closure:phpDocumentor\Reflection\Php\Factory\File::__construct():66}(Object(phpDocumentor\Reflection\Php\Factory\File\CreateCommand))
#12 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/Factory/AbstractFactory.php(60): phpDocumentor\Reflection\Php\Factory\File->doCreate(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(phpDocumentor\Reflection\File\LocalFile), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#13 vendor/phpdocumentor/reflection/src/phpDocumentor/Reflection/Php/ProjectFactory.php(128): phpDocumentor\Reflection\Php\Factory\AbstractFactory->create(Object(phpDocumentor\Reflection\Php\Factory\ContextStack), Object(phpDocumentor\Reflection\File\LocalFile), Object(phpDocumentor\Reflection\Php\ProjectFactoryStrategies))
#14 Core/src/Testing/Reflection/ReflectionHandlerV5.php(90): phpDocumentor\Reflection\Php\ProjectFactory->create('My Project', Array)
#15 Core/src/Testing/Snippet/Coverage/Scanner.php(123): Google\Cloud\Core\Testing\Reflection\ReflectionHandlerV5->classes(Array)
#16 Core/src/Testing/Snippet/Coverage/Coverage.php(81): Google\Cloud\Core\Testing\Snippet\Coverage\Scanner->classes(Array, Array)
#17 Core/src/Testing/TestHelpers.php(121): Google\Cloud\Core\Testing\Snippet\Coverage\Coverage->buildListToCover()
#18 Core/snippet-bootstrap.php(6): Google\Cloud\Core\Testing\TestHelpers::snippetBootstrap()
#19 vendor/phpunit/phpunit/src/Util/FileLoader.php(66): include_once('/Users/betterbr...')
#20 vendor/phpunit/phpunit/src/Util/FileLoader.php(49): PHPUnit\Util\FileLoader::load('/Users/betterbr...')
#21 vendor/phpunit/phpunit/src/TextUI/Command.php(567): PHPUnit\Util\FileLoader::checkAndLoad('././Core/snippe...')
#22 vendor/phpunit/phpunit/src/TextUI/Command.php(347): PHPUnit\TextUI\Command->handleBootstrap('././Core/snippe...')
#23 vendor/phpunit/phpunit/src/TextUI/Command.php(114): PHPUnit\TextUI\Command->handleArguments(Array)
#24 vendor/phpunit/phpunit/src/TextUI/Command.php(99): PHPUnit\TextUI\Command->run(Array, true)
#25 vendor/phpunit/phpunit/phpunit(107): PHPUnit\TextUI\Command::main()
#26 vendor/bin/phpunit(122): include('/Users/...')

I am assuming this is a bug in this library, since nothing changed on our end and a new version was just released, so I wanted to file an issue. However I'll look into it on our end as well to be sure. Note: Rolling back to 6.3 DOES fix the issue

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