cypher-query-language icon indicating copy to clipboard operation
cypher-query-language copied to clipboard

formatting issue with apoc.map.merge

Open sarmbruster opened this issue 2 years ago • 4 comments

RETURN apoc.map.merge({ a:1 }, {b:2})

results in

RETURN apoc.map.
MERGE ({ a:1 }, {b:2})

after formatting the document. merge is wrongly treated as keyword in this case. I suspect filtering for whitespace before and after merge should do the trick.

sarmbruster avatar Jan 09 '23 16:01 sarmbruster

Thanks for the bug report! Yeah, looks like a fairly simple fix. I'll see what I can do...unless you want to take a crack at it?

jakeboone02 avatar Jan 09 '23 16:01 jakeboone02

Hi,

I have the same issue too, with apoc.coll.contains that is transformed to apoc.coll. CONTAINS after formatting.

Heziode avatar May 10 '23 21:05 Heziode

@Heziode Thanks for the additional example. Honestly, I'm considering abandoning/deprecating this project. A Neo4j employee has created a more robust VS Code extension here, and since I don't use Neo4j or Cypher anymore I'm unlikely to spend a lot of time fixing issues.

jakeboone02 avatar May 10 '23 21:05 jakeboone02

Thank you @jakeboone02 to pointing a new extension 🙏

I understand your consideration, and I will moving to https://github.com/adam-cowley/neo4j-vscode extension.

Heziode avatar May 10 '23 22:05 Heziode