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

Referencing invalid package names causes a compiler crash #36

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

Referencing invalid package names causes a compiler crash #36

janicedatawire opened this issue Oct 26, 2015 · 0 comments

Comments

@janicedatawire
Copy link
Contributor

I changed the name of a package and missed a reference to the old name in the code. When I tried to compile the file, I got the following compiler crash:

$ quark --python ~/quark-examples/python examples/list.q
Traceback (most recent call last):
  File "/Users/janicekarin/virtualenv/bin/quark", line 9, in <module>
    load_entry_point('datawire-quark==0.1.0', 'console_scripts', 'quark')()
  File "/Users/janicekarin/quark/quark/compiler.py", line 566, in main
    exit(_main(docopt(main.__doc__)))
  File "/Users/janicekarin/quark/quark/compiler.py", line 542, in _main
    c.compile()
  File "/Users/janicekarin/quark/quark/compiler.py", line 497, in compile
    self.root.traverse(use)
  File "/Users/janicekarin/quark/quark/ast.py", line 93, in traverse
    c.traverse(visitor, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/ast.py", line 93, in traverse
    c.traverse(visitor, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/ast.py", line 93, in traverse
    c.traverse(visitor, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/ast.py", line 93, in traverse
    c.traverse(visitor, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/ast.py", line 93, in traverse
    c.traverse(visitor, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/ast.py", line 93, in traverse
    c.traverse(visitor, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/ast.py", line 94, in traverse
    leave(self, *args, **kwargs)
  File "/Users/janicekarin/quark/quark/compiler.py", line 233, in leave_Type
    if n.text in type.env:
AttributeError: 'NoneType' object has no attribute 'env'
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