bblfsh / python-driver

GNU General Public License v3.0
10 stars 16 forks source link

Native driver cannot handle large files #185

Closed dennwc closed 5 years ago

dennwc commented 5 years ago

Related to https://github.com/bblfsh/bblfshd/issues/266.

Steps to reproduce:

1) Run native Python driver:

docker run -it --rm --entrypoint /opt/driver/bin/native bblfsh/python-driver:v2.8.1

2) Copy the content of this gist, paste to the terminal and press Enter. 3) The driver will emit an error:

{"status": "fatal", "errors": ["error decoding JSON from input: {\"content\":\"# Protocol Buffers - ...
...  an actual decoder.\n"], "driver": "python23:1.1", "ast": null, "filepath": "<jsonstream>"}

Note the decoder.\n" at the end of an error. This meant to be a full JSON string and should end with }, but it appears to be truncated.

dennwc commented 5 years ago

Cannot reproduce with https://github.com/bblfsh/python-driver/pull/190 applied. Probably related to the IDE I'm using.