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

Request: Improve error position logs for multiple files. #33

Open
alazyworkaholic opened this issue Dec 29, 2021 · 0 comments
Open

Request: Improve error position logs for multiple files. #33

alazyworkaholic opened this issue Dec 29, 2021 · 0 comments

Comments

@alazyworkaholic
Copy link

When executing multiple pq files within the same directory and a syntax error occurs PQnet will helpfully pass along the error message. If the pq file is too long the information is available in the Event Viewer, but it seems that the error message refers to a single document created from multiple .pq files. For example, an error I receive is Token Identifier expected. Start position: (2752, 27). End position (2752, 28). while my longest .pq file is less than 2752 lines.

If it's impossible/difficult to return the line number of the document containing the error and its file name, could PQnet at least (optionally?) make the combined document it creates available somewhere for debugging?

I was eventually able to find the error by subtracting line numbers and guessing at the sequence files were combined, but it was very slow.

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