Coder Social home page Coder Social logo

Comments (3)

huycozy avatar huycozy commented on June 26, 2024

Hi @feinstein
I checked this on a new Flutter project with adding only two package as mentioned, but couldn't see the issue:

repro_147909 dart run build_runner watch -d
Building package executable... (10.6s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 435ms
[INFO] Precompiling build script... completed, took 5.4s
[INFO] Setting up file watchers completed, took 19ms
[INFO] Waiting for all file watchers to be ready completed, took 199ms
[INFO] Building new asset graph completed, took 1.5s
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Generating SDK summary completed, took 6.7s
[INFO] Running build completed, took 20.2s
[INFO] Caching finalized dependency graph completed, took 110ms
[INFO] Succeeded after 20.3s with 48 outputs (100 actions)

Here are my dependencies:

dependencies:
  flutter:
    sdk: flutter


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.6
  url_launcher: ^6.2.6
  json_serializable: ^6.8.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  build_runner: ^2.4.9

Looks like you are using old versions, could you try upgrading them to the latest versions and retry?

from flutter.

feinstein avatar feinstein commented on June 26, 2024

Sorry I will try, I ran pub upgrade, but forgot to check the latest versions.

from flutter.

stuartmorgan avatar stuartmorgan commented on June 26, 2024
[SEVERE] json_serializable on example/ios/.symlinks/plugins/url_launcher_ios/pigeons/messages.dart (cached):

You appear to have build_runner configured to iterate into .symlinks. That directory is part of the flutter build process, and any other use of it is unsupported. In this case, it would be comparable to including build or .dart_tool in your input set.

As a result of the above it appears to be iterating into all directories of all plugins in the dependency tree. The pigeons directory of url_launcher_ios is not part of its public interface, so using it is unsupported. As with any dependency, you should only be using things from lib, and if that constraint is violated the usage is not supported, and is subject to breakage at any time. Certainly if you are ending up with dev-only files of other packages as inputs (in violation of package conventions), it is expected that you would have issues if you don't include the dev dependencies of that package.

Closing as this is a configuration issue, not an issue with url_launcher.

from flutter.

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.