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

Fix parser error messages for inputs with more than a query #1419

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

Qup42
Copy link
Member

@Qup42 Qup42 commented Jul 26, 2024

For inputs that consist of a valid SELECT or CONSTRUCT query that are followed by additional (illegal) characters, like

SELECT * WHERE {} } # trailing }

an internal assertion that was not very helpful was triggered. This is now fixed, the error now is "... expected EOF" with the end of the correctly parsed query being highlighted.

The reason was a subtle bug in the SPARQL grammar file.
Closes #1402

Copy link

@joka921 joka921 changed the title Fix error messages for incompletely parsed queries Fix parser error messages for inputs with more than a query Jul 29, 2024
@joka921 joka921 merged commit fedaf71 into ad-freiburg:master Jul 29, 2024
18 checks passed
@Qup42 Qup42 deleted the fix/eofInSPARQLGrammar branch January 23, 2025 09:56
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.

Error Message for incompletely parsed queries is bad
2 participants