Hướng dẫn php-cs-fixer php general error
I had the same error before and I solved it by running visual studio code as Administrator. My environment: VS setting for the extension: VS code installed path: Mar 10, 2017
update The folder does exist. or do you run the tool outside of the project directory? current php_cs i use:
All those folders exist: I downloaded and installed PHP CS Fixer extension for VSCode (by junstyle) and the official php-cs-fixer-v2.phar file from https://github.com/FriendsOfPHP/PHP-CS-Fixer. I created a file named config.php-cs and pasted the reference config code in it :
I placed both those files in C:\wamp64\www\configuration_php\ Here is my settings.json
I can tell my editor considers the executablePath because if I put a mistake in the path, I get an error message. The problem is for the config path. VSCode seems to be ignoring it completely and won't use the config file or raise any error if I introduce mistakes in the path or in the file content. Am I missing something ? |