neueda / jetbrains-plugin-graph-database-support

Graph Databases support for JetBrains family IDEs.
Apache License 2.0
222 stars 56 forks source link

Deserialization fails with JanusGraph when relations are returned #162

Open sunsided opened 4 years ago

sunsided commented 4 years ago

While I get queries like MATCH (n)-[r]->(m) RETURN n, m to work, when executing a query like MATCH (n)-[r]->(m) RETURN n, r, m, the plugin fails with:

Executing query: 
MATCH (n)-[r]->(m) RETURN n, r, m
Error occurred: Wrong serializer selected. Please check connection configuration. Details...

Regardless of the serializer; in fact, all of the selected do work, as long as I don't attempt to return a relation.

Sadly I can't copy the details from the dialog window, but the error messages go along the line of

Screenshot from 2020-01-11 14-08-34

Now this seems to be a known issue and apparently boils down to org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry being unknown on the client side. For example, see e.g.

As far as JanusGraph is concerned, I can work around this issue by replacing

but I'm not sure of the implications there.

Instead, would it be possible to register JanusGraph's types with the plugin so that it works out of the box? I have a Docker Compose setup ready at sunsided/janusgraph-docker that might help in testing.

GreYko commented 4 years ago

Thanks for such complete and useful issue description. Will look closely into it.