Giter Site home page Giter Site logo

Comments (7)

AlaaEldeenYsr avatar AlaaEldeenYsr commented on June 2, 2024 1
[INFO] Running build...
[INFO] 1.0s elapsed, 0/1 actions completed.
[INFO] 2.1s elapsed, 0/1 actions completed.
[INFO] 3.1s elapsed, 0/1 actions completed.
[INFO] 4.2s elapsed, 0/1 actions completed.
[INFO] 15.0s elapsed, 0/1 actions completed.
[WARNING] No actions completed for 15.1s, waiting on:
  - dart_json_mapper on lib/main.dart

[SEVERE] dart_json_mapper on lib/main.dart:

AssetNotFoundException: ya_schools_parent_app|pubspec.yaml
[INFO] 16.2s elapsed, 33/49 actions completed.
[INFO] 17.2s elapsed, 65/81 actions completed.
[INFO] 18.2s elapsed, 96/111 actions completed.
[INFO] 19.2s elapsed, 129/144 actions completed.
[INFO] 20.3s elapsed, 167/182 actions completed.
[INFO] 21.5s elapsed, 200/215 actions completed.
[INFO] 22.5s elapsed, 286/287 actions completed.
[INFO] Running build completed, took 23.0s

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 167ms

[SEVERE] Failed after 23.2s

When i comment the flutter_translate_gen configurations it works well, But when i add both configs of flutter_translate_gen and dart_json_mapper it throw the above error

targets:
  $default:
    builders:
      dart_json_mapper:
        generate_for:
          # here should be listed entry point files having 'void main()' function
          - lib/main.dart

      # This part is needed to tell original reflectable builder to stay away
      # it overrides default options for reflectable builder to an **empty** set of files
      reflectable:
        generate_for:
          - no/files
    # sources:
    #   include:
    #     - assets/i18n/**
    #     - lib/**

from dart-json-mapper.

k-paxian avatar k-paxian commented on June 2, 2024 1

Well that's a pure configuration issue here.

While using specific sources configuration, which is by default **
here is the docs
image

So, while specifying a restricted list of sources you are reducing ability for dart_json_mapper builder and other builders to discover entire package sources **. Specifically dart_json_mapper builder needs to have an access to the pubspec.yaml of your package.

So to fix your case you just need to include pubspec.yaml to the sources list:

targets:
  $default:
    sources:
      include:
        - assets/i18n/**
        - lib/**
        - $package$
        - pubspec.yaml

Let me know if this helps

from dart-json-mapper.

AlaaEldeenYsr avatar AlaaEldeenYsr commented on June 2, 2024

@k-paxian any help

from dart-json-mapper.

k-paxian avatar k-paxian commented on June 2, 2024

Any error message or quick reproduction project?

from dart-json-mapper.

AlaaEldeenYsr avatar AlaaEldeenYsr commented on June 2, 2024

I created that quick reproduction project for you @k-paxian
json_mapper_conflict.zip

from dart-json-mapper.

k-paxian avatar k-paxian commented on June 2, 2024

Thanks 👍

from dart-json-mapper.

AlaaEldeenYsr avatar AlaaEldeenYsr commented on June 2, 2024

Thank you @k-paxian it worked well

from dart-json-mapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.