errors not showing in view
Hi. I suspect things probably went wrong fairly early [see below], but I can see the errors in the Sublime console with SublimeLinter Debug Mode turned on, but not in the editor.
Notes:
- the package I downloaded
phplint-2.1_20150305.tar.gzdid NOT contain any executablephplint- it did includephplwhich seemed to be the thing. But SublimeLinter complained that it couldn't findphplint - So I symlinked
/usr/local/bin/phplint -> phpl - SublimeLinter now seemed happy
SublimeLinter: phplint activated: /usr/local/bin/phplint, but the php file in the editor was still showing HTML tidy (I think) messages (eg:missing 'title' element) - I looked at SublimeLinter Default Settings, and saw these included
syntax_map": { .... "php": "html" }so I created User Settingssyntax_map": { "php": "php" }which made the HTML error go away, but no php errors appear in the editor (and I knew there should be some) - I found and turned on SublimeLinter Debug Mode, and saw in the console output quite a lot of:
19: add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );
\_ HERE
==== 19: ERROR: unresolved function add_filter
20: add_action( 'x_before_site_begin', 'bd_echoaction');
add_action( 'x_before_site_begin', 'bd_echoaction');
\_ HERE
==== 20: ERROR: unresolved function add_action
I'm presumably doing something daft, like using the wrong executable?!?...
Hey, so 1-2 should be fixed, literally 2 hours ago I released the newest version of SL-phplint which uses the phpl executable. This could fix many if not all of your other issues. I would have package control install the newest SL-phplint and remove your settings changes. See if that doesn't resolve, most if not all of your issues. If you still have issues, let me know your new setup or problems.
Closing due to inactivity, hopefully your issue was resolved.