Closed Bug 864442 Opened 11 years ago Closed 11 years ago

"IndexError: tuple index out of range" from webidl compiler

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 843264

People

(Reporter: jib, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files, 1 obsolete file)

The attached webidl now compiles fine (running with patch "863880.patch") when I comment out these two problem lines in RTCPeerConnection.webidl:

>  readonly attribute RTCIceConnectionState iceConnectionState;
>
>  // Next two lines cause IndexError: tuple index out of range
>//  sequence<MediaStream> getLocalStreams ();
>//  sequence<MediaStream> getRemoteStreams ();
>
>  MediaStream? getStreamById (DOMString streamId);

When I un-comment them (already done in the attached patch), I get this error:

Traceback (most recent call last):
  File "/.../config/pythonpath.py", line 56, in <module>
    main(sys.argv[1:])
  File "/.../config/pythonpath.py", line 48, in main
    execfile(script, frozenglobals)
  File "/.../dom/bindings/BindingGen.py", line 77, in <module>
    main()
  File "/.../dom/bindings/BindingGen.py", line 73, in main
    generate_binding_header(config, outputPrefix, srcPrefix, webIDLFile);
  File "/.../dom/bindings/BindingGen.py", line 18, in generate_binding_header
    root = CGBindingRoot(config, outputprefix, webidlfile)
  File "/.../dom/bindings/Codegen.py", line 7619, in __init__
    cgthings.append(CGCallbackInterface(x))
  File "/.../dom/bindings/Codegen.py", line 8616, in __init__
    for sig in m.signatures()]
  File "/.../dom/bindings/Codegen.py", line 8904, in __init__
    self.singleOperation)
  File "/.../dom/bindings/Codegen.py", line 8862, in __init__
    needThisHandling)
  File "/.../dom/bindings/Codegen.py", line 8683, in __init__
    self.body = self.getImpl()
  File "/.../dom/bindings/Codegen.py", line 8689, in getImpl
    "returnResult": self.getResultConversion(),
  File "/.../dom/bindings/Codegen.py", line 8735, in getResultConversion
    False)[2]).substitute(replacements)
IndexError: tuple index out of range
make[6]: *** [ParserResults.pkl] Error 1
make[6]: *** Deleting file `ParserResults.pkl'
make[5]: *** [bindings_export] Error 2
make[4]: *** [export_tier_platform] Error 2
make[3]: *** [tier_platform] Error 2
make[2]: *** [default] Error 2
make[1]: *** [realbuild] Error 2
make: *** [build] Error 2

Output attached.
Attached file Output (obsolete) —
Attached file Full output
Decided to attach full output.

Note that it actually seems to say "YTHONDONTWRITEBYTECODE" on the failing line. Not sure what that's about. It says "PYTHONDONTWRITEBYTECODE" further up.
Attachment #740411 - Attachment is obsolete: true
This looks like bug 843264, right?

I guess I should fix this now....  ;)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: