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

Variable redeclared #207

Open
ncordon opened this issue Jul 23, 2019 · 1 comment
Open

Variable redeclared #207

ncordon opened this issue Jul 23, 2019 · 1 comment
Labels

Comments

@ncordon
Copy link
Member

ncordon commented Jul 23, 2019

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
@ncordon ncordon added the bug label Jul 23, 2019
@dennwc
Copy link
Member

dennwc commented Oct 11, 2019

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants