Open ethanteague opened 6 years ago
OS?
phpcbf version? Run phpcbf --version
to get the version
And please post your phpcbf settings.
Ubuntu, PHP_CodeSniffer version 2.9.2 (stable)
You should upgrade phpcs/phpcbf to the latest release (3.2.2)
That doesn't work for the Drupal folks, @soderlind : ```- drupal/coder 8.2.12 requires squizlabs/php_codesniffer >=2.8.1 <3.0 -> satisfiable by squizlabs/php_codesniffer[2.9.x-dev].
I take that back - I don't need coder to use the Drupal standard. That said, I upgraded, and the result is the same.
what's your phpcbf.executablePath
?
I've tried using the default provided by the plugin, as well as changing to the executable path revealed by which phpcbf
: "phpcbf.executablePath": "/home/ethan/.config/composer/vendor/bin/phpcbf"
Did you try "phpcbf.debug":true
? It yes, what's the output in the console ?
I did, and it doesn't output anything.
Nothing at all ? Strange. What's the vs code version you're running ?
Latest release - just upgraded when prompted this am.
ok. I'll get back to you. I have to install ubuntu an test it myself. I on macOS now.
I am having the same problem as @ethanteague using linux mint (which is based on ubuntu 16.04 LTS).
My apologies, my problem was due to incorrect phpcs configuration due to which my custom standard wasn't being found. Checking the console (Help -> Toggle Developer Tools) I was able to fix my issue.
I am still experiencing this issue, @soderlind. Phpcs is integrated via https://github.com/ikappas/vscode-phpcs and working on my machine. I have checked all perms, paths, etc. for the phpcbf binary, and they all line up with my phpcs binary being used by the ikappas plugin.
👍
I have the same issue on MacOS. No debug nada.
Worked for me up until a week or so ago. Same issue. No debug/logging. phpcs and phpcbf up to date.
I'm also facing the same issue. Nothing in debug information.
Sorry to leave a really generic "it doesn't work" bug report, but this extension doesn't do anything for me. It's not reporting errors or any messages in the Problems window. I do have phpcbf installed, and can execute it successfully on files via command line. I've tried to hardcode the path to the phpcbf executable in my user settings file, but no joy.