vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Renaming a file throws this error: no such file or directory, lstat '<path>' at Object.lstatSync (node:fs:1642:25)

Open safisa opened this issue 2 weeks ago • 1 comments

Hi,

When I rename a file in my workspace (any file), I see this error in the backend log:

Error: ENOENT: no such file or directory, lstat '<folder>/README.md'
    at Object.lstatSync (node:fs:1642:25)

It seems that the rename handler uses lstatSync on the new old file after it has been renamed (no longer exists).

Thanks

safisa avatar Nov 26 '25 11:11 safisa