Comments (8)
Hmm, interesting. This will take a bit of debugging. I'll see if I can repeat the issue and fix it.
from ale.
Try again with the latest code. I added a very brief delay when the buffer is opened for checking the file, and that seems to fix the issue for me. I may need to adjust the delay in future.
from ale.
No, same thing.
IMO it doesn't look like a delay issue but a problem with either BufEnter
autocmd or ALELint()
function itself.
I'll investigate more.
from ale.
@KabbAmine Looks like GitHub automatically closed the issue based on my commit. I forgot that it does that. Check this out again. I realised that listening for BufEnter
can trigger linting when a buffer is created, but before the file has been read into the buffer. So for some files, it was triggering the linting before the file was ready to be read. I added BufRead
too to fix that. It might be worth switching to only BufRead
. That may cause other issues. Have a look.
from ale.
Already tried with BufRead
and BufReadPost
in my local version (And your last commit) and still the same issue.
Calling ALELint
works normally.
I'll try to debug that in the end of the day, and hopefully come with a fix or a workaround.
P.S: Don't commit to the master branch when we have such issues, create a dev-fixX
branch and let work on it till the issue is solved.
from ale.
Ok, after some hours of head banging yesterday (literally 🤘) I've discovered that the issue is specific to the tidy
installed on my system, so the bug is not reproducible somewhere else.
Using a bigger delay on BufEnter
can help sometimes but still, the issue occurs randomly.
Let's wait a few days and if no one complains about tidy, we can consider the problem solved and close the issue.
from ale.
@w0rp I think it's safe to close this one.
from ale.
I'll close this issue. If the issue comes up again, we can increase the delay for running the linters on enter, as that seems to help.
from ale.
Related Issues (20)
- There is no fixer named `cpplint`. HOT 1
- Asymptote support
- Disable latex check in asy environments
- Omnicompletion triggers linting HOT 1
- 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 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
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.