Changing a file leads to loss of its content

I am working on a remote PyCharm project.

Whenever I edit a file and then run the debugger, I get a message saying "File changed on disk" and the reloaded file is empty.

The file is located on a network storage.

Could you please advise on how to solve this?

PyCharm 2021.3 (Professional Edition)

0
5 comments

Hi, 

Unfortunately, PyCharm doesn't support working on project files from a network storage. Technically, in some cases, it may work, but often causes a whole slew of performance and other issues (such as this one).

0

This is strange, I have been using it for almost two years with the current setup. The problems started just yesterday. 

0

Maybe related to some changes in 2021.3. You can report the issue to our issue tracker with the detailed data:

- Logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue 

- If possible, screen recording demonstrating the issue 

But, we have always discouraged users from working on remote mounts directly. Instead, if you want to sync the project between multiple machines, it's recommended to use VCS, or remote development support.

0

Changing to version 2021.2 solved the problem

0

Interesting.

I would still suggest to report the issue to our tracker to investigate if it's a bug.

0

Please sign in to leave a comment.