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

textDocument/hover error if JSDoc param has {@link} #289

Closed
sheremet-va opened this issue Jul 3, 2021 · 6 comments
Closed

textDocument/hover error if JSDoc param has {@link} #289

sheremet-va opened this issue Jul 3, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@sheremet-va
Copy link

I noticed an error on hovering onBeforeRouteEnter with vue-router - it gives me this error:

Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: Cannot read property '0' of undefined
  Code: -32603 

The error is thrown only inside vue files, it works inside typescript files.

I noticed that if I remove the whole @param section, then the error goes away.

@johnsoncodehk
Copy link
Member

螢幕截圖 2021-07-04 上午2 01 09

I can't repro, please provide repro code or repo.

@sheremet-va
Copy link
Author

You are showing object property. I am talking about setup functions like onBeforeRouteLeave, that need to be imported like import { onBeforeRouteLeave } from "vue-router"

@sheremet-va
Copy link
Author

Also i import them inside script setup if that might help

@johnsoncodehk johnsoncodehk added bug Something isn't working and removed need info labels Jul 3, 2021
@bsssshhhhhhh
Copy link

I think I have a related error:

[Error - 8:29:49 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: tag.text.map is not a function
  Code: -32603 

from volar/packages/vscode-typescript-languageservice/src/services/hover.ts - this issue is mentioned next to it

@johnsoncodehk
Copy link
Member

I think I have a related error:

[Error - 8:29:49 AM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: tag.text.map is not a function
  Code: -32603 

from volar/packages/vscode-typescript-languageservice/src/services/hover.ts - this issue is mentioned next to it

Please provide repro code or repo.

@mekumiao
Copy link

image
from https://github.com/qiqigou/vue3-sample/blob/master/src/components/HelloWorld.vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants