Skip to content

[BUG] ide:getDiagnostics times out if file is not active in Jetbrains IDE #3085

@Janrupf

Description

@Janrupf

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other:
  • Claude CLI version: 1.0.30 (Claude Code)
  • Operating System: 6.12.34 1-NixOS
  • Terminal: Alacritty

Bug Description

When claude attempts to call the ide:getDiagnostics MCP after connecting with /ide and the file it is requesting information for is not the file, that is the currently selected file, the tool times out with Timeout getting diagnostics.

Steps to Reproduce

  1. Open a Jetbrains IDE with Claude Code installed
  2. Connect with /ide
  3. Ask Claude to get diagnostic information about file xyz
  4. Watch it time out
  5. Open file xyz in the IDE and ask Claude again
  6. Watch it retrieve the information successfully

Expected Behavior

Diagnostics retrieval should not depend on the file being the actively selected file in the IDE.

Actual Behavior

Diagnostics retrieval only works when the file for which the information is being retrieved is open and selected.

Metadata

Metadata

Labels

api:vertexIssue relates to GCP Vertexarea:idearea:toolsbugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions