Closed item4 closed 10 years ago
Sounds like you need to define:
"phpcs_executable_path": "/Users/Ben/.composer/vendor/bin//phpcs",
Where the path is what you get when you do
$ which phpcs
Sublime Text does not use your $PATH, so you have to specify full paths in the config file.
I forgot attempt my config
{
"font_face": "나눔고딕코딩",
"font_size": 13,
"ignored_packages":
[
"Vintage"
],
"phpcs_executable_path": "/Users/item4/.composer/vendor/bin/phpcs"
}
I added config value. but I can't run yet.
I think you may need to put this in the plugin user config, which you can get to via Preferences > Package Settings > PHP Code Sniffer > User Settings.
If you turn on debug as well, that will show you in the console everything it is doing. You should see the full path to phpcs being used.
oh, now it run. thx to advice.
i wish to add description about how to config it because I did not know how to config plugins. :(
It is in the readme on the front page of this repo: https://github.com/benmatselby/sublime-phpcs#configuration
And there are also example configurations https://github.com/benmatselby/sublime-phpcs/tree/master/example-settings
(I'm sorry. I can't english well..)
OS : OS X Sublime ver : 2 PHP : PHP 5.4.24 PHP_CodeSniffer : newest. installed globally by composer PATH : /Library/Frameworks/Python.framework/Versions/3.4/bin:/Users/item4/.composer/vendor/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
My sublime occur OSError: [Errno 2] No such file or directory and can't fix it.
to test, I added one line
and it's error traceback on console
So, I tried directly on python26
and I tried phpcs.
I can't understand this error. I hope fix it.