Home Download Buy Blog Forum Support

No linting on PHP files

No linting on PHP files

Postby hubert on Thu Feb 09, 2012 10:41 am

Does anyone have a workaround for this? https://github.com/Kronuz/SublimeLinter/issues/95
hubert
 
Posts: 31
Joined: Mon Jan 09, 2012 12:12 pm

Re: No linting on PHP files

Postby aparajita on Thu Feb 09, 2012 10:47 am

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
aparajita
 
Posts: 173
Joined: Sun Jul 24, 2011 10:42 pm

Re: No linting on PHP files

Postby tito on Thu Feb 09, 2012 11:46 pm

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.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: No linting on PHP files

Postby tito on Thu Feb 09, 2012 11:48 pm

Maybe is the "-d" parameter, try testing on command line.
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: No linting on PHP files

Postby hubert on Fri Feb 10, 2012 6:56 am

This helped me: https://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!
hubert
 
Posts: 31
Joined: Mon Jan 09, 2012 12:12 pm

Re: No linting on PHP files

Postby tito on Fri Feb 10, 2012 12:16 pm

I submitted a pull request to add your exception:
https://github.com/Kronuz/SublimeLinter/pull/98
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 706
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot] and 23 guests