Comments (7)
Check #97, I have a API pending.
from ale.
Said API is ale#statusline#Count(buffer)
, which returns a pair [E, W]
if there is data or 0
if there is no data.
That is, a 0
as in the plugin has not run and cannot determine if there are any errors, not 0 errors.
from ale.
@neersighted great, I will be watching that PR.
It would be great if there was another function that returns the type and message of the current warning/error if the cursor is on the same line (for replacing the echo right now).
from ale.
Sure, just factor out what you need from EchoCursorWarning
into its own function, and make EchoCursorWarning
call that. 😀
from ale.
@neersighted so i understand that as per #97 #Count()
will always return a tuple with [0, 0]
in the default state? (i don't need the information about startup, just to make sure I use it correctly)
from ale.
Yep, as of right now you get [0, 0]
when before linters have been run, and again [0, 0]
if linters have been run and no problems have been found.
from ale.
I think with the merge of #97 and an example of how to use it included in airline this is safe to close.
from ale.
Related Issues (20)
- Should/could ALE pass --no-fix argument to ruff when linting (to override project configuration)? HOT 5
- ALEHover text not appearing in floating preview HOT 1
- Cannot use ALE in MacVim when the file is opened via the right-click context menu or the File > Open dialog in MacVim HOT 2
- error loading shared lib: libicui18n.so.73 HOT 1
- json linting with jq doesn't report errors correctly
- On Windows 11, shell=pwsh/powershell continues breaking ALE lint HOT 1
- `write-good` plugin need make separate files that only have text
- cspell option “-c config.yaml” not work
- `sqlfluff` does not work in Neovim, throws an error when trying to lint an opened file HOT 1
- Signs cannot be customized HOT 5
- ALEFix with clangtidy not updating the buffer HOT 1
- clang++ command not getting correct include paths
- error highlights entire function
- Add support for pymarkdown
- Strange syntax highlighting behavior with ALE on Neovim HOT 1
- ALE ruff format shows error: "Unidentified byte: Loading .env environment variables..."
- ALE support linter group HOT 3
- Incorrect eslint project root when using nested node_modules HOT 2
- Incorrect spacing on gcc asm command.
- Pyright linter doesn't detect newly added modules until restarting the language server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ale.