Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis CI failure due to Dart 2.1 #1493

Closed
wing328 opened this issue Nov 19, 2018 · 2 comments
Closed

Travis CI failure due to Dart 2.1 #1493

wing328 opened this issue Nov 19, 2018 · 2 comments

Comments

@wing328
Copy link
Member

wing328 commented Nov 19, 2018

Description

Travis CI failure due to installation of Dart 2.1 (released last week)

file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/expression_generator.dart:740:14: Error: The method 'ErroneousExpressionGenerator::buildCompoundAssignment' doesn't have the named parameter 'isPostIncDec' of overridden method 'KernelExpressionGenerator::buildCompoundAssignment'.
  Expression buildCompoundAssignment(Name binaryOperator, Expression value,
             ^
file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/kernel_expression_generator.dart:177:14: Context: This is the overridden method ('buildCompoundAssignment').
  Expression buildCompoundAssignment(Name binaryOperator, Expression value,
             ^
file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/kernel_expression_generator.dart:1424:7: Context: Override was introduced when the mixin 'ErroneousExpressionGenerator' was applied to 'KernelGenerator'.
class KernelUnresolvedNameGenerator extends KernelGenerator
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/expression_generator.dart:894:14: Error: The method 'ContextAwareGenerator::buildCompoundAssignment' has fewer named arguments than those of overridden method 'KernelExpressionGenerator::buildCompoundAssignment'.
  Expression buildCompoundAssignment(Name binaryOperator, Expression value,
             ^
file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/kernel_expression_generator.dart:177:14: Context: This is the overridden method ('buildCompoundAssignment').
  Expression buildCompoundAssignment(Name binaryOperator, Expression value,
             ^
file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/kernel_expression_generator.dart:1513:16: Context: Override was introduced when the mixin 'ContextAwareGenerator' was applied to 'KernelGenerator'.
abstract class KernelContextAwareGenerator extends KernelGenerator
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
file:///home/travis/.pub-cache/hosted/pub.dartlang.org/front_end-0.1.4/lib/src/fasta/kernel/expression_generator.dart:894:14: Error: The method 'ContextAwareGenerator::buildCompoundAssignment' doesn't have the named parameter 'isPostIncDec' of overridden method 'KernelExpressionGenerator::buildCompoundAssignment'.
  Expression buildCompoundAssignment(Name binaryOperator, Expression value,
             ^

Full log: https://travis-ci.org/OpenAPITools/openapi-generator/builds/455965775

The failure is caused by testing samples/client/petstore/dart2/petstore/ with Dart 2.1

openapi-generator version

Latest master

Suggest a fix/enhancement

The test for Dart2PetstoreClientTests has been commented out for the time being

cc @ircecho (2017/07) @swipesight (2018/09) @jaumard (2018/09)

@bigkrp
Copy link

bigkrp commented Dec 27, 2018

Same issue

@wing328 wing328 closed this as completed Jan 22, 2021
@wing328
Copy link
Member Author

wing328 commented Jan 22, 2021

@bigkrp the issue should be fixed. Please try the latest stable version or master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants