Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overly long loop turn #3959

Closed
segeljakt opened this issue Apr 12, 2020 · 6 comments
Closed

Overly long loop turn #3959

segeljakt opened this issue Apr 12, 2020 · 6 comments

Comments

@segeljakt
Copy link

Hi, I'm trying to use coc.nvim alongside rust-analyzer for my Rust editing and I'm getting these messages:

## Output channel: Rust Analyzer Language Server Trace
[Error  - 10:35:11 PM] Request textDocument/codeLens failed.
  Message: content modified
  Code: -32801
[ERROR rust_analyzer::main_loop] overly long loop turn: 104.713524ms
[ERROR rust_analyzer::main_loop] overly long loop turn: 187.105066ms
[ERROR rust_analyzer::main_loop] overly long loop turn: 1.004386614s
[Error  - 10:35:14 PM] Request textDocument/codeLens failed.
  Message: content modified
  Code: -32801
[Error  - 10:35:24 PM] Request textDocument/codeLens failed.
  Message: content modified
  Code: -32801

It seems something is not right. What do these messages mean?

@matklad
Copy link
Member

matklad commented Jun 8, 2020

That's just some internal profiling, which should be OK to ignore. Long term, we should debug each of those issues (we def should never block the main loop for 1 second), but this is mostly harmless today, and fixing this is not top priority.

@matklad matklad closed this as completed Jun 8, 2020
@timbedard
Copy link

Can we disable the "overly long loop turn" messages? Or downgrade them to a warning if they're okay to ignore?

@bjorn3
Copy link
Member

bjorn3 commented Dec 12, 2021

@taikulawo
Copy link

How I can disable this noisy notice? everytime key down, it shows
image

@bjorn3
Copy link
Member

bjorn3 commented Mar 4, 2022

That only happens for from source builds I believe to nag rust-analyzer developers. I'm not sure how it is decided to not do this for release builds.

@taikulawo
Copy link

That only happens for from source builds I believe to nag rust-analyzer developers. I'm not sure how it is decided to not do this for release builds.

I'm use rustup's RA, to solve this #11558 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants