Skip to content

devtools_extensions: asyncEval fails on web targets #7766

@adsonpleal

Description

@adsonpleal

This issue is for devtools_extensions.

asyncEval is not working for debug services running for web targets. Other targets (tested on MacOS) work fine.

Whenever I call asyncEval on a web target I get the following error:

ChromeProxyService: Failed to evaluate expression 'postEvent': InternalError: frontend server failed to compile '() { return
postEvent; }'.

A simple eval like this already throws the error:

final eval = EvalOnDartLibrary(
  'dart:core',
  serviceManager.service!,
  serviceManager: serviceManager,
);

await eval.asyncEval('Future.value(42)', isAlive: isAlive)

@kenzieschmoll I encountered this error while working on the shared_preferences_tools issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2important to work on, but not at the top of the work list.bugSomething isn't workingdevtools extensionsIssues related to DevTools extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions