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

[Json to Object Polymorphism] generated error file #13

Open
normidar opened this issue May 9, 2024 · 1 comment
Open

[Json to Object Polymorphism] generated error file #13

normidar opened this issue May 9, 2024 · 1 comment

Comments

@normidar
Copy link

normidar commented May 9, 2024

I tried https://pub.dev/packages/morphy#json-to-object-polymorphism but it generated a file that inculde errors.

[SEVERE] morphy on lib/src/drawer/base/color/pure_color.dart (cached):
An error `FormatterException` occurred while formatting the generated source for
  `package:image_gen/src/drawer/base/color/pure_color.dart`
which was output to
  `lib/src/drawer/base/color/pure_color.morphy.dart`.
This may indicate an issue in the generator, the input source code, or in the
source formatter.
Could not format because the source could not be parsed:

line 140, column 1 of .: Expected to find '}'.

140 │ ) {
    │ ^

line 153, column 1 of .: Expected to find '}'.

153 │ ) {
    │ ^

[SEVERE] Failed after 2.6s
@atreeon
Copy link
Owner

atreeon commented May 14, 2024

Is this running the example code, I'll take a look tomorrow. There are tests.

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

No branches or pull requests

2 participants