kamahen / pykythe

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

Text doesn't show for file that doesn't parse #34

Open kamahen opened 3 years ago

kamahen commented 3 years ago

E.g., a22.py

?- forall(src_browser:kythe_node(Signature,'CORPUS','ROOT','tmp/pykythe_test/SUBST/home/peter/src/pykythe/test_data/a22.py',python,K, V), format('~q ~q ~q~n', [Signature,K,V])).
'<diagnostic>@0:23<-msg->1' '/kythe/details' 'bad input: type=1, value=\'parse\', context=(\' \', (1, 10)) (type=1) value=parse context:(\' \', (1, 10)) file:\'/tmp/pykythe_test/SUBST/home/peter/src/pykythe/test_data/a22.py\''
'<diagnostic>@0:23<-msg->1' '/kythe/message' 'Parse error'
'<diagnostic>@0:23<-msg->1' '/kythe/node/kind' diagnostic
'@0:23<-msg->' '/kythe/loc/end' 23
'@0:23<-msg->' '/kythe/loc/start' 0
'@0:23<-msg->' '/kythe/node/kind' anchor