VS Code frequently stuck on "Saving 'somefile': Writing into file...

William Morris 0 Reputation points
2025-01-25T18:40:52.7066667+00:00

Code will frequently get stuck on "Saving 'somefile.ext': Writing into file...". It happens often enough that it affecting my productivity.

Process:

  • open file from FTP using PCManFM-QT
  • make changes
  • Save the file

Most of the time the save is almost instant. Sometimes, it hangs as described. Code sometimes will come back eventually, sometimes as much as an hour later and I can save the file again, and it works, or may not be back after several hours and require a system reboot..

A check of the logs shows:

2025-01-25 12:21:57.295 [error] Error: ESPIPE: invalid seek, copyfile '/run/user/1000/gvfs/ftp:host=some-host,user=some-user/inetpub-dev/webcontent/Admin/securityFx/loginform.css' -> '/home/some-user/.config/Code/User/History/5c371153/GGjc.css': Unknown (FileSystemError): Error: ESPIPE: invalid seek, copyfile '/run/user/1000/gvfs/ftp:host=some-host,user=some-user/inetpub-dev/webcontent/Admin/securityFx/loginform.css' -> '/home/some-user/.config/Code/User/History/5c371153/GGjc.css'
    at f9.create (file:///usr/share/code/resources/app/out/main.js:38:28875)
    at Vi (file:///usr/share/code/resources/app/out/main.js:38:26169)
    at xc.ib (file:///usr/share/code/resources/app/out/main.js:49:22946)
    at xc.fb (file:///usr/share/code/resources/app/out/main.js:49:22389)
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2025-01-27T06:01:21.4466667+00:00

    Hello @William Morris ,

    Thank you for taking time to post this issue in Microsoft Q&A forum.

    As Visual Studio Code(different from Visual Studio IDE) is currently not supported in the Microsoft Q&A forums, please kindly post your question on GitHub - vscode for better help(technical support).

    Thanks very much for your understanding.

    Have a great day!

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.