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

run_on_save not working? #8

Open
ghost opened this issue Dec 17, 2019 · 1 comment
Open

run_on_save not working? #8

ghost opened this issue Dec 17, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 17, 2019

Hi there,

I've just installed this and have it working using ALT + S as well as the options to Check/Fix a file in Sublime > Tools. This works great!

However I have in my User config run_on_save set to true but nothing seems to happen after I hit save. Here is my User config:

{
     // Run PHPCS when a buffer is saved.
    "run_on_save": true,

    "phpcs_standard": "PSR2",

    // Path to the PHPCS script.
    "phpcs_path": "/Users/ralphmorris/phpspecs/PHP_CodeSniffer/bin/phpcs",

    // Path to the PHPCBF script.
    "phpcbf_path": "/Users/ralphmorris/phpspecs/PHP_CodeSniffer/bin/phpcbf",
}

If I move a bracket into the wrong position and then do Shift + Option + S it fixes it. But on save, nothing.

I'm unsure how to debug this. Any ideas?

Thanks
Ralph

@andremacola
Copy link

andremacola commented Sep 1, 2020

Fixed on my: https://github.com/andremacola/sublime-PHP_CodeSniffer

And it is working on ST4 Dev build too.

I just created a PR with several improvements, but I don't known if any author/core developer is viewing this repo now.

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

No branches or pull requests

1 participant