You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I get this error while compiling a template, but not always. I wonder if this library is not thread-safe?
Traceback (most recent call last):
File "/home/dobes/env/lib/python2.7/site-packages/pybars/_compiler.py", line 827, in compile
container = self._generate_code(source)
File "/home/dobes/env/lib/python2.7/site-packages/pybars/_compiler.py", line 801, in _generate_code
output = self._compiler(tree).apply('compile')[0]
File "/home/dobes/env/lib/python2.7/site-packages/pymeta/runtime.py", line 299, in apply
val, err = self._apply(r, ruleName, args)
File "/home/dobes/env/lib/python2.7/site-packages/pymeta/runtime.py", line 329, in _apply
[rule(), self.input])
File "/pymeta_generated_code/pymeta_grammar__Grammar.py", line 11, in rule_compile
self.considerError(lastError)
File "/home/dobes/env/lib/python2.7/site-packages/pymeta/runtime.py", line 396, in many
v, _ = fn()
File "/pymeta_generated_code/pymeta_grammar__Grammar.py", line 8, in _G_many_2
_G_exactly_1, lastError = self.exactly('-')
File "/home/dobes/env/lib/python2.7/site-packages/pymeta/runtime.py", line 329, in _apply
[rule(), self.input])
File "/pymeta_generated_code/pymeta_grammar__Grammar.py", line 59, in rule_rule
return (_G_apply_1, self.currentError)
File "/home/dobes/env/lib/python2.7/site-packages/pymeta/runtime.py", line 414, in _or
ret, err = f()
File "/pymeta_generated_code/pymeta_grammar__Grammar.py", line 48, in _G_or_5
return (_G_apply_1, self.currentError)
File "/home/dobes/env/lib/python2.7/site-packages/pymeta/runtime.py", line 329, in _apply
[rule(), self.input])
File "/pymeta_generated_code/pymeta_grammar__Grammar.py", line 107, in rule_block
_locals['x'] = _G_apply_1
File "<string>", line 1, in <module>
File "/home/dobes/env/lib/python2.7/site-packages/pybars/_compiler.py", line 554, in add_block
self._locals[name] = nested
TypeError: list indices must be integers, not str
The text was updated successfully, but these errors were encountered:
Sometimes I get this error while compiling a template, but not always. I wonder if this library is not thread-safe?
The text was updated successfully, but these errors were encountered: