Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork773
Modify loclist to separate errors from warnings#798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
- Separate errors from warnings (errors are shown above warnings)- [g:pymode_lint_cwindow] open loclist only if there is at least one error (not warnings)- [g:pymode_lint_cwindow] jump to first errorChanges to be committed:modified: autoload/pymode/lint.vimmodified: autoload/pymode/tools/loclist.vimmodified: autoload/pymode/tools/signs.vimmodified: pymode/rope.py
3f4fc36
to60c638d
CompareI thought pymode was already like that in the past (show errors first then warnings). I think we should open the loclist if it is not empty (that is, even if its only warnings they should be opened). The rationale behind this is that users can already pinpoint-ignore what they don't regard as warnings. So I bet that one could already achieve this feat with:
(from the docs) |
I've cherry-picked this PR commit and added another one to ensure that loclist is shown also if there are only warnings. |
Changes to be committed:
modified: autoload/pymode/lint.vim
modified: autoload/pymode/tools/loclist.vim
modified: autoload/pymode/tools/signs.vim
modified: pymode/rope.py