-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non Drupal 8 projects checking fails if PHP doesn't have iconv enabled #33
Comments
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
1 more comment on the issue that it in case you have for example PHP 7.3 installed but not the iconv module enabled, then it will fail silently as it will install 1.0.3 version of Code Quality tool. You'll then don't have the phpstan package installed and the line from documentation to copy it's config will fail:
|
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
Code Quality tool needs PHP iconv module enabled but it's not always available by default. That's why Drupal 8 has added polyfill package for it and it makes sense to add it to Code Quality too. We want this tool to be installed as easily as possible.
I was not able to solve it from composer.json. Tried:
All in all, it's advised to use the PHP iconv library as it's faster. Some more options to propose here Something else? |
PHP iconv extension is needed on the system for this plugin to work. We'll add polyfill-iconv here in case you are working with Lando and the plugin is availabble in Docker container but git commit fails as the extension is not available in the host system.
PHP iconv extension is needed on the system for this plugin to work. We'll add polyfill-iconv here in case you are working with Lando and the plugin is availabble in Docker container but git commit fails as the extension is not available in the host system.
PHP iconv extension is needed on the system for this plugin to work. We'll add polyfill-iconv here in case you are working with Lando and the plugin is availabble in Docker container but git commit fails as the extension is not available in the host system.
Ok, here's my last thought on this. Here's the situation that I would like to avoid. I've installed the latest code-quality in lando using:
Everything goes fine but now when trying to commit it yells about the iconv library: Wouldn't hurt to add this safe fallback for projects like Drupal 7 (it's in core drupal 8 composer.json)? |
…rupal-8-projects #33 Fix some iconv issues
PHP iconv extension is needed on the system for this plugin to work. We'll add polyfill-iconv here in case you are working with Lando and the plugin is availabble in Docker container but git commit fails as the extension is not available in the host system.
I added code-quality to my Drupal 7 project but it fails when commiting:
My system doesn't seem to have php module iconv enabled and configured. But then again it works fine for Drupal 8. When checking deeper, then I found that Drupal 8 has symfony/polyfill-iconv package installed. This solved my issue:
It's missing --dev intentionally because Drupal 8 web/core/composer.json file has the dependency also in require section as:
The text was updated successfully, but these errors were encountered: