Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Compiler crash calling List<>.__set__ with too few arguments #37

Open
ark3 opened this issue Oct 26, 2015 · 0 comments
Open

Compiler crash calling List<>.__set__ with too few arguments #37

ark3 opened this issue Oct 26, 2015 · 0 comments

Comments

@ark3
Copy link
Contributor

ark3 commented Oct 26, 2015

package foo {}

void main() {
    List<String> asdf = new List<String>();
    asdf.__set__("aadsf");
}

yields

$ quark compile hello.q 
Traceback (most recent call last):
  File "/Users/ark3/.virtualenvs/datawire/bin/quark", line 9, in <module>
    load_entry_point('datawire-quark==0.1.0', 'console_scripts', 'quark')()
  File "/Users/ark3/Dropbox/datawire/quark/quark/command.py", line 150, in call_main
    exit(main(docopt(__doc__)))
  File "/Users/ark3/Dropbox/datawire/quark/quark/command.py", line 116, in main
    res = compiler._main(compiler_args)
  File "/Users/ark3/Dropbox/datawire/quark/quark/compiler.py", line 542, in _main
    c.compile()
  File "/Users/ark3/Dropbox/datawire/quark/quark/compiler.py", line 515, in compile
    self.emit(backend)
  File "/Users/ark3/Dropbox/datawire/quark/quark/compiler.py", line 519, in emit
    self.root.traverse(backend)
  File "/Users/ark3/Dropbox/datawire/quark/quark/ast.py", line 94, in traverse
    leave(self, *args, **kwargs)
  File "/Users/ark3/Dropbox/datawire/quark/quark/java.py", line 94, in leave_Root
    functions.append(f.match(self.dfnr))
  File "/Users/ark3/Dropbox/datawire/quark/quark/ast.py", line 97, in match
    return self.lookup(transform, "match")(self, *args, **kwargs)
  File "/Users/ark3/Dropbox/datawire/quark/quark/java.py", line 238, in match_Function
    body = " %s" % m.body.match(self.stmtr) if m.body else ";"
  File "/Users/ark3/Dropbox/datawire/quark/quark/ast.py", line 97, in match
    return self.lookup(transform, "match")(self, *args, **kwargs)
  File "/Users/ark3/Dropbox/datawire/quark/quark/java.py", line 331, in match_Block
    return "{%s}" % indent("\n".join([s.match(self) for s in b.statements]))
  File "/Users/ark3/Dropbox/datawire/quark/quark/ast.py", line 97, in match
    return self.lookup(transform, "match")(self, *args, **kwargs)
  File "/Users/ark3/Dropbox/datawire/quark/quark/java.py", line 308, in match_ExprStmt
    return "%s;" % stmt.expr.match(self.exprr)
  File "/Users/ark3/Dropbox/datawire/quark/quark/ast.py", line 97, in match
    return self.lookup(transform, "match")(self, *args, **kwargs)
  File "/Users/ark3/Dropbox/datawire/quark/quark/java.py", line 357, in match_Call
    return self.invoke(type, c.expr, [a.match(self) for a in c.args])
  File "/Users/ark3/Dropbox/datawire/quark/quark/dispatch.py", line 52, in __call__
    return method(self.object, *args, **kwargs)
  File "/Users/ark3/Dropbox/datawire/quark/quark/java.py", line 449, in invoke
    env[p.name.text] = args[idx]
IndexError: list index out of range
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant