kamahen / pykythe

Generate code Python source cross-reference facts in Kythe format
Other
21 stars 3 forks source link

Click on sys.version_info (w/o class=src_hover) crashes server #33

Open kamahen opened 3 years ago

kamahen commented 3 years ago

There are two problems here:

  1. If a token without "src_hover" is clicked, then the xref request fails (because there's no kythe_node fact for that token.

  2. Some instances of sys.version_info aren't being processed properly (but not all).

Example (needs to be made shorter): http://localhost:9999/static/src_browser.html?corpus=CORPUS&root=CORPUS&path=tmp/pykythe_test/SUBST/BUILTINS/builtins.pyi#L1918 (and in other parts of the file, including near the beginning)