Home Download Buy Blog Forum Support

New user: Can I have some help getting linting working?

New user: Can I have some help getting linting working?

Postby EivindFS on Thu Nov 15, 2012 1:11 pm

Hi!

Just discovered SublimeText and have the sense that I'll learn to love it quickly - most text editors on Windows are terrible after all.

But I'm having some initial difficulties - ST takes quite a different approach to settings and plugins to what I'm used to and there seems to be an impenetrable wall right now, the other side of which only initiates are let in on.

I have tried installing both sublimelint and sublimelinter. None of them actually do anything, however. CTRL+SHIFT+P produces only one menu option for SublimeLinter - Extract Annotations. I've read that it's supposed to show a lot more stuff, but it doesn't.

SublimeLint on the other hand shows three options, but none of them actually do anything (previous error, next error and show all errors all fail to highlight any errors).

I'm not sure if I'm experiencing bugs. It seems that the ST community is of a very high technical level and that as a mere mortal, I'm supposed to know things I don't. A little bit intimidating for sure, but I have the sense I will be well served by persisting.

Thanks for your help,
Eivind
EivindFS
 
Posts: 4
Joined: Thu Nov 15, 2012 1:04 pm

Re: New user: Can I have some help getting linting working?

Postby EivindFS on Thu Nov 15, 2012 1:25 pm

It may be worth stating that the above reported behaviour is the same for all file types.

Cheers,
E
EivindFS
 
Posts: 4
Joined: Thu Nov 15, 2012 1:04 pm

Re: New user: Can I have some help getting linting working?

Postby pier on Sat Nov 17, 2012 1:47 am

Did you install package control? This is the best way to manage packages.

Follow the link, click the green button, and then follow the instructions.

http://wbond.net/sublime_packages/package_control
pier
 
Posts: 92
Joined: Fri Jun 15, 2012 2:47 am

Re: New user: Can I have some help getting linting working?

Postby agibsonsw on Sat Nov 17, 2012 1:56 am

Check the Console regularly as well, by pressing Ctrl-' (apostrophe), to see if there are any error messages.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: New user: Can I have some help getting linting working?

Postby EivindFS on Mon Dec 03, 2012 7:50 pm

pier wrote:Did you install package control? This is the best way to manage packages.

Follow the link, click the green button, and then follow the instructions.

http://wbond.net/sublime_packages/package_control


yes, I did. thanks for the input
EivindFS
 
Posts: 4
Joined: Thu Nov 15, 2012 1:04 pm

Re: New user: Can I have some help getting linting working?

Postby EivindFS on Mon Dec 03, 2012 7:52 pm

agibsonsw wrote:Check the Console regularly as well, by pressing Ctrl-' (apostrophe), to see if there are any error messages.


No error messages. The linters just have absolutely no effect. That goes for SublimeLint as well as SublimeLinter. Nothing happens when I run any of them. Am I not supposed to get user feedback from these plugins - does the output go into a file somewhere?

Cheers
EivindFS
 
Posts: 4
Joined: Thu Nov 15, 2012 1:04 pm

Re: New user: Can I have some help getting linting working?

Postby bronson on Tue Dec 04, 2012 1:26 am

Maybe you have a non-ascii character in your environment. This bug bit me hard when I was trying to get linting working.

Try applying this fix: https://github.com/bronson/SublimeTextS ... 9a3c311569
bronson
 
Posts: 38
Joined: Wed Nov 28, 2012 8:52 pm

Re: New user: Can I have some help getting linting working?

Postby ckizer on Tue Dec 04, 2012 3:45 am

No actually he's right, I'm a longtime Sublime Text 2 users and if you just use package control to install sublime linters you will FIND THEY NEVER WORK. They often mention something about needed to install so me javascript engine via package control. I remember I spent an entire afternoon and just gave up.

Anyone can check exactly what they had to do? I find the people who have it working installed it so long ago, that when they delete and reinstall to prove it works, they don't realize there are a bunch of other packages they had to get going.
ckizer
 
Posts: 19
Joined: Mon Mar 12, 2012 10:26 pm

Re: New user: Can I have some help getting linting working?

Postby bronson on Tue Dec 04, 2012 5:15 pm

For me, nothing worked until I applied the non-ascii env bugfix.

Then SublimeLint worked great for Python and Ruby but not Javascript.

And SublimeLinter worked for JavaScript but its jshint settings were completely wrong for my codebase and changing them was a big pita (ignores ~/.jshintrc, requires a restart when making any config changes). Also, Python and Ruby had problems.

So, I'm currently using SublimeLint for Python and Ruby and trying to find time to tweak it to make jshint work.

Love the linting when it works but it's been a big time sink.
bronson
 
Posts: 38
Joined: Wed Nov 28, 2012 8:52 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 25 guests