-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
ERROR: Referenced sniff "PHPCSUtils" does not exist #2380
Comments
Same problem |
Closing as resolved by user reading the upgrade guide. |
Maybe the upgrade guide should be more prominent than burried half way down the read me? :) |
I hear what you are saying, but if one follows the install instructions as per the readme, there is no issue. If one is upgrading from an older install, the upgrade guides are mentioned prominently in the intro of the 3.0.0 release and spell out what you need to do. I've spend a lot of time making sure those docs are available and straight forward to follow guides. I know you've removed your remark about my "dismissive tone" from the above comment, but that doesn't mean your comment was ever justified. If all the information is made available in extensive guides and people don't bother to read, then yes, no matter how annoying for you, this is something you could have solved by reading the docs, but instead you choose to ask unpaid maintainers to help you, effectively wasting our time and then you think it is justified to make a remark about my "tone" ? |
I apologize. Now I know what length you and the team have gone to and I simply missed it. Mika had X-Posted the core announcement to make plugins - but I missed that too ( it coincided with vacation ). You are not to know that as a developer for more than 40 years - one way to wind me up is to call me a user - its a language thing and I shouldn't have risen to it - hence my edit. |
@alanef Apology accepted. Hope WordPressCS 3.0.0 will serve you well. |
Bug Description
3.0.0 Errors with ERROR: Referenced sniff "PHPCSUtils" does not exist
Minimal Code Snippet
{
"config": {
"platform": {
"php": "7.4.33"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"wp-coding-standards/wpcs": "^3.0"
}
}
Fixed by downgrading to 2.30
Error Code
ERROR: Referenced sniff "PHPCSUtils" does not exist
Custom Ruleset
Environment
PHP 8.0.29 (cli) (built: Jun 9 2023 07:38:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.29, Copyright (c) Zend Technologies
with Zend OPcache v8.0.29, Copyright (c), by Zend Technologies
| Answer
| ------------------------ | -------
| PHP version | x.y.z
| PHP_CodeSniffer version | x.y.z
| WordPressCS version | x.y.z
| PHPCSUtils version | x.y.z
| PHPCSExtra version | x.y.z
| WordPressCS install type | e.g. Composer global, Composer project local, other (please expand)
| IDE (if relevant) | Name and version e.g. PhpStorm 2018.2.2
Additional Context (optional)
Tested Against
develop
Branch?develop
branch of WordPressCS.The text was updated successfully, but these errors were encountered: