This document https://www.kythe.io/docs/schema/indexing-generated-code.html describes how proto code generation can work with other languages. It mentions a use-case where users browsing source code might want to jump from generated code (e.g calling proto getters/setters in Java) directly to the generator (e.g. proto files) code. I'm looking to implement this use-case.The document says that it's left up to Kythe clients to interpret and follow the edges. Does "Kythe clients" include the http_server/write_tables (as in ultimately the Kythe serving pipeline should take care of following the edges appropriately)? Or would it make more sense for external clients (like me) to add a post-processing step to output /kythe/edge/ref edges (or otherwise manipulate the resulting graph to work well with write_tables/http_server) to follow the generates edge from the Java semantic node back to the proto anchor node?
--
You received this message because you are subscribed to the Google Groups "Kythe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kythe+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kythe/59537097-12ea-4947-a7ea-a1bf9f76aab2%40googlegroups.com.
AFAIU write_tables would make the connection.Note that the 'imputes' edge might be easier to start with.I don't know if the legacy or beam pipeline behave the same way in this regard.Note that the large (?) codebases the beam pipeline is practically unusable. The local executor is slow, flink portable doesn't yet work. GCE might work, but that's quite a lock in.Robin
On Wed, Jun 3, 2020, 16:14 John Edmonds <john.a...@gmail.com> wrote:
--This document https://www.kythe.io/docs/schema/indexing-generated-code.html describes how proto code generation can work with other languages. It mentions a use-case where users browsing source code might want to jump from generated code (e.g calling proto getters/setters in Java) directly to the generator (e.g. proto files) code. I'm looking to implement this use-case.The document says that it's left up to Kythe clients to interpret and follow the edges. Does "Kythe clients" include the http_server/write_tables (as in ultimately the Kythe serving pipeline should take care of following the edges appropriately)? Or would it make more sense for external clients (like me) to add a post-processing step to output /kythe/edge/ref edges (or otherwise manipulate the resulting graph to work well with write_tables/http_server) to follow the generates edge from the Java semantic node back to the proto anchor node?
You received this message because you are subscribed to the Google Groups "Kythe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ky...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kythe+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kythe/9b8aec27-75a5-479a-9b63-2622e79d8e8d%40googlegroups.com.
'Imputes' sounds like a fully external workaround, if the more involved way of shipping metadata for 'generates' is not feasible. 'generates' involves a tight interaction between the proto code generator (to emit the metadata) and the indexer (to pick up the metadata and emit generates).
Sounds interesting! Is it around reinstating concurrency? I was wondering about doing a PoC to load the graphstore content into SQL tables and querying that (instead of precomputed tables). Could make iteration on explorative / experimental batch queries faster.