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.

column out of bounds #164

Closed
bblfsh/sdk
#286

Description

@smacker

Most probably introduced by #161

The latest driver fails on this file:
https://github.com/pallets/itsdangerous/blob/master/itsdangerous.py

full error: [column out of bounds: 38 [1, 37]]

older driver parses it without problems (for example it works on http://dashboard.bblf.sh/ )

Activity

  1. self-assigned this
    on Aug 9, 2018
  2. juanjux commented on Aug 9, 2018

    @juanjux
    Contributor

    I'll take a look.

  3. juanjux commented on Aug 9, 2018

    @juanjux
    Contributor

    What version are you using? I can't reproduce this with python -m bblfsh -f file or adding it as an integration tests and running the generation command. I'm using the latest (v2.2.1) version of the driver and latest of bblfshd from Docker Hub.

  4. smacker commented on Aug 9, 2018

    @smacker
    ContributorAuthor
    "python-driver version: v2.2.1 (build: 2018-08-02T18:39:59Z)"
    

    bblfshd latest.

    Sorry for misleading source! After wget it doesn't fail indeed! But it fails on my fixture. Diff:

    $ diff itsdangerous.py fixtures/large.py
    900c900
    <     default_serializer = _CompactJSON
    ---
    >     default_serializer = _CompactJSON
    \ No newline at end of file
    

    New driver:

    $ python -m bblfsh -f fixtures/large.py -e 127.0.0.1:9800 > /dev/null
    column out of bounds: 38 [1, 37]
    

    Old driver:

    $ python -m bblfsh -f fixtures/large.py -e 127.0.0.1:9432 > /dev/null
    (.pyenv) smacker at Maxims-MacBook-Pro in ~/Dev/bblfsh-benchmark on master*
    
  5. juanjux commented on Aug 9, 2018

    @juanjux
    Contributor

    Yes, that was it, Vim was being a too good boy and was adding a newline at the end of the file, removing it (perl -pi -e 'chomp if eof' filename.py) now I can reproduce the problem.

  6. juanjux commented on Aug 9, 2018

    @juanjux
    Contributor

    SDK updated. Drivers will need individual updates to get this fix, I'll update the python-driver now since it's the one you're finding the problem with and all the other drivers tomorrow.

  7. reopened this on Aug 9, 2018
  8. juanjux commented on Aug 9, 2018

    @juanjux
    Contributor

    v2.2.2 of the Python driver released which should incorporate the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions