-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ale#statusline#Count couldn't return a proper result #764
Comments
See |
The buffer number should be OK. I replaced with How should I calling the function after linting completing? |
The example in the documentation is wrong. I'll fix it so the autocmd can be used to echo things. The autocmd is run with |
I updated the documentation in the end to include autocmd User ALELint unsilent echom 'ALE run!' |
It works perfectly! Thanks! |
* upstream/master: (23 commits) dense-analysis#764 - Update the documentation to mention how to echo messages with the ALELint autocmd Simplify the tests for the ALELint autocmd command Add scalastyle linter (dense-analysis#766) dense-analysis#697 - Remove highlights more thoroughly dense-analysis#769 Ignore stderr output and output without JSON we can read for rubocop Make tsserver completion more reliable, but not quite ready for documentation yet Rubocop: handle empty 'files' array in output Fix dense-analysis#760 - Report problems with configuration files for rubocop Add rails_best_practices handler (resolves dense-analysis#655) (dense-analysis#751) Fix docs for FindProjectRoot function Fixup dense-analysis#756 dense-analysis#756 Escape the paths used for the --include parameter for gometalinter, which uses RE2 Fix documentation typo Fix dense-analysis#747 - Lint and fix files after they have been been written to disk, not during writing them Look for ini file to spot python project root (dense-analysis#755) Make gometalinter work again Prefer --fast for stack-build (dense-analysis#754) Fix comment typo Brakeman: Remove unused cache var from tests Kotlin and general Gradle support. (dense-analysis#745) ...
Hi, I try to integrate ale message into my own statusline function, and I found out
ale#statusline#Count
maybe the right method to callbelow is a test code I put into init.vim (neovim)
ale plugin works perfectly, but the test script have problems
It doesn't work (print 'OK' with error files):
nvim file_with_error.py
in terminal:e file_with_error.py
in neovimIt works:
:vs
in neovim:w
save buffer if I addBufWrite
inautocmd
The text was updated successfully, but these errors were encountered: