Skip to content

analyze_files falsely returns "no errors" in some repos #295

@gspencergoog

Description

@gspencergoog

When running the dart MCP server in Gemini CLI, if I run it in the flutter repository (https://github.com/flutter/flutter), when there are analyzer errors, if I ask gemini to run the analyze_files tool, it reports no errors, whereas if it runs dart analyze using the shell, it reports the errors.

Creating an empty flutter "counter" project, if I introduce an analyzer error, then analyze_files reports the errors correctly.

I'm not sure if this is an interaction with Gemini CLI and the MCP server (sandboxing?) or if it has to do with some weird setup of the Flutter repo, but it is disconcerting that this can happen, and we should probably figure out why that is.

Dart version: Dart SDK version: 3.10.0-287.0.dev)
Gemini CLI version: 0.9.0-nightly.20251007.4f53919a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions