SublimeLinter-phplint icon indicating copy to clipboard operation
SublimeLinter-phplint copied to clipboard

errors not showing in view

Open Jaymax-NZ opened this issue 11 years ago • 2 comments

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:

  1. the package I downloaded phplint-2.1_20150305.tar.gz did NOT contain any executable phplint - it did include phpl which seemed to be the thing. But SublimeLinter complained that it couldn't find phplint
  2. So I symlinked /usr/local/bin/phplint -> phpl
  3. 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)
  4. I looked at SublimeLinter Default Settings, and saw these included syntax_map": { .... "php": "html" } so I created User Settings syntax_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)
  5. 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?!?...

Jaymax-NZ avatar Sep 25 '15 20:09 Jaymax-NZ

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.

groteworld avatar Sep 25 '15 20:09 groteworld

Closing due to inactivity, hopefully your issue was resolved.

groteworld avatar Jan 21 '16 18:01 groteworld