PHPStorm Codesniffer problem

I am currently trying to configure PHPStorm to use the CodeSniffer but for some reason it just wont validate.  I have made sure that it is installed via PEAR and I have also installed it via Composer.  Neither way seems to validate.. All I get is a red box with an exclamation mark in it.

phpstorm_codesniffer_problem.png

Can anyone shed some light as to what is going on and how I can rectify the problem.  I can type phpcs in the command line and i can retrieve the version which mean I have installed it properly.  Any help woud be appreciated.

Thanks

Emmanuel

0
12 comments

What version of Codesniffer do you use? Do you use any custom Coding standards in Settings->Inspections->PHP Code Sniffer?

0
Avatar
Permanently deleted user

the version 1.4.6. Not using any custom coding standards and its not even loading the defaults ones that come with CodeSniffer.  So something must have gone wrong somewhere.

0

If you install "squizlabs/php_codesniffer" 1.4.6 via Composer and specify "vendor/bin/phpcs.bat" it still doesn't work, does it?

0
Avatar
Permanently deleted user

Well the screenshot I have provided should have been self explanatory..  It doesnt work, whether its via Composer or PEAR

0

Could you please attach idea.log (Help->Show Log in...)?

0
Avatar
Permanently deleted user

Log file has been attached....



Attachment(s):
threadDumps-20130820-114653-PS-130.1639.zip
0

There is no idea.log in directory only threadDumps. Does idea.log exists at all?

0
Avatar
Permanently deleted user

My apologies... I have attached the idea.log file.



Attachment(s):
idea.log.zip
0

Hmmm. According to log your phpcs.bat runs just fine. Could you please double check rights for the file or try to run PhpStorm as Administer. If it won't help please submit bug ticket to http://youtrack.jetbrains.com/issues?q=project%3A+PhpStorm. Thank you!

0
Avatar
Permanently deleted user

Hi Maxim,

PHPStorm has already been set to run as an administrator.  Looks like I may have to submit a bug report.

Thanks for having a look at the log file.

Emmanuel

0

I have the exact same problem in 2017, what did you do to fix this please?

 

Thanks

0

@ben Please attach log files (Help|Show Logs in...) after an attempt to verify PHPCS.

0

Please sign in to leave a comment.