[...]
Precompiling executables... (3.7s)
Failed to precompile build_runner:build_runner:
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1840:24: Error: Type 'SetOrMapLiteral' not found.
visitSetOrMapLiteral(SetOrMapLiteral node) {
^^^^^^^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:506:23: Error: 'SetOrMapLiteral' isn't a type.
if (expression is SetOrMapLiteral) return false;
^^^^^^^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1608:14: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
- 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///home/alex/.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
node.elements2.length <= 1 ? Cost.singleElementList : Cost.normal;
^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1610:38: Error: The getter 'elements2' isn't defined for the class 'ListLiteral'.
- 'ListLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///home/alex/.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
node, node.leftBracket, node.elements2, node.rightBracket, cost);
^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1840:24: Error: 'SetOrMapLiteral' isn't a type.
visitSetOrMapLiteral(SetOrMapLiteral node) {
^^^^^^^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1842:20: Error: The getter 'leftBracket' isn't defined for the class 'invalid-type'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'leftBracket'.
node, node.leftBracket, node.elements2, node.rightBracket);
^^^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1842:38: Error: The getter 'elements2' isn't defined for the class 'invalid-type'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'elements2'.
node, node.leftBracket, node.elements2, node.rightBracket);
^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1842:54: Error: The getter 'rightBracket' isn't defined for the class 'invalid-type'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'rightBracket'.
node, node.leftBracket, node.elements2, node.rightBracket);
^^^^^^^^^^^^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:1842:9: Error: The argument type 'invalid-type' can't be assigned to the parameter type 'TypedLiteral'.
- 'TypedLiteral' is from 'package:analyzer/dart/ast/ast.dart' ('file:///home/alex/.pub-cache/hosted/pub.dartlang.org/analyzer-0.34.3/lib/dart/ast/ast.dart').
Try changing the type of the parameter, or casting the argument to 'TypedLiteral'.
node, node.leftBracket, node.elements2, node.rightBracket);
^
file:///home/alex/.pub-cache/hosted/pub.dartlang.org/dart_style-1.2.4/lib/src/source_visitor.dart:2179:62: Error: 'SetOrMapLiteral' isn't a type.
if (node.expression is ListLiteral || node.expression is SetOrMapLiteral) {
^^^^^^^^^^^^^^^
Overriding dependency with dart_style: "<1.2.4" works.
Thank you for taking the time to file an issue!
In order to route, prioritize, and act on this as soon as possible please include:
dart --version
)Dart VM version: 2.2.0 (Unknown timestamp) on "linux_x64"
4.0.0
,5.0.0-alpha+5
,MASTER
)angular: ^5.2.0
Linux
I don't know if I'm in the right place, but it seems there is a dependency problem between
angular
and (I think)build_runner
:Failed on
pub get
with errors :Overriding dependency with
dart_style: "<1.2.4"
works.Dep tree :