Can't pub activate as of 2.0.0-dev.61 w/ --preview-dart-2
Closed this issue · 1 comments
chalin commented
> export DART_VM_OPTIONS=--preview-dart-2
> pub global activate linkcheck
Package linkcheck is currently active at version 1.0.6.
Resolving dependencies... (2.0s)
+ args 0.13.7 (1.4.3 available)
+ async 2.0.7
+ charcode 1.1.1
+ collection 1.14.9
+ console 2.2.4
...
+ vector_math 1.4.7 (2.0.7 available)
Precompiling executables... (1.1s)
Failed to precompile linkcheck:linkcheck:
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/src/base.dart:216:40: Error: A value of type 'dart.core::List<dynamic>' can't be assigned to a variable of type 'dart.core::Iterable<dart.core::int>'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::Iterable<dart.core::int>'.
var str = new String.fromCharCodes(bytes);
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/src/canvas.dart:27:18: Error: A value of type 'console::PixelSpec' can't be assigned to a variable of type 'dart.core::int'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::int'.
spec = new PixelSpec(color: spec);
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/src/canvas.dart:33:20: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'console::PixelSpec'.
Try changing the type of the left hand side, or casting the right hand side to 'console::PixelSpec'.
pixels[x][y] = spec;
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:4:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[0, '000000'],
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:5:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[1, '800000'],
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:6:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[2, '008000'],
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:7:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[3, '808000'],
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:8:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[4, '000080'],
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:9:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[5, '800080'],
^
file:///Users/chalin/.pub-cache/hosted/pub.dartlang.org/console-2.2.4/lib/clut.dart:10:4: Error: A value of type 'dart.core::int' can't be assigned to a variable of type 'dart.core::String'.
Try changing the type of the left hand side, or casting the right hand side to 'dart.core::String'.
[6, '008080'],
^
I realize that the issue is with https://github.com/DirectMyFile/console.dart, but if that package can't be updated, maybe linkcheck
should use another package?
chalin commented
Dart 2 is out, and pub activate is working.