--
Ticket URL: <https://code.djangoproject.com/ticket/22991>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: anubhav9042@… (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
* type: Uncategorized => Bug
Comment:
Anubhav, can you reproduce this? If so, could you bisect the regression?
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:1>
Comment (by timo):
#23020 reports the same issue on Mac OS X, but I have no problems on
Linux.
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:2>
Comment (by CollinAnderson):
I can confirm it doesn't work and bisected it to
1bb8ccdb9e70bee35759f2ada4d661481852ab95 (Fixed pyinotify performance
regression)
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:3>
* severity: Normal => Release blocker
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:4>
Comment (by CollinAnderson):
Ok, I can reproduce it on `Ubuntu 12.04` by uninstalling `python-inotify`
(`pyinotify`) and turning off `sys.dont_write_bytecode`
(`PYTHONDONTWRITEBYTECODE`). It's happening on all platforms, so I'll mark
#23020 as a duplicate.
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:5>
* needs_tests: 0 => 1
Comment:
*.pyc filenames are ending up in `_cached_filenames`, and then being
returned from the cache without being converted from `.pyc` to `.py`. This
change caches the `*.py` filenames instead.
https://github.com/django/django/pull/2913
I also noticed an inconsistency with `_error_files`. It's not clear if or
when those should be added to _cached_filenames and if and when inotify
needs to start watching them.
I would appreciate someone else writing a test case.
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:6>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:7>
* cc: cmawebsite@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:8>
Comment (by CollinAnderson):
`_error_files` handles cases from #9589 and #8413. I bet those have also
regressed.
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:9>
* cc: melinath (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:10>
Comment (by CollinAnderson):
I actually can't reproduce any `_error_files` issues. It seems that
nowadays, either the check framework fully stops the process on
`models.py` and `admin.py` errors before the autoreloader starts (would be
nice to fix someday), or in other files, like `views.py`, it can handle
re-importing the bad files without needing to reload.
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:11>
* needs_tests: 1 => 0
Comment:
I've slightly adapted the PR from Collin and added a one-line test in
https://github.com/django/django/pull/2918
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:12>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"4e424084e6d796f7ed5f215330cd0b98287c1300"]:
{{{
#!CommitTicketReference repository=""
revision="4e424084e6d796f7ed5f215330cd0b98287c1300"
Fixed #22991 -- Prevented *.pyc files in autoreload monitoring
This fixes a regression introduced in 6d302f639.
Thanks lorinkoz at gmail.com for the report, Collin Anderson
for the initial patch and Simon Charette for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:13>
Comment (by Claude Paroz <claude@…>):
In [changeset:"f2011e21a2d803ab6328852c3af4a4bf6701b11d"]:
{{{
#!CommitTicketReference repository=""
revision="f2011e21a2d803ab6328852c3af4a4bf6701b11d"
[1.7.x] Fixed #22991 -- Prevented *.pyc files in autoreload monitoring
This fixes a regression introduced in 6d302f639.
Thanks lorinkoz at gmail.com for the report, Collin Anderson
for the initial patch and Simon Charette for the review.
Backport of 4e424084e from master.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22991#comment:14>