Closed
Description
dart --version
Dart SDK version: 2.12.0-259.12.beta (beta) (Fri Feb 12 11:00:34 2021 +0100) on "linux_x64"
I should note that I'm using the project https://pub.dev/packages/dswitch to switch between beta/stable version of dart.
I've seen the below error a couple of times now but haven't been paying much attention ( think it may have happened during unit testing?)
dart pub upgrade --null-safety
Because every version of node_mgmt_lib from path depends on path 1.7.0 and nj_build_all depends on path >=1.8.0-nullsafety.3, node_mgmt_lib from path is forbidden.
So, because nj_build_all depends on node_mgmt_lib from path, version solving failed.
Unhandled exception:
Bad state: Future already completed
#0 _AsyncCompleter.complete (dart:async/future_impl.dart:45:31)
#1 _NativeSocket.tryConnectToResolvedAddresses.connectNext.<anonymous closure> (dart:io-patch/socket_patch.dart:847:16)
#2 _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:1214:14)
#3 _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:1221:12)
#4 _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:1242:11)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12).
Attempt:11 waiting for isolate vm-isolate to check in
Attempt:11 waiting for isolate dartdev to check in
Attempt:12 waiting for isolate vm-isolate to check in
Attempt:12 waiting for isolate dartdev to check in
Attempt:13 waiting for isolate vm-isolate to check in
Attempt:13 waiting for isolate dartdev to check in
Attempt:14 waiting for isolate vm-isolate to check in
Attempt:14 waiting for isolate dartdev to check in
Attempt:15 waiting for isolate vm-isolate to check in
Attempt:15 waiting for isolate dartdev to check in
Attempt:16 waiting for isolate vm-isolate to check in
Attempt:16 waiting for isolate dartdev to check in
Attempt:17 waiting for isolate vm-isolate to check in
Attempt:17 waiting for isolate dartdev to check in
Attempt:18 waiting for isolate vm-isolate to check in
Attempt:18 waiting for isolate dartdev to check in
The problem doesn't occur if I just run dart pub upgrade