Home Download Buy Blog Forum Support

SublimeLint (Realtime lint highlighting)

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Fri Aug 05, 2011 2:31 am

rdougan wrote:
aparajita wrote:
rdougan wrote:Linting no longer seems to work for me, with the latest version.


Which language are you trying to lint, which fork of sublimelint?


I'm using https://github.com/Kronuz/SublimeLint.git

It was working a few days ago, so it is a recent thing.


There must be some error messages in the console. Try opening SublimeLint/sublimelint_plugin.py, save it, then see what the console says.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Fri Aug 05, 2011 7:49 am

aparajita wrote:There must be some error messages in the console. Try opening SublimeLint/sublimelint_plugin.py, save it, then see what the console says.


Code: Select all
Writing file /Users/Robert/Desktop/untitled.js with encoding UTF-8
Traceback (most recent call last):
  File "./sublime_plugin.py", line 147, in on_post_save
  File "./sublimelint_plugin.py", line 594, in on_post_save
  File "./sublimelint_plugin.py", line 302, in queue_linter
  File "./sublimelint_plugin.py", line 286, in select_linter
TypeError: argument of type 'NoneType' is not utterable
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Fri Aug 05, 2011 7:59 am

I fixed it myself by removing the check to see if the language is disabled. I'm not familiar enough with python to fix it properly..
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Fri Aug 05, 2011 3:22 pm

Change line 283 to:

disable = view.settings().get('sublimelint_disable', [])
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby andymccurdy on Fri Aug 05, 2011 5:55 pm

I'm having some issues trying to get customize Kronuz's fork. It doesn't seem like any of the settings take effect. I've tried adding them to "Global Settings - User" and also to "File Settings - User", but neither seem to be picked up. Am I looking in the right place?
andymccurdy
 
Posts: 9
Joined: Sat Jan 29, 2011 2:14 am

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Fri Aug 05, 2011 5:56 pm

A fixed version can be found here:

https://github.com/aparajita/SublimeLint
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Fri Aug 05, 2011 6:04 pm

Thanks!

Linting used to work when you simply modified the file, but no longer seems to? You have to save. I tried debugging last night and the queue method gets called, but I'm getting the file must be saved for it to 'lint'?
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Fri Aug 05, 2011 7:31 pm

Small issue: The example theme syntax for annotations says the scope is sublimelint.notes, but it should be sublimelint.annotations.
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby Kronuz on Fri Aug 05, 2011 7:50 pm

@andymccurdy, You should use User File Settings to put the SublimeLint settings. What settings aren't working?
Kronuz
 
Posts: 98
Joined: Mon Feb 14, 2011 3:14 pm

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Fri Aug 05, 2011 7:52 pm

@andymccurdy Also, make sure there are no errors in the console. Has happened a few times for me
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 8 guests