Skip to content

get_runtime_errors returns no errors for a broken Flutter app #283

Description

@athomas

I tried to get Gemini CLI to fix a broken app (red widgets with error messages, corresponding log output from flutter run) but the MCP server fails to provide this info to Gemini:

Gemini interaction:

 ✓  get_runtime_errors (dart MCP Server) {}                                                                                                      │
 │                                                                                                                                                 │
 │    No runtime errors found.     

The log contains errors and stacktraces:

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following ProviderNotFoundException was thrown building Consumer2<QueryResults,
TabController>(dirty, dependencies: [_InheritedProviderScope<QueryResults?>]):
Error: Could not find the correct Provider<TabController> above this Consumer2<QueryResults,
TabController> Widget

Note: this is a flutter web app running in chrome from a debug session started in VSCode.

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions