Request textDocument/hover failed error from LWC Language Server in VSCode
See original GitHub issueSummary
Persistent errors in VSCode coming from the LWC Language Server
Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'forEach' of undefined
Code: -32603
this is occurring for myself on two different computers in two different projects.
I am also gettting
Request textDocument/definition failed.
Message: Request textDocument/definition failed with message: Cannot read property 'find' of undefined
Code: -32603
in another project from the LWC Language Server
Steps To Reproduce:
- Open a LWC component in VSCode (does not need forEach method)
- Error pops up in Output section of VSCode: “Request textDocument/hover failed”
- Error is persistent, keeps occurring as i’m writing code
Expected result
No errors
Actual result
Error messages are continually popping up
Additional information
Salesforce Extension Version in VS Code: v54.4.1
SFDX CLI Version: sfdx-cli/7.139.0 darwin-x64 node-v16.14.0
OS and version: macOS Monteray
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >vscode language server verbose log shows Sending request ...
vscode language server verbose log shows Sending request 'textDocument/hover - (9)' but server does not get the message. Save this question. ...
Read more >@salesforce/lwc-language-server - npm
This project is an implementation of the Language Server Protocol for LWC projects. Features. Component template validation; Basic directive ...
Read more >SFDX in VS Code no longer working as expected
indexStaticResources (c:\Users\james\.vscode\extensions\salesforce.salesforcedx-vscode-lightning-47.9.0\node_modules\lwc-language-server\lib ...
Read more >User Manual - rust-analyzer
Toolchain; VS Code; rust-analyzer Language Server Binary ... If you get an error saying No such file or directory: 'rust-analyzer' , see the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see the issue on my vscode, and its very annoying.
The fix for this has been merged in, and should be available in the following release of the extensions (likely next Wednesday).