Repository navigation
json_serializable fails to build with Flutter #15545
Copy link
Copy link
Closed
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
D:\Flutter\FlutterPrj\flutter_app>flutter packages pub run build_runner build
The method 'path' was called on null.
Receiver: null
Tried calling: path("bin\\build_runner.dart")
dart:core Object.noSuchMethod
package:pub/src/barback/dependency_computer.dart 101 DependencyComputer.transformersNeededByLibrary
dart:_internal ListIterable.fold
package:pub/src/utils.dart 535 unionAll
package:pub/src/barback/load_all_transformers.dart 40 loadAllTransformers
===== asynchronous gap ===========================
package:pub/src/barback/asset_environment.dart 571 AssetEnvironment._load.<fn>.<fn>.<fn>
===== asynchronous gap ===========================
package:pub/src/log.dart 409 progress
package:pub/src/barback/asset_environment.dart 570 AssetEnvironment._load.<fn>.<fn>
===== asynchronous gap ===========================
dart:async new Future.sync
package:pub/src/barback/asset_environment.dart 794 AssetEnvironment._withStreamErrors
package:pub/src/barback/asset_environment.dart 569 AssetEnvironment._load.<fn>
===== asynchronous gap ===========================
package:pub/src/log.dart 409 progress
package:pub/src/barback/asset_environment.dart 533 AssetEnvironment._load
package:pub/src/barback/asset_environment.dart 112 AssetEnvironment.create.<fn>
===== asynchronous gap ===========================
package:pub/src/log.dart 409 progress
package:pub/src/barback/asset_environment.dart 90 AssetEnvironment.create
package:pub/src/executable.dart 140 _executableUrl
===== asynchronous gap ===========================
package:pub/src/executable.dart 83 runExecutable
===== asynchronous gap ===========================
package:pub/src/command/run.dart 68 RunCommand.run
===== asynchronous gap ===========================
package:args/command_runner.dart 194 CommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand.<fn>
dart:async new Future.sync
package:pub/src/utils.dart 103 captureErrors.<fn>
dart:async runZoned
package:pub/src/utils.dart 122 captureErrors
package:pub/src/command_runner.dart 167 PubCommandRunner.runCommand
===== asynchronous gap ===========================
package:pub/src/command_runner.dart 116 PubCommandRunner.run
===== asynchronous gap ===========================
E:\b\build\slave\Windows_Engine\build\src\third_party\dart\third_party\pkg\pub\bin\pub.dart 8 main
This is an unexpected error. Please run
pub --trace run build_runner build
and include the logs in an issue on https://github.com/dart-lang/pub/issues/new
pub finished with exit code 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
zoechi commentedon Mar 15, 2018
Can you please add more information?
flutter doctor -vbuild_runneryou're usingbuild.xxx.yamlfile involvedimyyq-star commentedon Mar 16, 2018
The build package I use is
json_serializable. Runningflutter packages pub run build_runner buildagain today is not an error. I didn't do anything before.I use
build_runner-0.7.11+1.Here is the result of my running: "flutter doctor -v".
Not quite understand what you said: "is build.xxx.yaml file involved"
[-]flutter packages pub run build_runner build[/-][+]json_serializable fails to build with Flutter[/+]Hixie commentedon Jun 12, 2018
@imyyq-star Do you still get this?
zoechi commentedon Feb 21, 2019
Looks stale.
github-actions commentedon Aug 15, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.