kamahen / pykythe

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

Assertion failed: SIGNATURE SHOULD BE EMPTY #36

Open kamahen opened 3 years ago

kamahen commented 3 years ago

http://localhost:9999/static/src_browser.html?corpus=CORPUS&root=ROOT&path=home%2Fpeter%2Fsrc%2Fpykythe%2Fpykythe%2Fast_cooked.py#L773

{column: 16
edges: Array(1)
0: {edge: "/kythe/edge/defines/binding", target: {…}}
length: 1
__proto__: Array(0)
end: 27426
lineno: 773
signature: "@27420:27426<lambda>"
start: 27420
token_color: "<KEYWORD>"
value: "lambda"}
srcLineTextHoverable | @ | src_browser.js:349
displaySrcContents | @ | src_browser.js:283
(anonymous) | @ | src_browser.js:253
fetchFromServer | @ | src_browser.js:553
kamahen commented 3 years ago

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

... they all seem to be for lambda, which generates a pseudo-token