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.

Error : Request textDocument/codeLens failed with message: Cannot read property 'length' of undefined

See original GitHub issue

Hello I got a tons of error on my device upon checking the output terminal. I’m not sure how to fix this entirely.

This is on the PC

[Error - 5:38:49 PM] Request textDocument/semanticTokens/range failed.
  Message: Request textDocument/semanticTokens/range failed with message: Cannot read property 'length' of undefined
  Code: -32603 

Laptop

image

It looks like the error are somewhat related to each other.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
oooplzcommented, Sep 10, 2021

+1, it seems to be caused by the v0.27.17 version, I tried to roll back the version to v0.27.16 and it works normally

How do I perform rollback on an extension?

Visiting VSCode marketplace VSCode marketplace, and then clicking history version, and then downloading v0.27.16, finally to find downloaded file, Dragging it into window of VScode extension.

0reactions
oooplzcommented, Oct 21, 2021

@johnsoncodehk Sorry for i can not replay the error. Because i had been upgrading project dependences – vite vue in few hours ago.

I guessed that the error was caused by dependence of vite, but i can not confirm.

Look like the error has been fixed in "vue": "^3.2.20" "vite": "^2.6.10". sfc.vuejs.org

Thanks for Volar and your contributes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[json] Request textDocument/* failed with message: Cannot ...
Message : Request textDocument/hover failed with message: Cannot read property 'version' of undefined Code: -32603 [Error ...
Read more >
VS Code - Request textDocument/definition failed
I want to code and debug my own code, not manage my ecosystem of tools and debug their problems. At least they should...
Read more >
Language Server Protocol Specification - 3.15
A request message to describe a request between the client and the server. ... boolean | object | null; /** * The error...
Read more >
code extensions not working properly : r/vscode - Reddit
Message: Request textDocument/codeAction failed with message: Cannot read property 'length' of undefined. Code: -32603 [Error - 22:46:13] ...
Read more >
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
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