Skip to content

Manual update to 2026.04 artifacts#671

Merged
anderson4j merged 5 commits into
mainfrom
updateArtifacts2026.04
Apr 10, 2026
Merged

Manual update to 2026.04 artifacts#671
anderson4j merged 5 commits into
mainfrom
updateArtifacts2026.04

Conversation

@anderson4j

@anderson4j anderson4j commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator

Update grammar and semantic analysis to 2026.04

Fix some tests that changed, and formatting that needed updating

Closes LS-139

…ndle semantic errors of "procedure inside query", add formatting of labelComparison to fix tests using comparisonExpression6 (which now does not use LabelExpression). Fix lexersymbols
@changeset-bot

changeset-bot Bot commented Apr 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4f083cb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@neo4j-cypher/language-support Patch
@neo4j-cypher/lint-worker Patch
@neo4j-cypher/language-server Patch
@neo4j-cypher/query-tools Patch
@neo4j-cypher/react-codemirror-playground Patch
@neo4j-cypher/react-codemirror Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@anderson4j anderson4j force-pushed the updateArtifacts2026.04 branch from 69d657d to b2cd21a Compare April 8, 2026 13:19
Workaround lintstagedrc/oxfmtrc clash
@anderson4j anderson4j force-pushed the updateArtifacts2026.04 branch from b2cd21a to 6c03be3 Compare April 8, 2026 13:28
Comment thread .lintstagedrc.json
],
"vendor/antlr4-c3/index.ts": ["bash check-imports.sh"],
"*.js": ["oxlint --fix --type-aware --max-warnings 0"],
"packages/vscode-extension/**/cypher.json": [],

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had a clash with oxfmtrc for cypher.json. This file called oxfmt on all .json files, but oxfmtrc (rightly, since it's generated) removed cypher.json, causing an "Expected at least one target file"-error.

@@ -1 +1 @@
neo4j-2026.03
neo4j-2026.04

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not forgetting it this time!

{
severity: 1,
message:
'Procedure call inside a query does not support naming results implicitly (name explicitly using `YIELD` instead)',

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like semantic analysis got smart enough to realise the procedure doesnt yield any columns at all, so this error doesnt make sense. Added another test below with a procedure that does have return columns

;

forListClause
: FOR variable IN expression

@anderson4j anderson4j Apr 8, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we should add formatter handling for this new clause. Realised that we didnt consider this for a lot of new rules in the past, so thinking maybe I skip it for now and have a look at it all at once later? (this also lets us get in the updated artifacts to upx quicker - before the browser bundling on thursday)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS. I think it can be confusing that I made changes in formatting.ts when I here say I want to fix formatting things later. The change below is more of a fix, since the labelComparison used to have formatting handled by a visitor of it's children, but now that the child-rule changed (it's no longer using labelExpression, which we handle, instead it's a straight up labelExpression4) we need to handle it manually to avoid regression

@anderson4j anderson4j requested a review from alisasanib April 9, 2026 08:57
Comment thread packages/language-support/src/formatting/formatting.ts Outdated
@anderson4j anderson4j merged commit ca1bba6 into main Apr 10, 2026
13 checks passed
@anderson4j anderson4j deleted the updateArtifacts2026.04 branch April 10, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants