Skip to content

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

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

Conversation

kt3k
Copy link
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
Contributor Author

kt3k commented Jun 11, 2025

@dsherret PTAL

Copy link
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