Giter Site home page Giter Site logo

Comments (8)

w0rp avatar w0rp commented on July 22, 2024

Hmm, interesting. This will take a bit of debugging. I'll see if I can repeat the issue and fix it.

from ale.

w0rp avatar w0rp commented on July 22, 2024

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.

KabbAmine avatar KabbAmine commented on July 22, 2024

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.

w0rp avatar w0rp commented on July 22, 2024

@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.

KabbAmine avatar KabbAmine commented on July 22, 2024

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.

KabbAmine avatar KabbAmine commented on July 22, 2024

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.

neersighted avatar neersighted commented on July 22, 2024

@w0rp I think it's safe to close this one.

from ale.

w0rp avatar w0rp commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.