You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A slow-running job will block an RPC request, leading to a bad UX and lagging/slow editor. One cause for a slow-running job might be an unstable/slow network connection.
@radeksimko discovered, that we track the job ID of the module registry job (which makes a network request):
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
This is a followup from #1050
Background
A slow-running job will block an RPC request, leading to a bad UX and lagging/slow editor. One cause for a slow-running job might be an unstable/slow network connection.
@radeksimko discovered, that we track the job ID of the module registry job (which makes a network request):
terraform-ls/internal/indexer/document_change.go
Lines 109 to 122 in 055eaf9
and wait for it to complete in the
didOpen
anddidChange
handlers:terraform-ls/internal/langserver/handlers/did_change.go
Line 59 in 055eaf9
terraform-ls/internal/langserver/handlers/did_open.go
Line 71 in 055eaf9
This leads to blockage of the whole request until the network request is completed or timed out.
Terraform Configuration Files
Log Output
https://gist.github.com/dbanck/a097d77e27888bfd983412d3363c72e9
Expected Behavior
Requests should be processed fast and asynchronously
Actual Behavior
A slow job blocks the whole request and leads to suboptimal DX
Steps to Reproduce
Open the Terraform file in an editor and block/pause the language server network connections
Proposal
The text was updated successfully, but these errors were encountered: