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

Request textDocument/documentSymbol failed with message: Cannot set property createLanguageServiceSourceFile of #<Object> which has only a getter #3710

Open
4 tasks done
alexcroox opened this issue Jul 12, 2023 · 1 comment

Comments

@alexcroox
Copy link

alexcroox commented Jul 12, 2023

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

Info

  • Platform: macOS
  • Vetur version: 0.37.3
  • VS Code version: Version: 1.79.2 (Universal)
  • TypeScript version:
  • Vetur output:

<!-- Run VSCode command `Vetur: Show output panel` -->

- Vetur doctor output
Doctor output

Vetur initialized
[INFO ] Find node_modules paths in /Users/alex/Projects/exchange - 295ms
[INFO ] Loaded typescript@5.1.3 from /Users/alex/Projects/exchange/node_modules/typescript.
[INFO ] Loaded prettier@2.8.7 from /Users/alex/Projects/exchange/node_modules/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 - 08:53:12] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot set property createLanguageServiceSourceFile of #<Object> which has only a getter
  Code: -32603 

Problem

Not sure if it's a recent version of VSCode but saving .vue (2) files hangs forever trying to format them and I see the above error in the output of Vue Language Server panel. No amount of restarting has resolved it.

It also seems to be forever trying to load the project

image

@farfromrefug
Copy link

@alexcroox for me it was because i was using typescript 5.x which does not seem to be compatible with vetur

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

No branches or pull requests

2 participants