Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug check fails for SOSL containing RETURNING and WITH DIVISION #75

Closed
praksb opened this issue Jun 13, 2019 · 0 comments
Closed

Debug check fails for SOSL containing RETURNING and WITH DIVISION #75

praksb opened this issue Jun 13, 2019 · 0 comments

Comments

@praksb
Copy link

praksb commented Jun 13, 2019

The following code fails Apex prettier --debug-check:

public class Sosl {
public void testWithDivision() {
s = [
FIND 'foobar'
RETURNING Account
WITH DIVISION ='global'
];
}
}
Sosl.cls[error] Sosl.cls: Error: Expecting ']' but was: 'RETURNING'. Syntax(erro[error] atchedSyntax(loc = (3, 49, 35, 44), actual = 'RETURNING', expected = ]))
[error] Missing ';' at 'Account'. Syntax(error = MissingSyntax(loc = (3, 59, 37,[error] tual = 'Account', expected = ;))
[error] Extra ';', at ']'.. Syntax(error = UnmatchedSyntax(loc = (3, 66, 38, 39), actual = ']', expected = ;))
[error] at Object.parse (/usr/local/lib/node_modules/prettier-plugin-apex/src/parser.js:452:13)
[error] at Object.parse$2 [as parse] (/usr/local/lib/node_modules/prettier/bin-prettier.js:10635:19)
[error] at coreFormat (/usr/local/lib/node_modules/prettier/bin-prettier.js:13844:23)
[error] at format (/usr/local/lib/node_modules/prettier/bin-prettier.js:14103:73)
[error] at formatWithCursor (/usr/local/lib/node_modules/prettier/bin-prettier.js:14119:12)
[error] at /usr/local/lib/node_modules/prettier/bin-prettier.js:42520:15
[error] at Object.format (/usr/local/lib/node_modules/prettier/bin-prettier.js:42539:12)
[error] at format$1 (/usr/local/lib/node_modules/prettier/bin-prettier.js:43806:27)
[error] at /usr/local/lib/node_modules/prettier/bin-prettier.js:44084:16
[error] at /usr/local/lib/node_modules/prettier/bin-prettier.js:44024:14

dangmai pushed a commit that referenced this issue Nov 11, 2023
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

No branches or pull requests

1 participant