Php_codesniffer: vcruntime140.dll 14.0 is not compatible

Created on 17 Dec 2019  路  11Comments  路  Source: squizlabs/PHP_CodeSniffer

When including PHP_CodeSniffer on PHPStorm 2019.3 as a Quality Tool it keeps giving the following error:

phpcs: PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0

I thought this might be a compatibility issue with PHP 7.4.0, but the requirements clearly state that

PHP_CodeSniffer requires PHP version 5.4.0 or greater

Most helpful comment

Issue resolved after install VC_redist.x64.exe
thanks

All 11 comments

I have confirmed this as a compatibility issue on PHP 7.4.0. With PHP 7.2.19 it does not produce this error. I however do not have the knowhow to trace this issue back to any specific code in PHPCS.

@RienBijl As far as I know, this is unrelated to PHPCS, but has to do with your PHP install itself. The latest PHP versions for Windows need VC15.
See: https://windows.php.net/download/ - there are links to the downloads you need in the column on the left.

@jrfnl I have VC15-19 on my machine. Furthermore, PHP 7.4.0 does run other applications. For me this problem is exclusively with PHPcs

@RienBijl Could you try running PHPCS from the command line using PHP 7.4.0 ? If the warning doesn't pop up, the problem is with the PHPStorm integration, not PHPCS.

(I've been running PHPCS with PHP 7.4.0 on Windows for quite a while now and never seen this).

Yes, this is a PHPStorm issue (https://prnt.sc/qc1qd7). I'll look some further into this. If I find a solution I'll post it here for others that might struggle with this issue @jrfnl.

For people having this problem, please follow this issue on the jetbrains bugtracker: https://youtrack.jetbrains.com/issue/WI-50383

The previous issue was judged as duplicate. Please follow this issue . It seems that the bug is only a PHPStorm bug. It is "blindly" fixed on PHPStorm 2019.3.1, but not for the PHP Mess Detector.

The previous issue was judged as duplicate. Please follow this issue . It seems that the bug is only a PHPStorm bug. It is "blindly" fixed on PHPStorm 2019.3.1, but not for the PHP Mess Detector.

not only in PHPStorm.
I just only install PHP7.4.3 in windows 10 x64
(I have already isntalled vc ++ 2015 ),
but the same problem occured
I do not know it is vc's problem or php's problem

I hava the same problem.when I download the latest versions of Microsoft Visual C++锛孖 successfully solved this problem.you can down it here .
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

download Microsoft Visual C++ Redistributable for Visual Studio 2019 from
https://aka.ms/vs/16/release/VC_redist.x64.exe and install and chill.

Issue resolved after install VC_redist.x64.exe
thanks

Was this page helpful?
0 / 5 - 0 ratings