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
I am trying to parse in the source files of the standard library. When I get to Lib/pydoc_data/topics.py I encounter issues.
The native parser of LibCST causes stack overflow on this file. It can be parsed correctly with the pure parser.
I am not sure how to debug it, but this file contains thousands of lines of ConcatenatedString nodes, so I would guess that causes the problem. If I use the pure parser, the code will error anyway on the cst.code expression with a RecursionError.
Tested on windows 10 with LibCST 1.0.1 on Python 3.11.4.
Windows fatal exception: stack overflow
Current thread 0x000020f8 (most recent call first):
File "D:\projects\testing\libcst_error\.venv\Lib\site-packages\libcst\_parser\entrypoints.py", line 55 in _parse
File "D:\projects\testing\libcst_error\.venv\Lib\site-packages\libcst\_parser\entrypoints.py", line 109 in parse_module
File "D:\projects\testing\libcst_error\main.py", line 8 in <module>
The text was updated successfully, but these errors were encountered:
I am trying to parse in the source files of the standard library. When I get to Lib/pydoc_data/topics.py I encounter issues.
The native parser of LibCST causes stack overflow on this file. It can be parsed correctly with the pure parser.
I am not sure how to debug it, but this file contains thousands of lines of ConcatenatedString nodes, so I would guess that causes the problem. If I use the pure parser, the code will error anyway on the cst.code expression with a RecursionError.
Tested on windows 10 with LibCST 1.0.1 on Python 3.11.4.
Code to reproduce:
Result of the run:
The text was updated successfully, but these errors were encountered: