Skip to content

Extend the protocol to provide the ability to parse arbitrary code #339

@vmarkovtsev

Description

@vmarkovtsev

We are developing the format analyzer. We hit the following problem: our analyzer may suggest code which is completely wrong, up to the point that it is not parsed to the same AST or not parseable at all. We don't want to suggest garbage, of course, so we need to parse the suggested variant and compare the old and the new ASTs. However, Lookout protocol does not allow to parse arbitrary code, only by specific Git revision. Our workaround is to invoke Bablefish directly, which breaks the whole abstraction.

I request an extension of the protocol which is basically a thin proxy layer between the Lookout server and the Babelfish server. We need the old, "v1" UASTs in Q4. More specifically: given a file name and it's contents, return the UAST. We are totally fine with batching.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions