cookiecutter-django
cookiecutter-django copied to clipboard
Sometimes template code changes not detected in windows wls ubuntu22.04.
What happened?
With default runserver_plus reloader_type, when django template code changes, sometimes doens't detect changes. sometimes happens three times detected with once code change.
What should've happened instead?
When code change, it should be detected immediately at once.
Additional details
-
Host system configuration:
-
Version of cookiecutter CLI (get it with
cookiecutter --version
): Cookiecutter 2.6.0 from /home/ubuntu/.pyenv/versions/3.12.2/lib/python3.12/site-packages (Python 3.12.2 (main, Apr 6 2024, 15:39:34) [GCC 11.4.0]) -
OS name and version: windows wsl2 ubuntu
-
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
-
Python version,:
Python 3.12.2
-
Docker version (if using Docker):
Docker version 25.0.3, build 4debf41
-
docker compose version (if using Docker), run
docker compose --version
:Docker Compose version v2.24.6-desktop.1
-
...
-
Options selected and/or replay file: On Linux and macOS:
cat ${HOME}/.cookiecutter_replay/cookiecutter-django.json
(Please, take care to remove sensitive information)
{
"cookiecutter": {
"project_name": "shorts-obible",
"project_slug": "shorts_obible",
"description": "Curation shorts for bible",
"author_name": "quroom",
"domain_name": "shorts.obible.kr",
"email": "[email protected]",
"version": "0.0.1",
"open_source_license": "MIT",
"username_type": "username",
"timezone": "Asia/Seoul",
"windows": "n",
"editor": "VS Code",
"use_docker": "y",
"postgresql_version": "16",
"cloud_provider": "None",
"mail_service": "Other SMTP",
"use_async": "n",
"use_drf": "n",
"frontend_pipeline": "None",
"use_celery": "y",
"use_mailpit": "n",
"use_sentry": "n",
"use_whitenoise": "y",
"use_heroku": "n",
"ci_tool": "Github",
"keep_local_envs_in_vcs": "y",
"debug": "n",
"_template": "gh:cookiecutter/cookiecutter-django",
"_output_dir": "/home/ubuntu",
"_repo_dir": "/home/ubuntu/.cookiecutters/cookiecutter-django",
"_checkout": null
}
I found a workaround. When I changed RUNSERVERPLUS_POLLER_RELOADER_TYPE to stat. It works properly. It might be related to wsl2 issue #4970
$ cookiecutter https://github.com/cookiecutter/cookiecutter-django project_name [Project Name]: ...
Is that still an issue now that #4971 is merged?
Is that still an issue now that #4971 is merged?
With that option, It isn't issue. But I guess we need some explanations, because someone thinks wsl ubuntu env is not related windows. So they might check windows as n. In document or creating template instruction with cookiecutter command, I guess it's better to announce. How do you think?