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.

Variable redeclared #207

Description

@ncordon

From the latest bblfsh logs we got this error:

key \"col_offset\": variable \"pos_start_exists\" redeclared (true vs false)

Files that produced the error:

components/specification/Xml/xsd-fu/trunk/generateDS/generateDS.py
components/xsd-fu/python/generateDS/generateDS.py
Demo/sgi/video/Vcopy.py
Demo/sgi/video/vcopy.py
components/xsd-fu/generateDS/generateDS.py

Activity

  1. dennwc commented on Oct 11, 2019

    @dennwc
    Member

    Minimal reproducer:

    global x, \
        y

    From what I've seen, it seems that y token has the same line number and the position fixer fails to match it against the token map. The consequence is that the node corresponding to y has a line number, but no column or offset.

    Next, ObjectToNode helper kicks in during the pre-process stage and causes the error message that we see.

    So it might be a bug in both SDK (causing the error) and the driver (wrong positions).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions