question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad error reporting after constant extraction

See original GitHub issue
edgedb> SELECT ''' 1 ''';
error: Unexpected '('
  ┌─ query:1:10
  │
1 │ SELECT ''' 1 ''';
  │          ^^^^^^ error

There is no paren in original text so error is misleading.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
elpranscommented, Nov 4, 2020

So should we fallback to re-parsing original text on any syntax error instead?

Yes, and I don’t see a problem with that.

0reactions
1st1commented, Nov 4, 2020

But then it woulld be unexpected ‘<’ which isn’t any better.

Ah, that’s right. 😕

So should we fallback to re-parsing original text on any syntax error instead?

I guess there’s no way around that. @elprans thoughts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Analyzing Medication Error Reports in Clinical Settings - NCBI
Thus, the according error reports are more likely to be misclassified into the “ordering” and “administering” stages.
Read more >
An overview of Error Handling in SSIS packages - SQLShack
Occasionally, we get bad data (invalid character, special character, invalid length or data type) in the flat files and package execution fails.
Read more >
12. Detecting and Reporting Errors - Mastering Perl [Book]
Detecting and Reporting Errors Several things may go wrong in any program, including problems in programming, bad or missing input, unreachable external ...
Read more >
A mostly complete guide to error handling in JavaScript.
Learn how to deal with errors and exceptions in synchronous and asynchronous JavaScript code.
Read more >
How should I disclose a data extraction error when submitting ...
You could specify that you have verified all your results in your response as well, if you fear that reviewers would doubt your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found