neueda / jetbrains-plugin-graph-database-support

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

Incorrect function reformatting #64

Closed arionkrause closed 5 years ago

arionkrause commented 7 years ago

Upon reformatting, CALL apoc.schema.assert({}, {}); becomes CALL apoc.schema.ASSERT({}, {}); (assert becomes ASSERT), which when executed makes Neo4j throw

Error occurred: There is no procedure with the name apoc.schema.ASSERT registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

Is there a way to at least deactivate automatic reformatting only Cypher files?

FylmTM commented 7 years ago

Hi @arionkrause ,

Sorry for that. That's quite an interesting finding.

I am actually surprised that Neo4j stored procedure names are case sensitive (because all built-in function are not).

Unfortunately plugin currently is not actively maintaned. We will fix this issue, as soon, as we will manage to allocate a bit of time.

Note: I don't know if it is possible to disable reformatting only for Cypher files.

GreYko commented 5 years ago

Fixed and delivered in plugin v2.5.5 in scope of https://github.com/neueda/jetbrains-plugin-graph-database-support/issues/92 . Should be available for updating soon.