question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

lsp mode is very slow in big project

See original GitHub issue

Describe the bug I have a workspace includes 4 flutter project. Every restart time it takes long time to show the type info, and when I hold cmd and click the Widget class, it takes long time to jump, even if not work. This is also happen in my colleague computer. It works great in a small flutter project which includes few dart code.

Versions (please complete the following information):

  • VS Code version: 1.54.0-insider
  • Dart extension version: 3.20.1
  • Dart/Flutter SDK version: 1.22.4

One project code line count: image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
rrousselGitcommented, Apr 9, 2021

👋

I’m on an up-to-date master channel and still have a similar issue

1reaction
rrousselGitcommented, Apr 9, 2021

That issue is indeed very similar to what I’ve been facing for a couple of weeks, with the “problems” tab randomly refreshing for no apparent reason.
For reference, this has been especially flagrant when interacting with the flutterfire repository.

I’ve also seen cases where saving a file “blocks”: the white dot that means “unsaved changes” stays for a long time. And often, a snackbar appears with a message that says the formatting is taking too long.
Usually using the “reload window” command fixes it, but after some time, the issue reappears.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance - LSP Mode - LSP support for Emacs
Some servers (e. g. Palantir's Python Language Server) might be slow when performing auto-completion.
Read more >
Is lsp-mode too slow to use for anyone else? : r/emacs - Reddit
Problem solved: gc-cons-threshold needs to be increased from the default value. The lag was caused by frequent garbage collection.
Read more >
How to speed up lsp-mode - Chen's blog
I advice the lsp-on-change in order to notify the language server less frequently. js2-mode has its own javascript parser extract imenu items.
Read more >
emacs-lsp/lsp-mode - Gitter
Hmm yeah after resolving some of those perf fixes, it's still pretty slow sadly not ... The last time I tested a project...
Read more >
talks - lsp-bridge: a smooth-as-butter asynchronous LSP client
Feel free to try lsp-bridge on a huge repository with a slow ... We can use lsp-bridge's technology build faster dap-mode similar project....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found