Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP CS Fixer is not running
PHP CS Fixer is not running [message #1244806] Wed, 12 February 2014 22:54 Go to next message
Rafal Sokolowski is currently offline Rafal SokolowskiFriend
Messages: 1
Registered: February 2014
Junior Member
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?
Re: PHP CS Fixer is not running [message #1266014 is a reply to message #1244806] Thu, 06 March 2014 21:53 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 290
Registered: March 2013
Senior Member
PDT Extentions from [1] requires latest PDT 3.2 snapshot.
Should be available in [1] repo also.

[1] - p2-dev.pdt-extensions.org


Previous Topic:How to install PDT 3.2.2
Next Topic:Trouble debugging PHP
Goto Forum:
  


Current Time: Mon Sep 23 01:30:06 GMT 2024

Powered by FUDForum. Page generated in 0.03658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top