Request textDocument/formatting failed with message: Overlapping edit
See original GitHub issueAll I did was run npm create vite@latest
on Windows, I chose vue-ts
and there was no problem initially. But now every time I hit the save button I get this error:
[Error - 6:36:26 PM] Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Overlapping edit
Code: -32603
And my file isn’t getting formatted.
The same error occurs when I activate the Format document
command.
I’ve disable all other VS Code extensions, and the error still occurs. Here is my volar info:
Name: Vue Language Features (Volar)
Id: johnsoncodehk.volar
Description: Language support for Vue 3
Version: 0.34.3
Publisher: Johnson Chu
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar
Take over mode didn’t fix this. Restarting my machine didn’t either.
Not sure if it helps, but this is the trace in the VS code dev tools when I hit the Format document
command:
Request textDocument/formatting failed.
onDidChangeNotification @ workbench.desktop.main.js:796
(anonymous) @ workbench.desktop.main.js:796
invoke @ workbench.desktop.main.js:67
fire @ workbench.desktop.main.js:67
addNotification @ workbench.desktop.main.js:798
notify @ workbench.desktop.main.js:1961
(anonymous) @ workbench.desktop.main.js:1698
_showMessage @ workbench.desktop.main.js:1698
$showMessage @ workbench.desktop.main.js:1698
_doInvokeHandler @ workbench.desktop.main.js:1705
_invokeHandler @ workbench.desktop.main.js:1705
_receiveRequest @ workbench.desktop.main.js:1705
_receiveOneMessage @ workbench.desktop.main.js:1705
(anonymous) @ workbench.desktop.main.js:1705
invoke @ workbench.desktop.main.js:67
fire @ workbench.desktop.main.js:67
fire @ workbench.desktop.main.js:83
_receiveMessage @ workbench.desktop.main.js:83
(anonymous) @ workbench.desktop.main.js:83
invoke @ workbench.desktop.main.js:67
fire @ workbench.desktop.main.js:67
acceptChunk @ workbench.desktop.main.js:83
(anonymous) @ workbench.desktop.main.js:83
O @ workbench.desktop.main.js:3102
emit @ node:events:390
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:199
Issue Analytics
- State:
- Created a year ago
- Comments:16 (2 by maintainers)
Top Results From Across the Web
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 >VS Code rust-analyzer: Request textDocument/inlayHint failed
I cloned RustCrypto's AEAD repo and opened it in VS Code, which I use as my main editor for writing Rust code. However,...
Read more >Language Server Protocol Specification - 3.17
A request message to describe a request between the client and the server. ... so that a server can compute textual edits to...
Read more >vscode-languageserver-protocol@3.17.2 - jsDocs.io
The parameters passed via a apply workspace edit request. ... Depending on the client's failure handling strategy failedChange might contain ...
Read more >VUE小白笔记-初入者- jiftle - 博客园
Message: Request textDocument/formatting failed with message: Overlapping edit Code: -32603. 原因 .vue文件不完整,3部分不完整。 style部分 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
got the same issue
same issue observed, running Vue3 + Quasar2 project via WSL2 - all vscode plugins installed “remote” on WSL:UBUNTU. (beginner in frontend, wild guess is something might be related to JS/TS project’s linter/formatter config vs vsode config?)