question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RecursionError: maximum recursion depth exceeded lark 0.6.0

See original GitHub issue

Hi,

I tried to run my program to parse a text with my grammar (which you can find in issue #175 ) with lark 0.6.0, and I get this error :

  File "/home/venvpypy3/site-packages/lark/visitors.py", line 44, in _transform_tree
    children = list(self._transform_children(tree.children))
  File "/home/venvpypy3/site-packages/lark/visitors.py", line 39, in _transform_children
    yield self._transform_tree(c) if isinstance(c, Tree) else c
  File "/home/venvpypy3/site-packages/lark/visitors.py", line 43, in _transform_tree
    def _transform_tree(self, tree):
RecursionError: maximum recursion depth exceeded

The line 44 and 39 are repeated some hundred of times before this.

The grammar used to work with lark 0.5.6 (as you still can see in issue #175 ).

Any ideas why this is happening ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dryslopecommented, Jul 13, 2018

Yes it worked well, thanks.

I’m closing this issue as it’s resolved.

0reactions
erezshcommented, Jul 11, 2018

You’re right, thanks for bringing this to my attention.

I pushed a fix to master. Let me know if it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

maximum recursion depth exceeded while using lark in ...
RecursionError : maximum recursion depth exceeded. I'm using lark for the first time. python · parsing · compiler-construction · lark-parser.
Read more >
Maximum recursion depth exceeded when report success
RecursionError : maximum recursion depth exceeded. ERROR:pika.callback:Calling <bound method Connection.
Read more >
maximum recursion depth exceeded while calling a Python ...
In this article, we shall be looking into one such recursionerror: maximum recursion depth exceeded while calling a Python object.
Read more >
maximum recursion depth exceeded in comparison
Recursion error : maximum recursion depth exceeded in comparison This can happen with very large or deeply nested source files. You can carefully...
Read more >
Python RecursionError: Maximum Recursion Depth Exceeded ...
RecursionError : Maximum Recursion Depth Exceeded in Comparison · What is the Recursion Limit in Python? · How to Catch a Python Recursion...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found