no error when loading a custom module with a syntax error
Bug #1055572 reported by
Marcos Mendez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP's Framework R&D |
Bug Description
When creating a new custom module, if there is a syntax error there is no way to determine why the module was not loaded. For example:
{
"name": "OpenAcademy",
"version": "1.0",
"depends": ["base"],
"author": "Author Name",
"category": "Category",
"description": """Description text""",
"data", [],
"demo": [],
"test": [],
"installable": True,
"auto_install": False,
}
When you go to update the module list and it will not be listed. Also when running the server with debug on, you will not see any errors.
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
status: | Incomplete → Confirmed |
To post a comment you must log in.
Hello Marcos Mendez ,
I have faced a trackback of invalid syntax.
So would you please check this again and elaborate
more regarding this issue.
Traceback (most recent call last): jacky/workspace /Project/ MY/trunk6/ server/ openerp/ service/ __init_ _.py", line 55, in load_server_ wide_modules modules. module. load_openerp_ module( m) jacky/workspace /Project/ MY/trunk6/ server/ openerp/ modules/ module. py", line 425, in load_openerp_module sys.modules[ 'openerp. addons. ' + module_name], info['post_ load']) () jacky/workspace /Project/ MY/trunk6/ new_openerp- web/addons/ web/__init_ _.py", line 29, in wsgi_postload jacky/workspace /Project/ MY/trunk6/ new_openerp- web/addons/ web/common/ http.py" , line 482, in __init__ jacky/workspace /Project/ MY/trunk6/ new_openerp- web/addons/ web/common/ http.py" , line 540, in _load_addons eval(open( manifest_ path).read( )) python2. 7/ast.py" , line 49, in literal_eval or_string, mode='eval') python2. 7/ast.py" , line 37, in parse
File "/home/
openerp.
File "/home/
getattr(
File "/home/
app = common.http.Root(o)
File "/home/
static_dirs = self._load_addons()
File "/home/
manifest = ast.literal_
File "/usr/lib/
node_or_string = parse(node_
File "/usr/lib/
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 63
'data', [
^
SyntaxError: invalid syntax
Thanks and waiting for reply!