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.

Timeout while waiting for response. Method: csharp/metadata

See original GitHub issue

First of all, thanks so much for this amazing hack! I’ve been using it for a few weeks now.

This timeout happens when using lsp-ui-peek-find-definitions to go into a metadata file but it doesn’t happen on regular lsp-find-definition. Other than the error itself, Emacs also hangs. It seems I can mash C-g to get out of a little earlier.

I’m more than happy to blame something in my config, but I haven’t been able to find a workaround so far. Do you have any clues?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hungyiloocommented, Oct 20, 2021

I was on 0.1.3 and I could reproduce it just now. After updating to 0.1.4 it has fixed it completely in my test setup. It also works smoothly in my work projects too. Magic! Thanks so much!

To answer your questions anyway:

  1. *lsp-log* had no errors or stack traces. It looked pretty innocuous to me
Command "csharp-ls" is present on the path.
Command "csharp-ls" is present on the path.
Command "csharp-ls" is present on the path.
Found the following clients for /home/hy/temp/scratch/Program.cs: (server-id csharp-ls, priority -2)
The following clients were selected based on priority: (server-id csharp-ls, priority -2)
Command "csharp-ls" is present on the path.
Command "csharp-ls" is present on the path.
Command "csharp-ls" is present on the path.
Found the following clients for /home/hy/temp/scratch/.cache/lsp-csharp/metadata/projects/scratch/assemblies/System.Console/System.Console.cs: (server-id csharp-ls, priority -2)
The following clients were selected based on priority: (server-id csharp-ls, priority -2)
  1. *Messages* only showed the error in the title of this issue: Timeout while waiting for response. Method: csharp/metadata
  2. No real CPU usage spike from either Emacs or csharp-ls during the hang.

Really appreciate the update and trying so hard to reproduce it.

1reaction
razzmatazzcommented, Oct 20, 2021

I have also released a newer version with updated roslyn libs, so maybe that helps but most probably not…

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Timeout while waiting for response in request- ...
I am trying to setup request-response pattern with MassTransit and RabbitMq. Request is delivered to the consumer, RespondAsync succeeds but ...
Read more >
Timeout while waiting for response Method: textDocument ...
My setup is: macos m1 emacs/doom (28.2) haskell-language-server version: 1.9.1.0 (GHC: 9.2.5) I have the following logs but can't quite work ...
Read more >
Your One-Stop Solution To Learn C# Wait From Scratch
A timeout is a negative number other than -1 milliseconds, representing an infinite timeout that exceeds MaxValue. AggregateException. The ...
Read more >
How to resolve timeouts when executing ... - OrangeGecko
When you try to execute RetrieveAllEntitiesRequest to retrieve metadata for all ... timed out while waiting for a reply after 00:01:59.7655710.
Read more >
Timeout expired messages when connecting to SQL Server
A timeout error means that a certain operation takes longer than needed. The client application stops the operation (instead of waiting ...
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