Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

EOF in multiline statement #203

@ncordon

Description

@ncordon

From the latest bblfsh logs:

Traceback (most recent call last):\n  
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/requestprocessor.py\", line 155, in process_request\n    ast = AstImprover(code, orig_ast).parse()\n  
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 26, in __init__\n    self._tokens: List[Token] = [Token(*i) for i in tokenize.tokenize(BytesIO(codestr.encode('utf-8')).readline)]\n  
File \"/opt/driver/bin/.local/lib/python3.6/site-packages/python_driver/astimprove.py\", line 26, in <listcomp>\n    self._tokens: List[Token] = [Token(*i) for i in tokenize.tokenize(BytesIO(codestr.encode('utf-8')).readline)]\n  
File \"/usr/local/lib/python3.6/tokenize.py\", line 602, in _tokenize\n    raise TokenError(\"EOF in multi-line statement\", (lnum, 0))\ntokenize.TokenError: ('EOF in multi-line statement', (10, 0))\n

Examples of files that triggered the error:

tags/0.9/macsetup.py
tags/0.9.3/macsetup.py
tags/0.9-rc3/macsetup.py
tags/0.9.3.1/macsetup.py
tags/0.9.1/macsetup.py
tags/0.9.4/macsetup.py
tags/0.9-rc2/macsetup.py
tags/0.9.2/macsetup.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions