Comments (9)
Test again with the latest code. I took a pretty fair guess as to what the issue is. I believe that now the cleanup code is being run correctly, it deletes the global variables used to track loclists for buffers and such with jobs still running. When jobs complete for buffers which no longer exist, it hits that line and fails.
That's my bet, anyway.
from ale.
If that fixes the issue, we could consider cancelling jobs for a particular buffer when the buffer is removed.
from ale.
I'm still seeing the same error. It does seem to happen when I quit during a running ale job, as it only triggers when I quit rapidly after making an edit.
from ale.
I just made it check for a key in the map now instead. We should look at this more, but that will probably do for a hotfix.
from ale.
Looks to have fixed it for now. I'll leave this open until we determine the root cause.
from ale.
My money's on the cleanup code not cancelling jobs. Off the top of my head, the only way to fix that would be to track which jobs are being run for which buffers in a map, and then clear them again.
That might be a decent enhancement over how the plugin currently sets linter.job
anyway.
from ale.
After some testing, looks like you are right, it's a pretty simple race condition. I think it is a good idea to track jobs separately in a global, and clean them in our normal cleanup code.
from ale.
I'm still not comfortable enough in engine.vim
to implement this... Mind taking a crack at it, @w0rp?
from ale.
I'll give it a go tomorrow.
from ale.
Related Issues (20)
- cspell incorrectly configured for latex input files HOT 7
- There is no fixer named `cpplint`. HOT 1
- Asymptote support
- Disable latex check in asy environments
- Omnicompletion triggers linting
- Use hamllint as a fixer
- Fixers + nvim + split windows causes jumps
- Multiple node processes with large RAM usage on opening file HOT 2
- Statusline info cache doesn't refresh correctly with integrating with third-party sources like coc.nvim HOT 1
- Support hurlfmt as fixer and linter
- Add support for include-what-you-use
- Add support for basedpyright
- rust ALEGoToDefinition does not trigger any action HOT 1
- ALE linting .tsx as .ts files when using Biome
- [Biome] Linter not usable
- 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 1
- error loading shared lib: libicui18n.so.73 HOT 1
- json linting with jq doesn't report errors correctly
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.