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
Server crashes with "Request textDocument/formatting failed." #2077
Comments
|
same. |
same |
3 similar comments
same |
same |
same |
This happened to me when I added a |
Can you reproduce this problem in https://github.com/johnsoncodehk/volar-starter? |
Please provide minimal reproduction code so that I can debug the problem. |
I found this error and try to reproduce it. clone the project: https://github.com/whidy/issues-with-vue3/tree/volar-formatting-failed-demo maybe video would help: https://www.youtube.com/watch?v=BB92-GNgmmQ plugins in the video all lastest update. |
Same here. It is driving me nuts 😭 @johnsoncodehk Not sure what causes the problem. So I can't tell you how to reproduce it. Is there anything out of the blue that you would look at and that I can provide? 🤞 |
I had the same issue in some files. After I have removed some commented code it worked. It looks like something is confusing extension when there are some empty lines with tabs between comments. I can't actually tell what it is, but when I removed this comment, or just removed empty lines between commented lines, or just tabs on this empty lines, it worked.
I hope this will help. |
Environment
WSL Ubuntu
Volar v1.0.9
VS Code v1.72.2
Whenever a vue file is saved, I am getting the following error.
Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Overlapping edit
Code: -32603
It does work when the vue language server is restarted, but only one edit goes through successfully after restart each time.
The text was updated successfully, but these errors were encountered: