Open Bug 768356 Opened 13 years ago Updated 2 years ago

IPDL compiler should give more useful error when .ipdl file should be .ipdlh

Categories

(Core :: IPC, defect)

defect

Tracking

()

People

(Reporter: dzbarsky, Unassigned)

Details

When there is no protocol defined, the file should be an ipdlh. If it is ipdl, the compiler should tell you to change it instead of giving the following error: File "/Users/dzbarsky/mozilla/inbound/config/pythonpath.py", line 56, in <module> main(sys.argv[1:]) File "/Users/dzbarsky/mozilla/inbound/config/pythonpath.py", line 48, in main execfile(script, frozenglobals) File "/Users/dzbarsky/mozilla/inbound/ipc/ipdl/ipdl.py", line 67, in <module> ast = ipdl.parse(specstring, filename, includedirs=includedirs) File "/Users/dzbarsky/mozilla/inbound/ipc/ipdl/ipdl/__init__.py", line 29, in parse return Parser(type, name).parse(specstring, os.path.abspath(filename), includedirs, errout) File "/Users/dzbarsky/mozilla/inbound/ipc/ipdl/ipdl/parser.py", line 80, in parse debug=self.debug) File "/Users/dzbarsky/mozilla/inbound/other-licenses/ply/ply/yacc.py", line 265, in parse return self.parseopt_notrack(input,lexer,debug,tracking,tokenfunc) File "/Users/dzbarsky/mozilla/inbound/other-licenses/ply/ply/yacc.py", line 971, in parseopt_notrack p.callable(pslice) File "/Users/dzbarsky/mozilla/inbound/ipc/ipdl/ipdl/parser.py", line 217, in p_TranslationUnit assert tu.filetype == 'header' AssertionError
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.