Request textDocument/formatting failed error when trying to use the AbstractFormatter #2031
Replies: 1 comment 2 replies
-
Hey @RuanVanRooyenDSA 👋 Can you perhaps narrow down where the error is thrown? The I believe every one of these errors should be shown (with its stack trace) in the output view of the language server. Does this help you track down the exact method/line? Note that you should disable minification for the language server build for this to work. Alternatively, you could also try debugging through the formatter.
This is rather weird though. I can't really think of a reason why the formatting during live editing works flawlessly, but crashes once saved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,

I am attempting to create a formatter for my language using the AbstractFormatter class. When I format the code (without saving the document) it works perfectly, but the moment I save my document and then attempt to format it I get the following popup in my VSCode extension:
Do you perhaps have any idea why this would be?
Beta Was this translation helpful? Give feedback.
All reactions