benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
812 stars 126 forks source link

TypeError: sequence item 0: expected string, NoneType found #13

Closed marfillaster closed 12 years ago

marfillaster commented 12 years ago

It seems Pref.phpcs_executable_path equates to None in ubuntu @ "phpcs.py" 362L thus args first item is not phpcs

I temporarily changed it to if (Pref.phpcs_executable_path != "") and Pref.phpcs_executable_path != None:

I have very basic python knowledge.

benmatselby commented 12 years ago

Hi there. Which version of Ubuntu as I test this in 11.10 at the moment?

benmatselby commented 12 years ago

I think this is happening when/if Sublime cannot find the settings file. So I've committed a fix which is on the master branch, please check to see if this works for you.

marfillaster commented 12 years ago

works now!

Didn't know package control automatically updates plugins on start :)

By the way, I'm using ubuntu 12.04.

benmatselby commented 12 years ago

I'll start to add 12.04 to my list of OS's to check. Package Control is fantastic ;-)