Fix DartMappable parser compilation error via version alignment - #884
Closed
trevorwang with Copilot wants to merge 3 commits into
Closed
Fix DartMappable parser compilation error via version alignment#884trevorwang with Copilot wants to merge 3 commits into
trevorwang with Copilot wants to merge 3 commits into
Conversation
…tor to 10.2.3 Co-authored-by: trevorwang <121966+trevorwang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix case retrofit.Parser.DartMappable issue
Fix DartMappable parser compilation error via version alignment
Dec 28, 2025
Owner
|
@copilot relbase to latest master |
Contributor
Author
The rebase cannot be completed cleanly because master already includes the DartMappable fix in versions 4.9.2 (retrofit) and 10.2.4 (generator) with the proper dependency This PR attempted to add versions 4.9.1 and 10.2.3, which are now superseded by the versions already in master. The issue has been resolved in master, so this PR can be closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
retrofit_generator10.2.1 referencesParser.DartMappableenum value that doesn't exist in publishedretrofit4.9.0, causing build failures.Changes
retrofit: ^4.9.1to ensure compatible versionThe
Parserenum already containsDartMappablein source; this aligns published package versions so the generator doesn't reference missing enum values.Original prompt
This section details on the original issue you should resolve
<issue_title>case retrofit.Parser.DartMappable</issue_title>
<issue_description>Describe the bug
Flutter version:
Flutter 3.38.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f6ff1529fd (12 days ago) • 2025-12-11 11:50:07 -0500
Engine • hash c108a94d7a8273e112339e6c6833daa06e723a54 (revision 1527ae0ec5) (11 days ago) • 2025-12-11 15:04:31.000Z
Tools • Dart 3.10.4 • DevTools 2.51.1
retrofit: ^4.9.1
retrofit_generator: ^10.2.0
build_runner: ^2.10.4
I run the command dart run build_runner watch --delete-conflicting-outputs then it is throwing an error
dart run build_runner watch --delete-conflicting-outputs
build_runner
E ../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:1140:36: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:1225:36: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:1303:36: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:1512:34: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:2135:36: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:2178:32: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/retrofit_generator-10.2.1/lib/src/generator.dart:2234:36: Error: Member not found: 'DartMappable'.
case retrofit.Parser.DartMappable:
...
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.