Sublime Forum

No linting on PHP files

#1

Does anyone have a workaround for this? github.com/Kronuz/SublimeLinter/issues/95

0 Likes

#2

I was doing most of the coding and support from end of July last year until recently. I just can’t spare the time any more. It would be nice if some other people would step up.

  • Aparajita
0 Likes

#3

You are using SublimeLinter instead of sublimelint right?

If using SublimeLinter
Try to do some debugging:

look at the message of linting a file via “console” ( be sure to navigate to the folder )
php -l filename.php

and compare the output with the result on sublimeLinter.
…\Packages\SublimeLinter\sublimelinter\modules\php.py

on line “for line in errors.splitlines():”
before add
“print errors”
maybe there is a need to adjust the regular expression

add more prints as necesary to check where is failing.

0 Likes

#4

Maybe is the “-d” parameter, try testing on command line.

0 Likes

#5

This helped me: github.com/chipotle/SublimeLint … 0a9950788a
(so the root of the cause was OS X 10.7.3, not a new version of ST2)

Thanks for your pointers!

0 Likes

#6

I submitted a pull request to add your exception:
github.com/Kronuz/SublimeLinter/pull/98

0 Likes