redhat-developer / redhat-developer/vscode-java

'textDocument/hover' has been cancelled

Open
#1,976 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug hover
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

Error Log

ERR The request (id: 428, method: 'textDocument/hover') has been cancelled: Error: The request (id: 428, method: 'textDocument/hover') has been cancelled
	at /Users/cooluser/.vscode/extensions/redhat.java-0.79.2/dist/extension.js:2:851725
	at /Users/cooluser/.vscode/extensions/redhat.java-0.79.2/dist/extension.js:2:852019
	at Immediate.<anonymous> (/Users/cooluser/.vscode/extensions/redhat.java-0.79.2/dist/extension.js:2:852384)
	at processImmediate (internal/timers.js:461:21)
log.ts:296   ERR The request (id: 429, method: 'textDocument/hover') has been cancelled: Error: The request (id: 429, method: 'textDocument/hover') has been cancelled
	at /Users/cooluser/.vscode/extensions/redhat.java-0.79.2/dist/extension.js:2:851725
	at /Users/cooluser/.vscode/extensions/redhat.java-0.79.2/dist/extension.js:2:852019
	at Immediate.<anonymous> (/Users/cooluser/.vscode/extensions/redhat.java-0.79.2/dist/extension.js:2:852384)
	at processImmediate (internal/timers.js:461:21)

Environment
Operating System: macOS
JDK version: Adapt JDK-11.0.9
Visual Studio Code version: v1.56.2
Java Extension Pack: v0.12.1
Java extension version: v0.79.2
Maven: v3.6.3
Steps To Reproduce
Import any Java project, CPU skyrockets and the log is filled with these messages.

a68b3cba Importing Maven project(s) [Done]
e251d48a Repository registry initialization [Done]
04da89a9 Validate documents [Done]
42d31142 Publish Diagnostics [Done]
01a1751c Building [Done]
Current Result
Expected Result

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by importing a Java project in Visual Studio Code and review the cancellation entries reported from dist/extension.js. Compare CPU usage and the error log during import; done means the project imports without the repeated textDocument/hover cancellation messages and CPU spike.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.