Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpcbf installed, grayed-out in menu #129

Closed
matthewpizza opened this issue Apr 6, 2015 · 4 comments
Closed

phpcbf installed, grayed-out in menu #129

matthewpizza opened this issue Apr 6, 2015 · 4 comments
Labels

Comments

@matthewpizza
Copy link

Using 6.6.0, I am unable to run the PHP Code Beautifier and Fixer in Sublime Text 3. phpcbf is installed, but the menu item is grayed-out.

Below is a screenshot of the flyout menu:

image

These are my user settings, confirmed paths are correct:

{
    "phpcs_executable_path": "/usr/local/bin/phpcs",
    "phpcs_additional_args": {
        "--standard": "WordPress",
        "-n": ""
    },
    "phpcbf_executable_path": "/usr/local/bin/phpcbf",
    "phpcbf_additional_args": {
        "--standard": "WordPress",
        "-n": ""
    }
}

Questions:

  • Is there an additional step to enable phpcbf?
  • Is php-cs-fixer required for phpcbf?

Thanks in advance for any help!

@benmatselby
Copy link
Owner

Good spot, it's a bug on line 705:

https://github.com/benmatselby/sublime-phpcs/blob/master/phpcs.py#L705

Will get a fix soon for you, in the mean time you could just define php_cs_fixer_executable_path

@benmatselby benmatselby added the Bug label Apr 7, 2015
@matthewpizza
Copy link
Author

@benmatselby Will do, thanks!

@benmatselby
Copy link
Owner

This should now be resolved in v6.6.1 @matthewspencer

I have to show it as enabled as I don't have access to which tool you want to use for the menu, so now I display an error if you cannot use that tool.

Not great I have to say, but a workable solution

@matthewpizza
Copy link
Author

@benmatselby Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants