PyCharm delayed deployment of .py (and other) files

PyCharm 2021.1.2 (Professional Edition)
Build #PY-211.7442.45, built on June 1, 2021
Runtime version: 11.0.11+9-b1341.57 amd64

Heya, my PyCharm deployment got broken after the latest upgrade.

Funny thing - .batch files are uploaded immediately after any change is made. However, .py files are updated with varying lag or when I run any configuration.

Does anyone have the same issue? I tried deleting the deployment config, the .idea directory, did not help...

8 comments
Comment actions Permalink

Hey,

Could you please try one trick? Edit the .py file and then move the focus away from the IDE app (switch to Windows manager, for instance).

Would it upload the file?

0
Comment actions Permalink

Hey,

After changing the focus, the file is uploaded... Do you know how to fix it?

0
Comment actions Permalink

Thanks for checking this one.

In general, the automatic deployment uploads files that were updated/saved. Basically, there are several scenarios that lead to the file save in IDE, for instance:

- Invoked intentionally with the "Ctrl+S";
- Saved when the focus is changed from IDE to other application (including the built-in terminal);
- By the idle timeout;

The autosave settings could be configured in the "Appearance & Behavior | System Settings > Autosave" section. Also, you may enable an option to mark files that were not saved yet by ticking "Mark modified" in "Editor | General | Editor Tabs".

To be honest, I wonder how it was working differently before, as far as I am aware, nothing really changed in this mechanism in the latest updates.

Do you recall how exactly it was happening before? Did the upload start in the middle of a file editing or after a tab/app switching?

0
Comment actions Permalink

Hmm,

I think that I did not realize when this behavior changed (probably) some time ago and then I got confused when I saw the *.non-py files uploaded immediately in contrast to *.py files being uploaded with focus change.

 

BTW when I hit Ctrl+S, the py files don't get uploaded...

 

Thanks!

0
Comment actions Permalink

Basically, there are some exclusions and some files being updated instantly despite the general saving rule. For instance, when compiling .scss files:

https://youtrack.jetbrains.com/issue/WEB-49252

I am not sure but probably .batch files have the same behaviour, I hope that someone from PyCharm team could confirm/deny that.

As for the "Ctrl+S" behaviour, did you notice if the modified (*) mark disappears when you hit the key shortcut?

0
Comment actions Permalink

I noticed the asterisk... Nevertheless, when I hit ctrl+s, the asterisk is still there...

0
Comment actions Permalink

Just a wild guess but is there any chance that you have "Ctrl+S" as an unassigned shortcut in Keymap settings?

 

0
Comment actions Permalink

True, it is not assigned. Weird. Thanks!

0

Please sign in to leave a comment.