Opened 11 years ago
Closed 11 years ago
#22615 closed Bug (duplicate)
Lack of error explanation in makemessages, intermediate file is delete not chance to fix anything
Reported by: | Cezary.Wagner | Owned by: | nobody |
---|---|---|---|
Component: | Internationalization | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
makemessages has ugly bahaviour:
- error message is not clear not shows root cause
- error is not handled
- files need to solve problem is deleted by makemessages routines even command is failed there is not intermediate files.
- impossible to solve such problem without patching django and tracking problem with debuggers
django-admin.py makemessages -l en_US --settings=settings -v 2 --pythonpath=. --traceback
processing locale en_US
Traceback (most recent call last):
File "c:\root\src\django\django\bin\django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "c:\root\src\django\django\core\management\init.py", line 399, in exe
cute_from_command_line
utility.execute()
File "c:\root\src\django\django\core\management\init.py", line 392, in exe
cute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\root\src\django\django\core\management\base.py", line 242, in run_fro
m_argv
self.execute(*args, options.dict)
File "c:\root\src\django\django\core\management\base.py", line 285, in execute
output = self.handle(*args, options)
File "c:\root\src\django\django\core\management\base.py", line 415, in handle
return self.handle_noargs(options)
File "c:\root\src\django\django\core\management\commands\makemessages.py", lin
e 279, in handle_noargs
self.write_po_file(potfile, locale)
File "c:\root\src\django\django\core\management\commands\makemessages.py", lin
e 368, in write_po_file
"errors happened while running msgmerge\n%s" % errors)
django.core.management.base.CommandError
Duplicate of issues described in #22616 and #22617 as far as I can tell?