kamahen / pykythe

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

browser always goes to line 1 when clicking on a ref #40

Closed kamahen closed 2 years ago

kamahen commented 2 years ago

e.g., from this URL:

http://localhost:9999/static/src_browser.html?corpus=CORPUS&root=ROOT&path=tmp%2Fpykythe_test%2FSUBST%2Fhome%2Fpeter%2Fsrc%2Fpykythe%2Ftest_data%2Ft8.py#L18

click on "encode" (line 18) click on the definition in the bottom pane it goes to

http://localhost:9999/static/src_browser.html?corpus=CORPUS&root=ROOT&path=tmp%2Fpykythe_test%2FSUBST%2FBUILTINS%2Fbuiltins.pyi#L1

but shouldn't be L1.

kamahen commented 2 years ago

Fixed as part of b7c91729df518f992b8a2d753e74f3172a2170c8