You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dmypy run works fine, and only reruns when the configfile changes.
However, when I change the module configuration to:
...
[mypy-abc.*.abc]
...
dmypy keeps rerunning, saying:
Restarting: configuration changed
Daemon stopped
Daemon started
even without further changes to the config file.
I tried to track the error down, and changed the error message indmypy_server.py to:
def cmd_run(self, version: str, args: Sequence[str],
is_tty: bool, terminal_width: int) -> Dict[str, object]:
"""Check a list of files, triggering a restart if needed."""
...
# Signal that we need to restart if the options have changed
if self.options_snapshot != options.snapshot():
return {'restart': 'configuration changed' + str(self.options_snapshot) + '===' + str(options.snapshot())}
...
Comparing self.options_snapshot with options.snapshot(), I can see that with the second config file, self.options_snapshot contains this:
If a configuration contains globs, then dmypy incorrectly detected
that the configration changed even though it did not.
This caused the daemon to always restart if a configuration contained globs.
Fixespython#7576.
…7960)
If a configuration contains globs, then dmypy incorrectly detected
that the configration changed even though it did not.
This caused the daemon to always restart if a configuration contained globs.
Fixes#7576.
With a configfile like this:
dmypy run works fine, and only reruns when the configfile changes.
However, when I change the module configuration to:
dmypy keeps rerunning, saying:
even without further changes to the config file.
I tried to track the error down, and changed the error message in
dmypy_server.py
to:Comparing
self.options_snapshot
withoptions.snapshot()
, I can see that with the second config file,self.options_snapshot
contains this:while
options.snapshot()
contains this:So I believe something is wrong in this case...
The text was updated successfully, but these errors were encountered: