Can I make "Run Configuration" save and wait until rsync is done before running?
已回答
I'm using remote development in PyCharm.
If I edit my code, then run it, it runs the old version, then if I run again it runs the new version.
I think that the first time, rsync had not run, or not completed running. If I manually "File>Save All" or command+S before running then it works. But is there a way to make it so that when I choose run, it saves, runs rsync, waits for rsync to complete, then runs? Otherwise I need to manually save before hitting run every time.
请先登录再写评论。
What is Settings/Preferences | Build, Execution, Deployment | Deployment | Options -> Upload changed files automatically... set to?
If it's not Always, try setting it and see if it helps.
I've just checked and it's already set to "Always".
What PyCharm version do you use?
If it's 2022.2.2, please try the EAP build https://www.jetbrains.com/pycharm/nextversion/
You can have both versions installed at the same time.
I was using 2022.2.2 (Build #PY-222.4167.33, built on September 15, 2022)
I've tried 2022.3 EAP (Build #PY-223.6160.21, built on October 5, 2022) now.
I still have the same issue on this version.
Perhaps you are facing this known bug https://youtrack.jetbrains.com/issue/PY-39396/Remote-run-happens-before-a-new-file-version-is-uploaded-to-a-remote-machine
Please vote for it to help us with prioritization and feel free to comment.
Thank you. It sounds like this issue.
I have upvoted on the issue and I also commented with the details of the setup and version I'm using.