bblfsh / web

Web client for Babelfish server
http://dashboard.bblf.sh
GNU General Public License v3.0
23 stars 21 forks source link

No UAST is rendered for a valid query #215

Closed dennwc closed 5 years ago

dennwc commented 5 years ago

Steps to reproduce

  1. Go to https://play.bblf.sh, select classdef.py.
  2. Use XPath: //python:ClassDef/body - it works, you can see body_stmts field.
  3. Use XPath: //python:ClassDef/body/*/body_stmts - nothing is rendered.
  4. Do the same with Network tab opened - you can clearly see a non-empty response.
dennwc commented 5 years ago

It seems like it was fixed for array nodes, but not for values.

Can be reproduced by running this query on any file: //uast:Identifier/Name. The server will respond with an array of string values, while the UI will show no results at all. Same can happen for arrays of numbers, bools, etc.