Skip to content

part file not generated #4

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

Open
GoncaloPT opened this issue Mar 9, 2022 · 1 comment
Open

part file not generated #4

GoncaloPT opened this issue Mar 9, 2022 · 1 comment

Comments

@GoncaloPT
Copy link

Hi,
after performing the migration to sound null safety, i noticed that .g.dart was the only file with erros.
After following all the required steps ( including changing imports and pubspec version of functional_enum ) i've realized the part file is not generated anymore.
I don't see any error when I execute the generation using flutter pub run build_runner build.

Excerpts of pubspec.lock:

 analyzer:
    dependency: transitive
    description:
      name: analyzer
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.8.0"
  build:
    dependency: transitive
    description:
      name: build
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.2.1"
  build_config:
    dependency: transitive
    description:
      name: build_config
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.0.0"
  build_runner:
    dependency: "direct dev"
    description:
      name: build_runner
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.1.7"
  build_runner_core:
    dependency: transitive
    description:
      name: build_runner_core
      url: "https://pub.dartlang.org"
    source: hosted
    version: "7.2.3"
functional_enum:
    dependency: "direct dev"
    description:
      name: functional_enum
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.1.4"
  functional_enum_annotation:
    dependency: "direct main"
    description:
      name: functional_enum_annotation
      url: "https://pub.dartlang.org"
    source: hosted
    version: "1.2.2"
@elias8
Copy link
Owner

elias8 commented Mar 10, 2022

Hi @GoncaloPT 👋,

Did you include the file name that contains the enum as a part file with .g.dart extension?

Also, it would be good if you could share a sample code to reproduce the issue.

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