Add semantic errors
ncordon opened this issue · comments
What
Add semantic errors to the LSP.
We need:
- A mapping CST (trees produced by ANTLR4) -> AST (trees produced by JavaCC in the database): https://github.com/tobias-johansson/cypher-antlr
- The AST factory of the database compiled to Javascript: @OskarDamkjaer is looking at this part
Why
In the database we have a layer of semantic errors, for queries that would pass parsing but contain semantic flaws:
MATCH (n) RETURN m
where m
has not been declared.
We want to surface that information to the LSP
Moved to Trello!