Workiva / built_redux

an implementation of redux written in dart that enforces immutability
MIT License
125 stars 46 forks source link

Issue when execute command "flutter pub pub run build_runner build" in flutter 1.0 #106

Open jkyon opened 5 years ago

jkyon commented 5 years ago

Hi,

I have an issue when execute the build_runner command after I update to the flutter last version in stable channel.

The error displayed is the following

file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/source_visitor.dart:1837:19: Error: Type 'SetLiteral' not found. visitSetLiteral(SetLiteral node) { ^^^^^^^^^^ file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/dart_formatter.dart:117:12: Error: The setter 'enableSetLiterals' isn't defined for the class 'analyzer.parser::Parser'. Try correcting the name to the name of an existing setter, or defining a setter or field named 'enableSetLiterals'. parser.enableSetLiterals = true; ^^^^^^^^^^^^^^^^^ file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/source_visitor.dart:1837:19: Error: 'SetLiteral' isn't a type. visitSetLiteral(SetLiteral node) { ^^^^^^^^^^ file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/source_visitor.dart:1839: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.elements, node.rightBracket); ^^^^^^^^^^^ file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/source_visitor.dart:1839:38: Error: The getter 'elements' 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 'elements'. node, node.leftBracket, node.elements, node.rightBracket); ^^^^^^^^ file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/source_visitor.dart:1839:53: 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.elements, node.rightBracket); ^^^^^^^^^^^^ file:///C:/Users/jorjuela/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/dart_style-1.2.2/lib/src/source_visitor.dart:1839:9: Error: The argument type 'invalid-type' can't be assigned to the parameter type '#lib1::TypedLiteral'. Try changing the type of the parameter, or casting the argument to '#lib1::TypedLiteral'. node, node.leftBracket, node.elements, node.rightBracket);

I saw that build, build_runner, and built_value_generator were updated, but I´m not sure if those libraries need to be updated on built_redux to fix this issue.

Thank you in advance

BKBuEGmbH commented 5 years ago

This is nearly the same as #104 . The analyzer has the wrong version. Is '>=0.33.0 <1.0.0' as overwrite for now. There is the PR #105 which should resolve the issue. But @davidmarne is a bit quiet the last month.

jkyon commented 5 years ago

Thank you, I just fixed this by removing this: dependency_overrides: analyzer: ^0.33.0