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)
- `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
- Support for fuzzy completion HOT 1
- Setting ale_typescript_tsserver_config_path has no effect
- Rust Clippy command line not handled correctly
- InsertLeave Event Emulation make cursor blink fast on Windows Terminal
- Support for .astro files
- Biome Fixer Ignores Configurations from biome.json and Uses Default Settings HOT 1
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.