-
Notifications
You must be signed in to change notification settings - Fork 657
🐛 Request textDocument/codeAction failed. #4136
Comments
Could you restore the "Environment" section from the issue template with the output of the |
It contains too much data if the server are on. Not possible. |
@dougg0k, you're free to remove the logs from the output - or keep the relevant ones, but we need that information to triage the issue. We need further info to be able to help fix the problem. |
Done |
I am not able to easily reproduce the issue, but this time, I got somewhere else. I use typescript in the project and there was an typescript error, as I was trying to fix the type error trying out some stuff and saving, the error appeared. Tried (possible type fix > saved > failed) around 2 to 3 times, before I got it right, and in between, the error appeared. That's pretty much it. |
This looks like an instance of the document content on the server side getting out of sync with the text buffer in the editor client, but unfortunately without the server logs it's difficult to understand the sequence of events that make this happen |
I am trialling Rome for my medium-large TypeScript project and unfortunately hit this frequently. I am (anecdotally) more likely to hit it when moving lines up and down, or when my PC is under load. Where can I find the server logs? |
First you start the rome server with |
They in the temporary folder of the OS, under a folder called |
server.log.2023-01-13-09.txt For future reference my logs were in C:\Users\<username>\AppData\Local\Temp\rome-logs |
👋 @rome/staff please triage this issue by adding one of the following labels: |
Any update on this? |
I seem to be getting this issue mostly after interacting a bit with the code in the code diff split editor, also in a TypeScript project. When this reproduces it also sometimes seems to produce broken code when formatting on save - some text gets deleted, or content reverts in some parts to old file content |
Thank you for the input. It seems we still have synchronisation issues: the document we have in the LSP and the document we have in the workspace get out of sync somehow. There are a few issues already around the same problem. We're looking into it. |
@TomerAtarScopio |
Also getting this error after using diff view in VScode, it spams notifications for each keystroke I type in files afterwards and is very annoying. |
Duplicate of #4338 |
Environment
What happened?
Just got this from VScode rome output.
Code of Conduct
The text was updated successfully, but these errors were encountered: