PHP CS Fixer is not running [message #1244806] |
Wed, 12 February 2014 17:54  |
Eclipse User |
|
|
|
Environment
Windows 8 Pro
Eclipse Standard Kepler 4.3.1 for Windows 64 Bit
PHP Development Tools (PDT) 3.2.0 from download.eclipse.org/tool/pdt/updates/release
PDT Extensions 0.19.1 from p2-dev.pdt-extensions.org
Wampserver (64 bits & PHP 5.4) 2.4
Everything is freshly installed with default configuration.
Eclipse -> Preferences -> PHP -> PHP Executables -> Add...
Name: php Executable path: [path]\php.exe
PHP ini file (optional): [path]\php.ini
SAPI Type: CLI
PHP debugger: XDebug (it is on in PHP settings)
I download php-cs-fixer.phar from cs.sensiolabs.org
I open cmd prompt and enter this command:
php php-cs-fixer.phar fix [path]\test.php --dry-run
It runs perfectly.
Eclipse -> Preferences -> PHP -> Code Style -> CS Fixer
PHP executable: php
CS-Fixer selection: Use global cs-fixer
Custom cs-fixer binary: [path]/php-cs-fixer.phar
Configuration: Default
Use default PHP-CS fixer options (checked)
I select a php file from PHP Explorer.
Then I click right mouse button on it -> PDT Extensions -> Run PHP-CS Fixer
and nothing happens (no output in console or error log)... any idea why?
|
|
|
|
Powered by
FUDForum. Page generated in 0.12522 seconds