Giter Club home page Giter Club logo

Comments (12)

rchl avatar rchl commented on June 25, 2024

From your screencast it doesn't look like completions are not slowed down but rather completely suppressed.

Do you have any other servers running in php files? What is shown in the bottom-left corner?

Also check Sublime Text console for any errors.

from lsp.

aubreypwd avatar aubreypwd commented on June 25, 2024

I find:

Producing empty completions due to document version mismatch. Completions requested for document version 32 but document version was 27.

...to be interesting. I don't know what it means, but I do get empty completions.

from lsp.

aubreypwd avatar aubreypwd commented on June 25, 2024

CleanShot 2024-03-06 at 13 13 45@2x

After about 15 seconds or more I do eventually get a list of completions.

from lsp.

rchl avatar rchl commented on June 25, 2024

If LSP-copilot for some reason takes a long time to generate completions then it's an expected behavior. We can't show completions until server responds.

But you said that it happens with LSP-copilot disabled and I'm interested in that case rather.

If it doesn't happen with LSP-copilot disabled then there is nothing to fix here. Just make sure that LSP-copilot works faster. Since it relies on cloud, it's probably some issue related to your network.

Eventually you can try filing an issue against LSP-copilot.

from lsp.

aubreypwd avatar aubreypwd commented on June 25, 2024

It does happen with LSP-coplot disabled:

CleanShot.2024-03-06.at.18.21.41.mp4

Here I enable both LSP and LSP-copilot, then I disable LSP-copilot, then I disable LSP and it finally starts working again.

from lsp.

rchl avatar rchl commented on June 25, 2024

Try disabling copilot and then closing and reopening the file.

There might be a special case happening in disabling a package that we don't handle correctly.

from lsp.

aubreypwd avatar aubreypwd commented on June 25, 2024

I tried that... didn't seem to make a change. But I did find that some files were slow, while other files were faster:

📹 https://a.supportally.com/v/94QnzY

Maybe a file size or complexity issue?

Again all I have enabled is:

  • LSP
  • LSP-copilot

I also tested with LSP-copilot disabled (after a ST restart) and I still had the weird per-file speed issues.

from lsp.

rchl avatar rchl commented on June 25, 2024

When it's slow, what is shown in the bottom left corner of the ST window?

from lsp.

aubreypwd avatar aubreypwd commented on June 25, 2024

I assume you mean the status bar? Nothing of note:

CleanShot 2024-03-07 at 12 59 41@2x

CleanShot 2024-03-07 at 12 59 10

from lsp.

rchl avatar rchl commented on June 25, 2024

Pretty sure it won't happen in Safe Mode (you can install Package Control and LSP in it for testing) in which case it would likely be due to some other plugin. Maybe some weird interaction between LSP and another plugin...

You can try Safe Mode and if it doesn't reproduce there then in your original installation try disabling various other plugins.

from lsp.

aubreypwd avatar aubreypwd commented on June 25, 2024

I have decided to give up on Sublime Text after 10+ years lol! I am not going to re-test this again in safe mode, sorry. Feel free to close the issue if you still think this isn't an issue. Thanks for building this though!

from lsp.

rchl avatar rchl commented on June 25, 2024

We can't do much about an issue when there is no reproduction and you are the first in years to report it.

from lsp.

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.