[BUG] Claude Code unable to connect to PyCharm by using the dedicated Plugin or via PyCharm's terminals

Status Closed — not planned
Maintainer reply None cached
Activity 15 comments · opened Dec 7, 2025 · closed Apr 10, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

The graphical diff viewer (side-by-side comparison window with "Reject"/"Apply" buttons) randomly fails to appear when Claude Code proposes file changes. Instead, the diff is displayed as plain text in the terminal with red/green lines. This issue is intermittent and unpredictable.

Randomly, the diff is displayed as plain text directly in the Claude Code terminal:

  • Red lines for deletions (with -), green lines for additions (with +)
  • Text prompt: "Do you want to make this edit to filename?"
  • No graphical diff viewer opens

No specific trigger identified - happens across different:

  • Projects
  • Sessions
  • Computers
  • Plugin versions
  • IDE versions

What Should Happen?

Claude Code should consistently open a dedicated diff tab (e.g., [Claude Code] filename.ext) with:

  • Side-by-side or unified diff viewer
  • Native IDE diff controls ("Highlight words", "Unified viewer", etc.)
  • "Reject" and "Apply" buttons at the bottom

As shown in the official plugin page screenshot #1.

Error Messages/Logs

Steps to Reproduce

  1. Use Claude Code in JetBrains IDE to request file modifications
  2. The issue occurs randomly - sometimes the graphical diff viewer appears, sometimes it doesn't

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.60

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PyCharm terminal

Additional Information

_No response_

View original on GitHub ↗

15 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/11180
  2. https://github.com/anthropics/claude-code/issues/8660
  3. https://github.com/anthropics/claude-code/issues/11311

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

Dyl-M · 8 months ago
Found 3 possible duplicate issues: 1. [[BUG] Rider: No visual diff previews in editor - SSE connection not established #11180](https://github.com/anthropics/claude-code/issues/11180) 2. [[BUG] Edit preview/diff not showing in VSCode extension UI when confirming changes #8660](https://github.com/anthropics/claude-code/issues/8660) 3. [[Question] Edit tool: Diff view only opens for single-line edits, not multi-line - is this by design? #11311](https://github.com/anthropics/claude-code/issues/11311) This issue will be automatically closed as a duplicate in 3 days. If your issue is a duplicate, please close it and 👍 the existing issue instead To prevent auto-closure, add a comment or 👎 this comment 🤖 Generated with Claude Code

The three cases mentioned represent different contexts.

santoli-massimo · 8 months ago

I can confirm this issue on IntelliJ IDEA.

I noticed that diff view only opens for single-line edits, similar pattern to #11311 (though that's VSCode Extension specific). Multi-line edits bypass the diff preview entirely.

Dyl-M · 8 months ago

New element

Invalidating the IDE cache may temporarily resolve the issue. But as the issue still reappears randomly.

Dyl-M · 8 months ago

❕ New element

After prolonged use of the plug-in, I can confirm that the problem occurs relatively more frequently when Claude Code is first launched.

Closing Claude Code from the PyCharm terminal and restarting it often allows Claude Code and the IDE to be connected properly. A red “IDE disconnected” message appears temporarily before disappearing. The /status command can then be used to confirm that the two platforms are properly associated.

But in my opinion, it's a problem that should still be fixed.

armando-herastang · 7 months ago

This starting happening to me a couple of days ago. I am pretty sure after I "re-installed" Claude using their native installer. I don't know if it is related, but hadn't happened before!

armando-herastang · 7 months ago

This is giving me headache! LOL. Now, I´ve managed to work around this (although I don´t like it). I stopped using the terminal within the PyCharm environment, which is better of course to use it, and started using the terminal (PowerShell) from the Windows Terminal App. I use the same powershell in the integrated pycharm terminal. So I ran /ide and it said something related to the mount path of the project not being the same. So i went and disabled project folder mapping to /mnt/.... on the Claude Code Plugin, and now was able to see Pycharm when running /ide but only on the external terminal. Not within pycharm. So for now I'll work like this, although I prefer to work within the PyCharm environment. if anyone knows how to solve this in PyCharm, we are all ears!

Dyl-M · 6 months ago

Re-contextualization of the problem (since I'm having it again):

  • Claude Code does not connect to the IDE via a connection from PyCharm's built-in terminals (GitBash, PowerShell, CMD).
  • Changing the launch command does not improve the situation either.

As @armando-herastang mentioned, it seems that there is a problem with integration in terminals and automatic mapping (which systematically favors a WSL format).

Armando's workaround is not convenient, but still works:

So I ran /ide and it said something related to the mount path of the project not being the same. So i went and disabled project folder mapping to /mnt/.... on the Claude Code Plugin, and now was able to see Pycharm when running /ide but only on the external terminal. Not within pycharm.

I'm keeping the issue open and will send an email to try to get an appropriate response to this problem.

armando-herastang · 6 months ago

Today, on Claude Code v.2.1.63, I was able to connect Claude Code within the PyCharm terminal to the IDE. It started working all of a sudden. I didn’t see anything related in the latest Claude Code release notes (since I’ve been using Windows Terminal for a while, I can’t pinpoint which version it started working again). Also, nothing changed in the Claude Code plugin for PyCharm or in PyCharm itself (at least nothing that I could notice).

Funnily enough, I can’t connect from Windows Terminal now! 🙃

EDIT: I does work sometimes on Windows Terminal, don´t know about the conditions

Dyl-M · 5 months ago

While the issue seems to be fixed, I do not know if I should close the issue right now without confirmation from Anthropic Staff.

marzinx3 · 5 months ago

if you go into your terminal settings in pycharm then go to environment variables and add in the claude path it will work

azhivovk · 5 months ago

I struggled with this issue after native installing of claude
Adding this to bashrc on fedora fixed the issue for me

export no_proxy="localhost,127.0.0.1,::1"
export NO_PROXY="localhost,127.0.0.1,::1"
Cactiw · 5 months ago
NO_PROXY="localhost,127.0.0.1,::1"

Thank you, this actually fixed it.
If you set up proxy in ~/.claude/settings.json, than add it there.

"env": {
  	"HTTP_PROXY": "http://proxy",
  	"NO_PROXY": "localhost,127.0.0.1,::1"
  }
github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.