Ale: Request: add option to open loclist when there are errors

Created on 21 Oct 2016  路  6Comments  路  Source: dense-analysis/ale

Hi, thanks for ale, I'm finding it to be a great way to run linting without any UI lag. One option that I miss from neomake is g:neomake_open_list, which will automatically open the location list if there are errors (the option to preserve focus in the buffer you're editing is also nice). Any chance of something like this being added to ale?

The neomake description of this option is here:
https://github.com/neomake/neomake/blob/master/doc/neomake.txt#L242

Most helpful comment

Yeah, I'm totally in favour of that. I'd leave the option off by default, but if someone can make a decent pull request for it, I'll add that. I suppose the challenge is to not make it too annoying, as ALE will probably show errors more often.

I also opened an issue a while ago for populating the quick fix list. I think that should be done at some point.

All 6 comments

Yeah, I'm totally in favour of that. I'd leave the option off by default, but if someone can make a decent pull request for it, I'll add that. I suppose the challenge is to not make it too annoying, as ALE will probably show errors more often.

I also opened an issue a while ago for populating the quick fix list. I think that should be done at some point.

It would be nice if it was an option to show on save if there are errors, but not during textchanged events.

@amadeus I only just noticed this comment. That option exists.

let g:ale_lint_on_save = 1
let g:ale_lint_on_text_changed = 0

@w0rp my interpretation of @amadeus's comment was to automatically show the loclist if there are errors, once you've stopped typing

This has been implemented now, and it is off by default. See :help g:ale_open_list.

Awesome, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catbaron0 picture catbaron0  路  3Comments

lervag picture lervag  路  3Comments

glepnir picture glepnir  路  3Comments

kronos29296 picture kronos29296  路  4Comments

trevordmiller picture trevordmiller  路  3Comments