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

semanticTokens/full timeout too fast, need an option to increase latency to be beyond 5 seconds #723

Open
tribbloid opened this issue Dec 29, 2024 · 0 comments
Labels
bug Something isn't working semantic tokens

Comments

@tribbloid
Copy link

(tested on Scala 2.13 + metaLS)

this is part of the log on my project:

[Trace - 20:21:19] Sending request 'textDocument/semanticTokens/full - (46)'.
Params: {
  "textDocument": {
    "uri": "file:///home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala"
  }
}


[Trace - 20:21:24] Sending notification '$/cancelRequest'
Params: {
  "id": "46"
}


[Trace - 20:21:24] Received response 'textDocument/semanticTokens/full - (46)' in 4935ms.
No response returned.
Error: {
  "code": -32800,
  "message": "The request (id: 46, method: \u0027textDocument/semanticTokens/full\u0027) has been cancelled"
}


[Trace - 20:21:24] Sending request 'textDocument/semanticTokens/full - (47)'.
Params: {
  "textDocument": {
    "uri": "file:///home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala"
  }
}


[Trace - 20:21:57] Sending notification '$/cancelRequest'
Params: {
  "id": "47"
}


[Trace - 20:21:57] Received response 'textDocument/semanticTokens/full - (47)' in 32945ms.
No response returned.
Error: {
  "code": -32800,
  "message": "The request (id: 47, method: \u0027textDocument/semanticTokens/full\u0027) has been cancelled"
}


[Trace - 20:21:57] Sending request 'textDocument/semanticTokens/full - (48)'.
Params: {
  "textDocument": {
    "uri": "file:///home/peng/git/spookystuff/prover-commons/module/core/src/main/scala/ai/acyclic/prover/commons/graph/Engine.scala"
  }
}

after 5 seconds the request will be canceled without a reason and replaced with a new request.

Some languages compiles slower than others, we probably need a new workflow to ensure that ongoing request won't timeout prematurely

@angelozerr angelozerr added bug Something isn't working semantic tokens labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working semantic tokens
Projects
None yet
Development

No branches or pull requests

2 participants