Skip to content

Conversation

@cirras
Copy link
Collaborator

@cirras cirras commented Apr 2, 2025

Line information was incorrect or incomplete in some cases:

  • within include files
  • within compiler directives
  • when include processing fails due to self-referencing include files

This was discovered due to the new ParsingError check triggering file pointer errors when trying to raise issues on included tokens.

@cirras cirras requested a review from fourls April 2, 2025 06:00
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks like some great changes that will really improve the consistency of this code. I have a few thoughts but overall looks great.

@cirras cirras force-pushed the improve_parsing_error_reporting branch from 92ebaba to e02b121 Compare April 3, 2025 00:39
@cirras cirras requested a review from fourls April 3, 2025 00:39
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Just one more question.

fourls
fourls previously approved these changes Apr 3, 2025
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good!

Line information was incorrect or incomplete in some cases:
- within include files
- within compiler directives
- when include processing fails due to self-referencing include files

This was discovered due to the new `ParsingError` check triggering file
pointer errors when trying to raise issues on included tokens.
@cirras cirras force-pushed the improve_parsing_error_reporting branch from e02b121 to dc619c2 Compare April 3, 2025 01:04
@cirras cirras requested a review from fourls April 3, 2025 01:04
Copy link
Collaborator

@fourls fourls left a comment

Choose a reason for hiding this comment

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

Looks good! The optimization was a good idea.

@cirras cirras merged commit 2bf7e64 into master Apr 3, 2025
4 checks passed
@cirras cirras deleted the improve_parsing_error_reporting branch April 3, 2025 01:10
cirras added a commit that referenced this pull request Apr 8, 2025
This constructor became unused with #356 when we started creating
`IncludeToken` instances at lex-time.
cirras added a commit that referenced this pull request Apr 8, 2025
This constructor became unused with #356 when we started creating
`IncludeToken` instances at lex-time.
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.

3 participants