Skip to content

Null check operator used on null value exception when using nested workspaces #4652

@easazade

Description

@easazade

I get his error when running melos bs command. I'm using nested workspaces. meaning the pubspec.yaml file of a child workspace is added as package to the pubspec.yaml of parent workspace

 Resolving dependencies... (1.1s)
Null check operator used on a null value
package:pub/src/solver/partial_solution.dart 163:23             PartialSolution.satisfier
package:pub/src/solver/version_solver.dart 305:25               VersionSolver._resolveConflict
package:pub/src/solver/version_solver.dart 170:29               VersionSolver._propagate
package:pub/src/solver/version_solver.dart 132:11               VersionSolver.solve.<fn>
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 1768:14                      HostedSource.withPrefetching.<fn>
===== asynchronous gap ===========================
package:pub/src/rate_limited_scheduler.dart 113:14              RateLimitedScheduler.withPrescheduling
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 1767:12                      HostedSource.withPrefetching
===== asynchronous gap ===========================
package:pub/src/solver/version_solver.dart 129:14               VersionSolver.solve
===== asynchronous gap ===========================
package:pub/src/progress.dart 61:3                              Progress.stop
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 583:16                          Entrypoint.acquireDependencies
===== asynchronous gap ===========================
package:pub/src/command/get.dart 80:5                           GetCommand.runProtected
===== asynchronous gap ===========================
package:pub/src/command.dart 197:7                              PubCommand.run
===== asynchronous gap ===========================
package:args/command_runner.dart 212:13                         CommandRunner.runCommand
===== asynchronous gap ===========================
package:dartdev/dartdev.dart 255:18                             DartdevRunner.runCommand
===== asynchronous gap ===========================
package:dartdev/dartdev.dart 48:16                              runDartdev
===== asynchronous gap ===========================
/Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart 13:5  main
This is an unexpected error. The full log and other details are collected in:

    /Users/alirezaeasazade/.pub-cache/log/pub_log.txt

Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.[](url)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions