Skip to content

fix: line number in syntax error message from external formatter#722

Merged
dsherret merged 1 commit into
dprint:mainfrom
kt3k:fix-line-number-when-syntax-error-from-external-formatter
Jun 11, 2025
Merged

fix: line number in syntax error message from external formatter#722
dsherret merged 1 commit into
dprint:mainfrom
kt3k:fix-line-number-when-syntax-error-from-external-formatter

Conversation

@kt3k
Copy link
Copy Markdown
Contributor

@kt3k kt3k commented Jun 11, 2025

This fixes the line number in error message when external formatter raised syntax error

related: denoland/deno#29660 (comment)

@kt3k
Copy link
Copy Markdown
Contributor Author

kt3k commented Jun 11, 2025

@dsherret PTAL

Copy link
Copy Markdown
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM. I’ll do a release

@dsherret dsherret merged commit ec54c7c into dprint:main Jun 11, 2025
3 checks passed
@kt3k kt3k deleted the fix-line-number-when-syntax-error-from-external-formatter branch June 11, 2025 04:35
kt3k added a commit to denoland/deno that referenced this pull request Jun 11, 2025
…rom external formatter (#29698)

The line number in error message is off by one when external formatter
raised syntax error. This commit fixes it by upgrading
`dprint-plugin-typescript` (The issue was fixed in upstream
dprint/dprint-plugin-typescript#722 )
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.

2 participants