Line Number Indexing Mismatch in IntelliJ IDEA Integration

Resolved 💬 6 comments Opened Aug 22, 2025 by bertwin Closed Jan 14, 2026

Bug Description
When selecting a line in IntelliJ IDEA, claude gets the line number wrong. It probably gets it zero based. So when line 5 is selected, it reports that line 4 is selected when asked.

Environment Info

  • Platform: linux
  • Terminal: pycharm
  • Version: 1.0.88
  • Feedback ID: c59f3d2e-7089-47b5-9aa0-e9d220473774

Errors

[{"error":"Error: Could not find plugin directories for pycharm\n    at ZAB (file:///home/bertwin/.local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1831:29994)\n    at $y6 (file:///home/bertwin/.local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1832:5007)\n    at Ey6 (file:///home/bertwin/.local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1832:2193)\n    at file:///home/bertwin/.local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1833:3094\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T20:17:16.421Z"}]

View original on GitHub ↗

This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗