Skip to content

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

Open
@alexcroox

Description

  • 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 [email protected] from /Users/alex/Projects/exchange/node_modules/typescript.
[INFO ] Loaded [email protected] 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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions