Giter VIP home page Giter VIP logo

Comments (6)

natebosch avatar natebosch commented on May 14, 2024

Interesting - it could be the matchadd matches. I'll play around with cutting those off at a certain number. Hopefully the location list could still show them all.

from vim-lsc.

natebosch avatar natebosch commented on May 14, 2024

Ah I think I have an idea of what's going on here.

Whenever we get diagnostics for any file we try to update displayed diagnostics for everything showing. I think what might be happening is we have a couple hundred diagnostics to show, and we try to re-create them dozens of times because the analysis server is sending errors for dozens of files.

I think what needs to happen is to get smarter about when to invalidate the diagnostics for a window.

from vim-lsc.

natebosch avatar natebosch commented on May 14, 2024

Ok, I think the number of matches isn't a problem here. Once things settle the performance seems to be OK. I can move around the file with 243 errors in my location list (should be 243 matchadds) without noticing any lag - do you see the same thing? Is it just an initial slowdown then performance is OK after it settles?

Avoiding clearing and recreating the matches does seem to help - but when we get errors for a bunch of files in a row it does still freeze up for a bit. I might be able to find other was to optimize this case.

from vim-lsc.

natebosch avatar natebosch commented on May 14, 2024

Update to the latest and see if the performance feels better. If there is still lag, especially if the lag continues after errors have had a chance to settle, please reopen the issue.

from vim-lsc.

Piping avatar Piping commented on May 14, 2024

when the stderr keeps pop out, even thtough i set suppress stderr to true, the editor still freeze.
I have to ctrl-c to stop the process.

from vim-lsc.

natebosch avatar natebosch commented on May 14, 2024

@Piping - sounds like something different than what was reported - can you file a new issue with reproduction steps? I wouldn't expect stderr from the language server to cause vim to freeze.

from vim-lsc.

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.