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

Cut 2.3.8 branch which parses at language version 3.6. #1636

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

munificent
Copy link
Member

The 2.3.7 release of the formatter incorrectly defaults to parsing code at language version 3.3. That version doesn't support digit separators. The Dart 3.6.0 SDK release supports digit separators but includes dart_style 2.3.7, which can't format them.

This PR creates a new 2.3.8 patch version that parses at the correct language version. Once this lands, I'll cherrypick it into the SDK and it will go out in the next stable patch release.

cc @athomas, @leafpetersen, @itsjustkevin, @mit-mit

The 2.3.7 release of the formatter incorrectly defaults to parsing code
at language version 3.3. That version doesn't support digit separators.
The Dart 3.6.0 SDK release supports digit separators but includes
dart_style 2.3.7, which can't format them.

This PR creates a new 2.3.8 patch version that parses at the correct
language version. Once this lands, I'll cherrypick it into the SDK and
it will go out in the next stable patch release.
@munificent munificent changed the base branch from main to 2.3.x January 27, 2025 23:33
@munificent munificent merged commit 71eb5a5 into 2.3.x Jan 27, 2025
1 check passed
@munificent munificent deleted the 2.3.8-digit-separators branch January 27, 2025 23:34
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jan 28, 2025
The 2.3.7 version of dart_style that shipped in Dart SDK 3.6.0
incorrectly parses Dart code at language version 3.3 instead of 3.6.
That means it doesn't handle number literals with digit separators. In
other words, `dart format` fails on any code that contains digit
separators.

This bumps the DEP to 2.3.8, which is a single-commit patch version from
2.3.7 that fixes the parser language version number. There are no other
dart_style changes in 2.3.8.

Bug: #59815
Change-Id: If2546edcd11bd424019d76b87c7c08695add331a
Cherry-pick: dart-lang/dart_style#1636
Cherry-pick-request: #59998
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/406204
Auto-Submit: Bob Nystrom <[email protected]>
Commit-Queue: Alexander Thomas <[email protected]>
Reviewed-by: Alexander Thomas <[email protected]>
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