googlefonts / fez

Font Engineering made eaZy
BSD 3-Clause "New" or "Revised" License
17 stars 2 forks source link

BYFixOverhang requires LoadAnchors #8

Open khaledhosny opened 2 years ago

khaledhosny commented 2 years ago

This is not documented and the error messages is not very helpful:

Traceback (most recent call last):
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 414, in parseString
    rv = self.expand_statements(rv)
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 433, in expand_statements
    returned = callback()
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 487, in <lambda>
    verb_ret = (verb, [transformer._THUNK, lambda: transformer.action(ret)])
  File "/venv/lib/python3.10/site-packages/fez/Feature.py", line 65, in action
    statements = self.parser.expand_statements(statements)
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 433, in expand_statements
    returned = callback()
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 496, in <lambda>
    verb_ret = (verb, [transformer._THUNK, lambda : transformer.transform(tree) ])
  File "/venv/lib/python3.10/site-packages/lark/visitors.py", line 153, in transform
    return self._transform_tree(tree)
  File "/venv/lib/python3.10/site-packages/lark/visitors.py", line 149, in _transform_tree
    return self._call_userfunc(tree, children)
  File "/venv/lib/python3.10/site-packages/lark/visitors.py", line 120, in _call_userfunc
    raise VisitError(tree.data, tree, e)
lark.exceptions.VisitError: Error trying to process rule "action":

'hah-ar.medi'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/venv/bin/fez2fea", line 42, in <module>
    p.parseFile(args.fee)
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 403, in parseFile
    return self.parseString(data)
  File "/venv/lib/python3.10/site-packages/fez/__init__.py", line 416, in parseString
    raise e.orig_exc
  File "/venv/lib/python3.10/site-packages/lark/visitors.py", line 116, in _call_userfunc
    return f(children)
  File "/venv/lib/python3.10/site-packages/fez/BariYe.py", line 395, in action
    entry_anchor = parser.fontfeatures.anchors[yb]["entry"]
KeyError: 'hah-ar.medi'