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

got an error in terminal with provider FAILED , Cannot read property 'flags' of undefined #3047

Closed
IOLOII opened this issue Jul 4, 2021 · 8 comments

Comments

@IOLOII
Copy link

IOLOII commented Jul 4, 2021

  • [ x ] I have searched through existing issues
  • [ x ] I have read through docs
  • [ x ] I have read FAQ
  • [ x ] I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: windows 10
  • Vetur version: 0.34.1
  • VS Code version: 1.57.0 system setup

Problem

[2021-07-04 21:49:51.482] [exthost] [error] [octref.vetur] provider FAILED
[2021-07-04 21:49:51.482] [exthost] [error] Error: Request textDocument/semanticTokens/full failed with message: Cannot read property 'flags' of undefined
    at c:\Users\yuey\.vscode\extensions\octref.vetur-0.34.1\dist\vueMain.js:1:64858
    at c:\Users\yuey\.vscode\extensions\octref.vetur-0.34.1\dist\vueMain.js:1:65153
    at Immediate.<anonymous> (c:\Users\yuey\.vscode\extensions\octref.vetur-0.34.1\dist\vueMain.js:1:65518)
    at processImmediate (internal/timers.js:461:21)

Reproducible Case

i dont know how to reappeared in this error , just install and use it long time,recently go some error with vscode is could't paste txt in vscode ,It takes a long time , then i open extensions terminal ,see error with "Vetur can't find package.json in /xxxx/xxxxxx." I solved the problem according to the solution, but I still have this problem. I can't solve it, so let's ask a Issue.

thanks

@yoyo930021
Copy link
Member

@IOLOII Which typescript version is in your project?

@yoyo930021
Copy link
Member

I try to fix in next version.
If you have the same problem in the next version, please comment to me.

@IOLOII
Copy link
Author

IOLOII commented Oct 8, 2021

i got this output in my current version vscode

Vetur initialized
[INFO ] Find node_modules paths in d:\program\workspace\Dado\trip_user_ui _cj_branch - 3198ms
[INFO ] Loaded bundled typescript@4.3.2.
[INFO ] Loaded bundled prettier.
[INFO ] Loaded bundled @starptech/prettyhtml.
[INFO ] Loaded bundled prettier-eslint.
[INFO ] Loaded bundled prettier-tslint.
[INFO ] Loaded bundled stylus-supremacy.
[INFO ] Loaded bundled @prettier/plugin-pug.
[Error - 下午3:32:38] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed with message: Cannot read property 'flags' of undefined
  Code: -32603 
[INFO ] update d:\program***\src\plugins\api\index.js in ts language service.

vscode version:
image

plugin version:
image

this problem has long time no see, i don't know how to reappear,so if it happend , i will tell you , thanks for your reply

@yoyo930021
Copy link
Member

i got this output in my current version vscode

Vetur initialized
[INFO ] Find node_modules paths in d:\program\workspace\Dado\trip_user_ui _cj_branch - 3198ms
[INFO ] Loaded bundled typescript@4.3.2.
[INFO ] Loaded bundled prettier.
[INFO ] Loaded bundled @starptech/prettyhtml.
[INFO ] Loaded bundled prettier-eslint.
[INFO ] Loaded bundled prettier-tslint.
[INFO ] Loaded bundled stylus-supremacy.
[INFO ] Loaded bundled @prettier/plugin-pug.
[Error - 下午3:32:38] Request textDocument/semanticTokens/full failed.
  Message: Request textDocument/semanticTokens/full failed with message: Cannot read property 'flags' of undefined
  Code: -32603 
[INFO ] update d:\program***\src\plugins\api\index.js in ts language service.

vscode version: image

plugin version: image

this problem has long time no see, i don't know how to reappear,so if it happend , i will tell you , thanks for your reply

Please test v0.35.0 version.

@IOLOII
Copy link
Author

IOLOII commented Nov 2, 2021

i got this output in my current version vscode

Vetur initialized

[INFO ] Find node_modules paths in d:\program\workspace\Dado\trip_user_ui _cj_branch - 3198ms

[INFO ] Loaded bundled typescript@4.3.2.

[INFO ] Loaded bundled prettier.

[INFO ] Loaded bundled @starptech/prettyhtml.

[INFO ] Loaded bundled prettier-eslint.

[INFO ] Loaded bundled prettier-tslint.

[INFO ] Loaded bundled stylus-supremacy.

[INFO ] Loaded bundled @prettier/plugin-pug.

[Error - 下午3:32:38] Request textDocument/semanticTokens/full failed.

Message: Request textDocument/semanticTokens/full failed with message: Cannot read property 'flags' of undefined

Code: -32603

[INFO ] update d:\program***\src\plugins\api\index.js in ts language service.

vscode version: image

plugin version: image

this problem has long time no see, i don't know how to reappear,so if it happend , i will tell you , thanks for your reply

Please test v0.35.0 version.

OK

@zsmithjc
Copy link

zsmithjc commented Dec 29, 2021

Hi, I'm still getting this error when starting up Vetur.
Vetur version 0.35.0
TS version 4.4
Is this something breaking or anything I need to be worrying about?
image

@BrightTan
Copy link

Hi, I'm still getting this error when starting up Vetur. Vetur version 0.35.0 TS version 4.4 Is this something breaking or anything I need to be worrying about? image
me too.

@IOLOII
Copy link
Author

IOLOII commented Apr 13, 2022

Hi, I'm still getting this error when starting up Vetur. Vetur version 0.35.0 TS version 4.4 Is this something breaking or anything I need to be worrying about? image
me too.

In my experience,it affect your your coding, so just type code , do not pay attention to this error report.
If you try to format code , but not formated, you can see this logs, may be some tags has no ending tag, jsut this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants