Skip to content

Exception in _InstanceCreationEvaluator._checkParameters #47422

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

Closed
scheglov opened this issue Oct 9, 2021 · 1 comment
Closed

Exception in _InstanceCreationEvaluator._checkParameters #47422

scheglov opened this issue Oct 9, 2021 · 1 comment
Assignees
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash legacy-area-analyzer Use area-devexp instead. P1 A high priority bug; for example, a single project is unusable or has many test failures

Comments

@scheglov
Copy link
Contributor

scheglov commented Oct 9, 2021

Thread 0 main threadRangeError: RangeError (index): Invalid value: Only valid value is 0: 1
at List.[](dart:core)
at _InstanceCreationEvaluator._checkParameters(evaluation.dart:2210)
at _InstanceCreationEvaluator.evaluateGenerativeConstructorCall(evaluation.dart:2031)
at _InstanceCreationEvaluator.evaluate(evaluation.dart:2409)
at ConstantEvaluationEngine.evaluateConstructorCall(evaluation.dart:281)
at ConstantVisitor.visitInstanceCreationExpression(evaluation.dart:708)
at InstanceCreationExpressionImpl.accept(ast.dart:6170)
at ConstantVisitor._addElementsToList(evaluation.dart:1041)
at ConstantVisitor.visitListLiteral(evaluation.dart:764)
at ListLiteralImpl.accept(ast.dart:6785)
at ConstantVisitor._valueOf(evaluation.dart:1318)
at _InstanceCreationEvaluator.evaluate(evaluation.dart:2377)
at ConstantEvaluationEngine.evaluateConstructorCall(evaluation.dart:281)
at ConstantEvaluationEngine.computeConstantValue(evaluation.dart:141)
at _ConstantWalker.evaluate(compute.dart:57)
at DependencyWalker.walk.strongConnect(link.dart:100)
at DependencyWalker.walk(link.dart:119)
at computeConstants(compute.dart:26)
at LibraryAnalyzer._computeConstants(library_analyzer.dart:245)
at LibraryAnalyzer.analyze(library_analyzer.dart:130)
at AnalysisDriver._computeAnalysisResult.<fn>(driver.dart:1325)
at PerformanceLog.run(performance_logger.dart:32)
at AnalysisDriver._computeAnalysisResult(driver.dart:1301)
at AnalysisDriver.performWork(driver.dart:973)
at AnalysisDriverScheduler._run(driver.dart:2037)
@scheglov scheglov added P1 A high priority bug; for example, a single project is unusable or has many test failures legacy-area-analyzer Use area-devexp instead. analyzer-crash-report Issues which have been reported due to an analysis server crash labels Oct 9, 2021
@scheglov scheglov self-assigned this Oct 9, 2021
@scheglov
Copy link
Contributor Author

copybara-service bot pushed a commit that referenced this issue Oct 11, 2021
…tional arguments is less the the number of required positional parameters.

Bug: #47422
Change-Id: I3d45b12a131c3cb4d7f08680fc906d6f33d056c2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/216140
Reviewed-by: Samuel Rawlins <[email protected]>
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer-crash-report Issues which have been reported due to an analysis server crash legacy-area-analyzer Use area-devexp instead. P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

1 participant