Comments (7)
Yes, you're correct, my PHP doesn't have the intl
extension.
from captainhook.
What PHP version are you running?
from captainhook.
$ php -v
PHP 8.3.9 (cli) (built: Jul 5 2024 12:03:46) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.9, Copyright (c) Zend Technologies
with Zend OPcache v8.3.9, Copyright (c), by Zend Technologies
with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans
from captainhook.
Could you run php --info | grep intl
and check if your php is compiled with '--enable-intl'
or you see lines like
intl
intl.default_locale => no value => no value
intl.error_level => 0 => 0
intl.use_exceptions => Off => Off
from captainhook.
My guess is, that your PHP comes without INTL extension and then the Symphony intl-polyfill
should kick in. But since all Symfony classes get scoped the Normalizer
gets scoped as well to Captainhook\Phar\Normalizer
so the class Normalizer
can't be found.
If you can confirm you do not have the intl
extension I will try to figure out how I can solve the problem.
from captainhook.
Can you give the PHAR file from this beta release page a try?
https://github.com/captainhookphp/captainhook/releases/tag/5.23.4-beta
from captainhook.
I'm not sure what's going on now, but the link on that release page seems a bit weird, showing the same version I got with composer require --dev captainhook/captainhook-phar
:
$ wget --quiet https://github.com/captainhookphp/captainhook/releases/download/5.23.4-beta/captainhook.phar
$ php ./captainhook.phar --version
CaptainHook version 5.23.3 2024-07-07 #StandWithUkraine
$ ./vendor/bin/captainhook --version
CaptainHook version 5.23.3 2024-07-07 #StandWithUkraine
$ php ./captainhook.phar install
PHP Fatal error: Uncaught Error: Class "Normalizer" not found in phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/string/AbstractUnicodeString.php:29
Stack trace:
#0 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Helper/Helper.php(57): [constant expression]()
#1 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(731): CaptainHook\Phar\Symfony\Component\Console\Helper\Helper::width()
#2 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(704): CaptainHook\Phar\Symfony\Component\Console\Application->doRenderThrowable()
#3 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(142): CaptainHook\Phar\Symfony\Component\Console\Application->renderThrowable()
#4 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(162): CaptainHook\Phar\Symfony\Component\Console\Application->CaptainHook\Phar\Symfony\Component\Console\{closure}()
#5 phar:///home/omni/code/slack/captainhook.phar/bin/captainhook(63): CaptainHook\Phar\Symfony\Component\Console\Application->run()
#6 phar:///home/omni/code/slack/captainhook.phar/bin/captainhook(64): CaptainHook\Phar\{closure}()
#7 /home/omni/code/slack/captainhook.phar(17): require('...')
#8 {main}
thrown in phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/string/AbstractUnicodeString.php on line 29
from captainhook.
Related Issues (20)
- Using $ENV in run-exec config HOT 3
- Support for Relative Path to CaptainHook Executable in Generated Hooks HOT 5
- Allow Staged and Changed files condition to define diff-filter HOT 1
- PHP Fatal error: Argument #2 ($filter) must be of type array HOT 7
- InjectIssueKeyFromBranch does not work as expected HOT 10
- http://captainhook.info is not available anymore? HOT 1
- Support Symfony 7 HOT 2
- $CHANGED_FILES placeholder is empty for first push HOT 1
- [FEATURE-REQUEST] New placeholder `ALL_CHANGED_FILES` HOT 17
- Docker mode not working? HOT 9
- Linting fails when it shouldn't? HOT 3
- Default config file does not work HOT 3
- Error 'The "--input" option does not exist' when rerunning the hooks HOT 1
- captainhook/captainhook-phar failing, prefer captainhook/captainhook in README HOT 3
- Running Hooks in Subrepositories fails HOT 10
- Execute PHAR hook installation without an autoloader HOT 9
- [Feature] Parallel execution of actions HOT 1
- [Bug?] Pre-push hook failing with ddev/docker HOT 4
- Installation not working behind a proxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from captainhook.