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.

Define ending position column #130

Open

Description

@smacker

There is an inconsistency in java&python drivers. EndPosition.End.Col for java driver returns the position of next character and python driver returns the position of the last character. For example for code print node will have EndPosition.End.Col = 6 for java and EndPosition.End.Col = 5 for python.
Currently, it isn't defined what driver should return, so it depends on native AST.
Position should be defined and later fixed in drivers accordingly.

Activity

  1. bzz commented on Jun 26, 2018

    @bzz
    Contributor

    \cc @dennwc @juanjux what do you guys think?

  2. dennwc commented on Jun 26, 2018

    @dennwc
    Member

    It should be fixed as a part of v2 release. We are almost there.

  3. bzz commented on Jun 26, 2018

    @bzz
    Contributor

    We are experiencing this with Golang driver as well in gitbase-playground.

    🤞 Waiting for v2 😄

  4. dennwc commented on Jun 26, 2018

    @dennwc
    Member

    Aware of problems with Go drivers, and it's fixed upstream as well :) Tested with bblfsh/uast-viewer#19

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions