Closed jefiedler closed 3 years ago
Thank you for the bug report.
It looks like it is a misconfiguration with regards to the phpSniffer.executablesFolder
setting. As per the README: "The folder where both phpcs
and phpcbf
executables are", so for your use case, the correct settings would be:
{
- "phpSniffer.executablesFolder": "/Users/jonaseliasfiedler/dev/subfolder/workspace-folder/cake/framework/Vendor/bin/phpcs",
+ "phpSniffer.executablesFolder": "/Users/jonaseliasfiedler/dev/subfolder/workspace-folder/cake/framework/Vendor/bin/",
"phpSniffer.autoDetect": true,
"phpSniffer.standard": "/Users/jonaseliasfiedler/dev/subfolder/workspace-folder/phpcs.xml.dist"
}
Thanks for the quick help. Now I don't get the error anymore. But nothing is scanned after I save the file. Maybe it is also because of the workspace I have, or cakePHP... Thanks anyway.
Hey, I set the executablesFolder in the settings as relative path or as path and get the error message spawn ENTODIR.
Steps to reproduce the behavior:
/Users/jonaseliasfiedler/dev/subfolder/workspace-folder/cake/framework/Vendor/bin/phpcs
/Users/jonaseliasfiedler/dev/subfolder/workspace-folder/phpcs.xml.dist
spawn ENTODIR
Expected behavior The file is scanned and the errors and warnings are displayed.
Environment
Extension settings
Additional context I would be very grateful if there is a solution. I have been trying to solve the whole thing for 4 days. My hope is, that I can use your extension. Otherwise I will have to switch to SublimeText, which I don't want to do. Since I love VSCode. I also felt that your extension is the only one that is still being developed and supported for phpcs for VSCode.