Skip to content

Internal problem: Unimplemented constant evaluation during expression evaluation #36479

@a-siva

Description

@a-siva

When ExperimentalFlag.constantUpdate2018 is turned on by default using the following patches

https://dart-review.googlesource.com/c/sdk/+/98485
https://dart-review.googlesource.com/c/sdk/+/98563
and setting ExperimentalFlag.constantUpdate2018 to true in https://github.com/dart-lang/sdk/blob/master/pkg/front_end/lib/src/api_prototype/experimental_flags.dart#L29

many service tests fail with the following stack trace

ServerRpcException(org-dartlang-debug:synthetic_debug_expression:1: Internal problem: Unimplemented constant evaluation during expression evaluation.
#0      internalProblem (package:front_end/src/fasta/problems.dart:45:3)
#1      unimplemented (package:front_end/src/fasta/problems.dart:51:10)
#2      KernelTarget.runProcedureTransformations (package:front_end/src/fasta/kernel/kernel_target.dart:794:7)
#3      IncrementalCompiler.compileExpression.<anonymous closure> (package:front_end/src/fasta/incremental_compiler.dart:795:16)
<asynchronous suspension>
#4      CompilerContext.runInContext.<anonymous closure>.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:46)
#5      new Future.sync (dart:async/future.dart:224:31)
#6      CompilerContext.runInContext.<anonymous closure> (package:front_end/src/fasta/compiler_context.dart:122:19)
#7      _rootRun (dart:async/zone.dart:1124:13)
#8      _CustomZone.run (dart:async/zone.dart:1021:19)
#9      _runZoned (dart:async/zone.dart:1516:10)
#10     runZoned (dart:async/zone.dart:1463:12)
#11     CompilerContext.runInContext (package:front_end/src/fasta/compiler_context.dart:121:12)
#12     IncrementalCompiler.compileExpression (package:front_end/src/fasta/incremental_compiler.dart:709:26)
<asynchronous suspension>
#13     IncrementalCompiler.compileExpression (package:vm/incremental_compiler.dart:156:23)
#14     _processExpressionCompilationRequest (file:///usr/local/google/home/asiva/workspace/dart-ws2/sdk/pkg/vm/bin/kernel_service.dart:374:52)
<asynchronous suspension>
#15     _processLoadRequest (file:///usr/local/google/home/asiva/workspace/dart-ws2/sdk/pkg/vm/bin/kernel_service.dart:468:11)
<asynchronous suspension>
#16     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:171:12)
)

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failureslegacy-area-front-endLegacy: Use area-dart-model instead.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions